Kernel: Remove a comment that has been stale since 7a64f55c0f

This commit is contained in:
Nico Weber 2020-08-16 20:13:28 -04:00 committed by Andreas Kling
parent b0aa8115c2
commit 96ff0971ea
Notes: sideshowbarker 2024-07-19 03:31:46 +09:00

View file

@ -614,9 +614,6 @@ void Thread::push_value_on_stack(FlatPtr value)
RegisterState& Thread::get_register_dump_from_stack() RegisterState& Thread::get_register_dump_from_stack()
{ {
// The userspace registers should be stored at the top of the stack
// We have to subtract 2 because the processor decrements the kernel
// stack before pushing the args.
return *(RegisterState*)(kernel_stack_top() - sizeof(RegisterState)); return *(RegisterState*)(kernel_stack_top() - sizeof(RegisterState));
} }