Change FPU enable timing in "SystemInit()"

pull/10587/head
d-kato 2019-05-16 13:40:33 +09:00
parent 8e44a75a75
commit 874c087494
3 changed files with 17 additions and 17 deletions

View File

@ -91,7 +91,12 @@ void SystemInit (void)
{
/* do not use global variables because this function is called before
reaching pre-main. RW section may be overwritten afterwards. */
#if ((__FPU_PRESENT == 1) && (__FPU_USED == 1))
// Enable FPU
__FPU_Enable();
#endif
// Enable SRAM write access
CPG.SYSCR3 = 0x0F;
@ -130,11 +135,6 @@ void SystemInit (void)
L2C_Enable();
#endif
#if ((__FPU_PRESENT == 1) && (__FPU_USED == 1))
// Enable FPU
__FPU_Enable();
#endif
// IRQ Initialize
IRQ_Initialize();
}

View File

@ -91,7 +91,12 @@ void SystemInit (void)
{
/* do not use global variables because this function is called before
reaching pre-main. RW section may be overwritten afterwards. */
#if ((__FPU_PRESENT == 1) && (__FPU_USED == 1))
// Enable FPU
__FPU_Enable();
#endif
// Enable SRAM write access
CPG.SYSCR3 = 0x0F;
@ -130,11 +135,6 @@ void SystemInit (void)
L2C_Enable();
#endif
#if ((__FPU_PRESENT == 1) && (__FPU_USED == 1))
// Enable FPU
__FPU_Enable();
#endif
// IRQ Initialize
IRQ_Initialize();
}

View File

@ -92,6 +92,11 @@ void SystemInit (void)
/* do not use global variables because this function is called before
reaching pre-main. RW section maybe overwritten afterwards. */
#if ((__FPU_PRESENT == 1) && (__FPU_USED == 1))
// Enable FPU
__FPU_Enable();
#endif
// Enable SRAM write access
CPG.SYSCR3 = 0x0F;
@ -130,11 +135,6 @@ void SystemInit (void)
L2C_Enable();
#endif
#if ((__FPU_PRESENT == 1) && (__FPU_USED == 1))
// Enable FPU
__FPU_Enable();
#endif
// IRQ Initialize
IRQ_Initialize();
}