cortex-m: Fix chx_handle_intr.

Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
This commit is contained in:
NIIBE Yutaka
2021-02-19 15:56:43 +09:00
parent 2fb3c1c503
commit 95fe257dc0
2 changed files with 5 additions and 1 deletions

View File

@@ -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.

View File

@@ -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"