stm32/pendsv: Fix inline asm constant and prefix with # character.
This commit is contained in:
parent
d53dc04903
commit
019433a17e
@ -124,7 +124,7 @@ __attribute__((naked)) void PendSV_Handler(void) {
|
||||
// Check if there are any pending calls to dispatch to
|
||||
"ldr r1, pendsv_dispatch_active_ptr\n"
|
||||
"ldr r0, [r1]\n"
|
||||
"cmp r0, 0\n"
|
||||
"cmp r0, #0\n"
|
||||
"beq .no_dispatch\n"
|
||||
"mov r2, #0\n"
|
||||
"str r2, [r1]\n" // clear pendsv_dispatch_active
|
||||
@ -135,7 +135,7 @@ __attribute__((naked)) void PendSV_Handler(void) {
|
||||
// Check if there is an active object to throw via nlr_jump
|
||||
"ldr r1, pendsv_object_ptr\n"
|
||||
"ldr r0, [r1]\n"
|
||||
"cmp r0, 0\n"
|
||||
"cmp r0, #0\n"
|
||||
"beq .no_obj\n"
|
||||
#if defined(PENDSV_DEBUG)
|
||||
"str r0, [sp, #8]\n" // store to r0 on stack
|
||||
|
Loading…
Reference in New Issue
Block a user