Skip to content

Commit fd44ca5

Browse files
committed
Move the ISB barrier
1 parent 78f0a56 commit fd44ca5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libc/startup/baremetal/arm/start.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,12 +144,12 @@ namespace LIBC_NAMESPACE_DECL {
144144
uint32_t cpacr = __arm_rsr("p15:0:c1:c0:2");
145145
cpacr |= (0xF << 20);
146146
__arm_wsr("p15:0:c1:c0:2", cpacr);
147+
__isb(0xF);
147148
// Set FPEXC.EN
148149
uint32_t fpexc;
149150
__asm__ __volatile__("vmrs %0, FPEXC" : "=r"(fpexc) : :);
150151
fpexc |= (1 << 30);
151152
__asm__ __volatile__("vmsr FPEXC, %0" : : "r"(fpexc) :);
152-
__isb(0xF);
153153
#endif
154154
#endif
155155

0 commit comments

Comments
 (0)