diff options
author | Dennis Kobert <dennis@kobert.dev> | 2021-04-18 19:01:54 +0200 |
---|---|---|
committer | Dennis Kobert <dennis@kobert.dev> | 2021-04-18 19:01:54 +0200 |
commit | 496ccaaf750a4ec1c537c463eff56108e1cc0bb4 (patch) | |
tree | f0ccffc3fd823cc4016c29d45408c033c973e5d5 /kernel/src/interrupts/gdt.rs | |
parent | 8b810a009f8d29ba61a3c377fdeac06a3bbb151d (diff) |
Further cleanupfurther-cleanup
* Bump x86_64 dep to version 0.1.14
* Rewrite LOCAL_APIC handling
* Remove warnings
Diffstat (limited to 'kernel/src/interrupts/gdt.rs')
-rw-r--r-- | kernel/src/interrupts/gdt.rs | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/kernel/src/interrupts/gdt.rs b/kernel/src/interrupts/gdt.rs index d75ff68..c20eabe 100644 --- a/kernel/src/interrupts/gdt.rs +++ b/kernel/src/interrupts/gdt.rs @@ -14,16 +14,14 @@ lazy_static! { static mut STACK: [u8; STACK_SIZE] = [0; STACK_SIZE]; let stack_start = VirtAddr::from_ptr(unsafe { &STACK }); - let stack_end = stack_start + STACK_SIZE; - stack_end + stack_start + STACK_SIZE }; tss.interrupt_stack_table[PAGE_FAULT_IST_INDEX as usize] = { const STACK_SIZE: usize = 4096 * 8; static mut STACK: [u8; STACK_SIZE] = [0; STACK_SIZE]; let stack_start = VirtAddr::from_ptr(unsafe { &STACK }); - let stack_end = stack_start + STACK_SIZE; - stack_end + stack_start + STACK_SIZE }; tss }; |