From 7973bfef5300c214150f74b3c700403ada56b89c Mon Sep 17 00:00:00 2001 From: Tianhao Wang Date: Tue, 4 Jun 2024 18:37:21 +0200 Subject: chore: cleanup Signed-off-by: Tianhao Wang --- src/arch/x86_64/asm/vectors.s | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'src/arch/x86_64/asm/vectors.s') 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: -- cgit v1.2.3-70-g09d2