Skip to content

Commit 874c087

Browse files
committed
Change FPU enable timing in "SystemInit()"
1 parent 8e44a75 commit 874c087

File tree

3 files changed

+17
-17
lines changed

3 files changed

+17
-17
lines changed

targets/TARGET_RENESAS/TARGET_RZ_A1XX/TARGET_GR_LYCHEE/device/system_RZ_A1LU.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,12 @@ void SystemInit (void)
9191
{
9292
/* do not use global variables because this function is called before
9393
reaching pre-main. RW section may be overwritten afterwards. */
94-
94+
95+
#if ((__FPU_PRESENT == 1) && (__FPU_USED == 1))
96+
// Enable FPU
97+
__FPU_Enable();
98+
#endif
99+
95100
// Enable SRAM write access
96101
CPG.SYSCR3 = 0x0F;
97102

@@ -130,11 +135,6 @@ void SystemInit (void)
130135
L2C_Enable();
131136
#endif
132137

133-
#if ((__FPU_PRESENT == 1) && (__FPU_USED == 1))
134-
// Enable FPU
135-
__FPU_Enable();
136-
#endif
137-
138138
// IRQ Initialize
139139
IRQ_Initialize();
140140
}

targets/TARGET_RENESAS/TARGET_RZ_A1XX/TARGET_RZ_A1H/device/system_RZ_A1H.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,12 @@ void SystemInit (void)
9191
{
9292
/* do not use global variables because this function is called before
9393
reaching pre-main. RW section may be overwritten afterwards. */
94-
94+
95+
#if ((__FPU_PRESENT == 1) && (__FPU_USED == 1))
96+
// Enable FPU
97+
__FPU_Enable();
98+
#endif
99+
95100
// Enable SRAM write access
96101
CPG.SYSCR3 = 0x0F;
97102

@@ -130,11 +135,6 @@ void SystemInit (void)
130135
L2C_Enable();
131136
#endif
132137

133-
#if ((__FPU_PRESENT == 1) && (__FPU_USED == 1))
134-
// Enable FPU
135-
__FPU_Enable();
136-
#endif
137-
138138
// IRQ Initialize
139139
IRQ_Initialize();
140140
}

targets/TARGET_RENESAS/TARGET_RZ_A1XX/TARGET_VK_RZ_A1H/device/system_VK_RZ_A1H.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,11 @@ void SystemInit (void)
9292
/* do not use global variables because this function is called before
9393
reaching pre-main. RW section maybe overwritten afterwards. */
9494

95+
#if ((__FPU_PRESENT == 1) && (__FPU_USED == 1))
96+
// Enable FPU
97+
__FPU_Enable();
98+
#endif
99+
95100
// Enable SRAM write access
96101
CPG.SYSCR3 = 0x0F;
97102

@@ -130,11 +135,6 @@ void SystemInit (void)
130135
L2C_Enable();
131136
#endif
132137

133-
#if ((__FPU_PRESENT == 1) && (__FPU_USED == 1))
134-
// Enable FPU
135-
__FPU_Enable();
136-
#endif
137-
138138
// IRQ Initialize
139139
IRQ_Initialize();
140140
}

0 commit comments

Comments
 (0)