From 496ccaaf750a4ec1c537c463eff56108e1cc0bb4 Mon Sep 17 00:00:00 2001 From: Dennis Kobert Date: Sun, 18 Apr 2021 19:01:54 +0200 Subject: Further cleanup * Bump x86_64 dep to version 0.1.14 * Rewrite LOCAL_APIC handling * Remove warnings --- kernel/src/interrupts/gdt.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'kernel/src/interrupts/gdt.rs') 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 }; -- cgit v1.2.3-70-g09d2