aboutsummaryrefslogtreecommitdiff
path: root/src/arch/x86_64/asm
diff options
context:
space:
mode:
Diffstat (limited to 'src/arch/x86_64/asm')
-rw-r--r--src/arch/x86_64/asm/vectors.s8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/arch/x86_64/asm/vectors.s b/src/arch/x86_64/asm/vectors.s
index 56aabf4..4267369 100644
--- a/src/arch/x86_64/asm/vectors.s
+++ b/src/arch/x86_64/asm/vectors.s
@@ -7,24 +7,22 @@
[EXTERN interrupt_gate]
[SECTION .reserved_0.idt]
-;
; Interrupt descriptor table with 256 entries
; TODO: use a interrupt stack instead of the current stack.
-
idt:
; reserve space for 256x idt entries (16 bytes each)
resb 16 * 256
-[SECTION .reserved]
+[SECTION .data32]
idt_descr:
- dw 256*8 - 1 ; 256 entries
+ dw 256*8 - 1 ; 256 entries
dq idt
; NOTE: vectors MUST have fixed instruction length currently aligned to 16
; bytes. DO NOT modify the wrapper, instead change the wrapper_body if needed.
; if the vector has to be modified into more than 16 bytes,
; arch::x86_64:: interrupt::_idt_init() must be modified accordingly
-[SECTION .reserved.vectors]
+[SECTION .data32.vectors]
%macro vector 1
align 16
vector_%1: