diff options
author | Damien George <damien.p.george@gmail.com> | 2019-02-12 14:50:27 +1100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2019-02-12 14:50:27 +1100 |
commit | 019433a17e82f22e8ee24ad1b53156403d4f4a67 (patch) | |
tree | b4551b4cd8b2b796706729ce4149e7aac9ed5ca5 | |
parent | d53dc04903850fdad7b8c14351e2cf28616a0ead (diff) |
stm32/pendsv: Fix inline asm constant and prefix with # character.
-rw-r--r-- | ports/stm32/pendsv.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ports/stm32/pendsv.c b/ports/stm32/pendsv.c index ba383a731..2979dc402 100644 --- a/ports/stm32/pendsv.c +++ b/ports/stm32/pendsv.c @@ -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 |