cortex-m: Fix chx_handle_intr.
Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
This commit is contained in:
@@ -1,3 +1,7 @@
|
||||
2021-02-19 NIIBE Yutaka <gniibe@fsij.org>
|
||||
|
||||
* chopstx-cortex-m.c (chx_handle_intr): Fix SUB instruction.
|
||||
|
||||
2021-02-17 NIIBE Yutaka <gniibe@fsij.org>
|
||||
|
||||
* contrib/adc-gnu-linux.c (adc_start_conversion): Use getrandom.
|
||||
|
||||
@@ -334,7 +334,7 @@ chx_handle_intr (void)
|
||||
register struct chx_thread *tp_next asm ("r0");;
|
||||
|
||||
asm volatile ("mrs %0, IPSR\n\t"
|
||||
"sub %0, #16\n\t" /* Exception # - 16 = interrupt number. */
|
||||
"subs %0, #16\n\t" /* Exception # - 16 = interrupt number. */
|
||||
"bpl 0f\n\t"
|
||||
"bl chx_timer_expired\n\t"
|
||||
"b 1f\n"
|
||||
|
||||
Reference in New Issue
Block a user