fix: isr.s not compiling because of movb instruction instead of mov

This commit is contained in:
0x35c 2024-10-02 14:20:43 +02:00
parent 8b2d35594d
commit 9479515685
2 changed files with 6 additions and 8 deletions

View File

@ -3,8 +3,6 @@
#include <stdint.h> #include <stdint.h>
__attribute__((noreturn)) void exception_handler(void);
void exception_handler(void) void exception_handler(void)
{ {
int8_t index = -1; int8_t index = -1;

View File

@ -3,16 +3,16 @@
.macro isr_err_stub nb .macro isr_err_stub nb
isr_stub_\nb: isr_stub_\nb:
movb bl, \nb mov bl, \nb
call exception_handler call exception_handler
iret iret
.endm .endm
.macro isr_no_err_stub nb .macro isr_no_err_stub nb
isr_stub_\nb: isr_stub_\nb:
movb bl, \nb mov bl, \nb
call exception_handler call exception_handler
iret iret
.endm .endm
isr_no_err_stub 0 isr_no_err_stub 0