Skip to content

Commit

Permalink
add debug message during the stack initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
stlankes committed Apr 15, 2020
1 parent 5f3f8da commit ece75d0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/arch/x86_64/kernel/scheduler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit ece75d0

Please sign in to comment.