Skip to content

Commit 6c77042

Browse files
committed
aarch64: fix: never drop stack for core
1 parent 1822103 commit 6c77042

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/arch/aarch64/kernel/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ fn finish_processor_init() {
107107
// Allocate stack for the CPU and pass the addresses.
108108
let stack = allocate_stack(KERNEL_STACK_SIZE);
109109
CURRENT_STACK_ADDRESS.store(stack.stack_start().as_mut_ptr(), Ordering::Relaxed);
110-
let _ = CURRENT_STACK.lock().insert(stack);
110+
let _ = CURRENT_STACK.lock().insert(stack.leak());
111111
}
112112

113113
pub fn boot_next_processor() {

0 commit comments

Comments
 (0)