From 9479515685deec3dc0dc0105dcce8bf20e4ebf69 Mon Sep 17 00:00:00 2001 From: 0x35c Date: Wed, 2 Oct 2024 14:20:43 +0200 Subject: [PATCH] fix: isr.s not compiling because of movb instruction instead of mov --- src/interrupt/handler.c | 2 -- src/interrupt/isr.s | 12 ++++++------ 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/src/interrupt/handler.c b/src/interrupt/handler.c index b2b241a..aeb95d7 100644 --- a/src/interrupt/handler.c +++ b/src/interrupt/handler.c @@ -3,8 +3,6 @@ #include -__attribute__((noreturn)) void exception_handler(void); - void exception_handler(void) { int8_t index = -1; diff --git a/src/interrupt/isr.s b/src/interrupt/isr.s index 3bc2ea6..dc9dc9f 100644 --- a/src/interrupt/isr.s +++ b/src/interrupt/isr.s @@ -3,16 +3,16 @@ .macro isr_err_stub nb isr_stub_\nb: - movb bl, \nb - call exception_handler - iret + mov bl, \nb + call exception_handler + iret .endm .macro isr_no_err_stub nb isr_stub_\nb: - movb bl, \nb - call exception_handler - iret + mov bl, \nb + call exception_handler + iret .endm isr_no_err_stub 0