diff --git a/kernel/kernel/Scheduler.cpp b/kernel/kernel/Scheduler.cpp index 728503cf..0f5e8dc8 100644 --- a/kernel/kernel/Scheduler.cpp +++ b/kernel/kernel/Scheduler.cpp @@ -157,6 +157,9 @@ namespace Kernel Thread& current = current_thread(); current.set_rip(rip); current.set_rsp(rsp); + + ASSERT(current.stack_base() <= rsp && rsp <= current.stack_base() + current.stack_size()); + return false; }