diff --git a/src/gdt.rs b/src/gdt.rs index e7ffdc989..05b074d11 100644 --- a/src/gdt.rs +++ b/src/gdt.rs @@ -12,7 +12,7 @@ lazy_static! { const STACK_SIZE: usize = 4096 * 5; static mut STACK: [u8; STACK_SIZE] = [0; STACK_SIZE]; - let stack_start = VirtAddr::from_ptr(unsafe { &STACK }); + let stack_start = VirtAddr::from_ptr(&raw const STACK); let stack_end = stack_start + STACK_SIZE; stack_end };