Kernel: Stack pointer is validated when updated

This allows us not to fail stack pointer when in syscall since
interrupts use their own stack
This commit is contained in:
2023-04-21 10:40:24 +03:00
parent b1c7af38d0
commit 9c506ef85b
9 changed files with 37 additions and 23 deletions
-2
View File
@@ -158,8 +158,6 @@ namespace Kernel
current.set_rip(rip);
current.set_rsp(rsp);
ASSERT(current.stack_base() <= rsp && rsp <= current.stack_base() + current.stack_size());
return false;
}