We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1822103 commit 6c77042Copy full SHA for 6c77042
1 file changed
src/arch/aarch64/kernel/mod.rs
@@ -107,7 +107,7 @@ fn finish_processor_init() {
107
// Allocate stack for the CPU and pass the addresses.
108
let stack = allocate_stack(KERNEL_STACK_SIZE);
109
CURRENT_STACK_ADDRESS.store(stack.stack_start().as_mut_ptr(), Ordering::Relaxed);
110
- let _ = CURRENT_STACK.lock().insert(stack);
+ let _ = CURRENT_STACK.lock().insert(stack.leak());
111
}
112
113
pub fn boot_next_processor() {
0 commit comments