1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-24 03:25:06 +00:00
serenity/Kernel/Arch
Tom 78f1b5e359 Kernel: Fix some problems with Thread::wait_on and Lock
This changes the Thread::wait_on function to not enable interrupts
upon leaving, which caused some problems with page fault handlers
and in other situations. It may now be called from critical
sections, with interrupts enabled or disabled, and returns to the
same state.

This also requires some fixes to Lock. To aid debugging, a new
define LOCK_DEBUG is added that enables checking for Lock leaks
upon finalization of a Thread.
2020-12-01 09:48:34 +01:00
..
i386 Kernel: Fix some problems with Thread::wait_on and Lock 2020-12-01 09:48:34 +01:00
PC AK: Rename KB, MB, GB to KiB, MiB, GiB 2020-08-16 16:33:28 +02:00