diff options
| author | Tianhao Wang <shrik3@mailbox.org> | 2024-06-04 18:37:21 +0200 |
|---|---|---|
| committer | Tianhao Wang <shrik3@mailbox.org> | 2024-06-11 15:17:12 +0200 |
| commit | 7973bfef5300c214150f74b3c700403ada56b89c (patch) | |
| tree | 949f125ace03d94c1425bc4b6552243c9adbb7d5 /src/arch/x86_64/asm/vectors.s | |
| parent | 1c7233d83f1d81ee9b211a9d61e482e94524222e (diff) | |
chore: cleanup
Signed-off-by: Tianhao Wang <shrik3@mailbox.org>
Diffstat (limited to 'src/arch/x86_64/asm/vectors.s')
| -rw-r--r-- | src/arch/x86_64/asm/vectors.s | 8 |
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: |
