mirror of https://github.com/ARMmbed/mbed-os.git
Change FPU enable timing in "SystemInit()"
parent
8e44a75a75
commit
874c087494
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue