aboutsummaryrefslogtreecommitdiff
path: root/src/arch/x86_64
diff options
context:
space:
mode:
authorTianhao Wang <shrik3@mailbox.org>2024-06-04 18:37:21 +0200
committerTianhao Wang <shrik3@mailbox.org>2024-06-11 15:17:12 +0200
commit7973bfef5300c214150f74b3c700403ada56b89c (patch)
tree949f125ace03d94c1425bc4b6552243c9adbb7d5 /src/arch/x86_64
parent1c7233d83f1d81ee9b211a9d61e482e94524222e (diff)
chore: cleanup
Signed-off-by: Tianhao Wang <shrik3@mailbox.org>
Diffstat (limited to 'src/arch/x86_64')
-rw-r--r--src/arch/x86_64/asm/vectors.s8
-rw-r--r--src/arch/x86_64/interrupt/mod.rs2
2 files changed, 4 insertions, 6 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:
diff --git a/src/arch/x86_64/interrupt/mod.rs b/src/arch/x86_64/interrupt/mod.rs
index 7e0cbb8..ae2847a 100644
--- a/src/arch/x86_64/interrupt/mod.rs
+++ b/src/arch/x86_64/interrupt/mod.rs
@@ -64,7 +64,7 @@ extern "C" fn interrupt_gate(_slot: u16) {
// able to release the lock if the interrupt handler blocks on it. Try
// spamming the keyboard with the following line of code uncommented: it
// will deadlock!
- // println!("interrupt received 0x{:x}", slot);
+ // println!("interrupt received 0x{:x}", _slot);
interrupt_enable();
}