mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-11-01 06:58:22 +00:00
kernel: fix x86-64 isr macros
This commit is contained in:
@@ -3,7 +3,7 @@ section .text
|
|||||||
%rep 256
|
%rep 256
|
||||||
isr_%+ i:
|
isr_%+ i:
|
||||||
; push an error code if the cpu did not
|
; 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
|
push qword 0
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
@@ -78,7 +78,7 @@ isr_%+ i:
|
|||||||
swapgs
|
swapgs
|
||||||
.notneeded2:
|
.notneeded2:
|
||||||
iret
|
iret
|
||||||
%assign i i+1
|
%assign i i + 1
|
||||||
%endrep
|
%endrep
|
||||||
|
|
||||||
section .rodata
|
section .rodata
|
||||||
@@ -87,4 +87,5 @@ isr_table:
|
|||||||
%assign i 0
|
%assign i 0
|
||||||
%rep 256
|
%rep 256
|
||||||
dq isr_%+ i
|
dq isr_%+ i
|
||||||
|
%assign i i + 1
|
||||||
%endrep
|
%endrep
|
||||||
|
|||||||
Reference in New Issue
Block a user