mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-09-22 10:25:05 +08:00
Fix exception handler for supporting FPU
This commit is contained in:
committed by
Sebastian Huber
parent
314ff3c43f
commit
7263a50d6c
@@ -28,10 +28,10 @@ void __attribute__((naked)) _ARMV7M_Exception_default( void )
|
||||
"mov r2, lr\n"
|
||||
"mrs r1, msp\n"
|
||||
"mrs r0, psp\n"
|
||||
"cmn r2, #3\n"
|
||||
"itt ne\n"
|
||||
"movne r0, r1\n"
|
||||
"addne r0, %[cpufsz]\n"
|
||||
"tst lr, #4\n"
|
||||
"itt eq\n"
|
||||
"moveq r0, r1\n"
|
||||
"addeq r0, %[cpufsz]\n"
|
||||
"add r2, r0, %[v7mlroff]\n"
|
||||
"add r1, sp, %[cpulroff]\n"
|
||||
"ldm r2, {r3-r5}\n"
|
||||
|
||||
Reference in New Issue
Block a user