From d4aef81b4372d7cd5e64f4f0acfd24e5b90271bf Mon Sep 17 00:00:00 2001 From: Matheus Date: Sun, 9 Apr 2023 19:26:12 -0300 Subject: [PATCH] kernel: fix x86-64 isr macros --- kernel-src/arch/x86-64/isr.asm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/kernel-src/arch/x86-64/isr.asm b/kernel-src/arch/x86-64/isr.asm index 94251a90..e5b8b0a5 100644 --- a/kernel-src/arch/x86-64/isr.asm +++ b/kernel-src/arch/x86-64/isr.asm @@ -3,7 +3,7 @@ section .text %rep 256 isr_%+ i: ; push an error code if the cpu did not - %if (i == 8 || i == 10 || i == 11 || i == 12 || i == 13 || i == 14) == 0 + %if i <> 8 && i <> 10 && i <> 11 && i <> 12 && i <> 13 && i <> 14 push qword 0 %endif @@ -78,7 +78,7 @@ isr_%+ i: swapgs .notneeded2: iret -%assign i i+1 +%assign i i + 1 %endrep section .rodata @@ -87,4 +87,5 @@ isr_table: %assign i 0 %rep 256 dq isr_%+ i + %assign i i + 1 %endrep