From ece75d0852001fd5a2348ec9c50b8743937676d3 Mon Sep 17 00:00:00 2001 From: Stefan Lankes Date: Wed, 15 Apr 2020 17:05:10 +0200 Subject: [PATCH] add debug message during the stack initialization --- src/arch/x86_64/kernel/scheduler.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/arch/x86_64/kernel/scheduler.rs b/src/arch/x86_64/kernel/scheduler.rs index 59595d52f3..c5fe02b0ff 100644 --- a/src/arch/x86_64/kernel/scheduler.rs +++ b/src/arch/x86_64/kernel/scheduler.rs @@ -78,6 +78,8 @@ impl TaskStacks { align_up!(size, BasePageSize::SIZE) }; + debug!("Create stack with a size of {} KB", stack_size >> 10); + // Allocate an executable stack to possibly support dynamically generated code on the stack (see https://security.stackexchange.com/a/47825). let stack = ::mm::allocate(stack_size, false); debug!("Allocating stack {:#X}", stack);