1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 04:57:45 +00:00

Kernel: Add more stubs needed for Thread.cpp

This commit is contained in:
Gunnar Beutner 2022-10-16 16:58:44 +02:00 committed by Linus Groh
parent 1e3edb3b76
commit 69efded562
4 changed files with 27 additions and 0 deletions

View file

@ -142,6 +142,14 @@ public:
current_processor.m_in_critical = current_processor.in_critical() - 1;
}
static u32 clear_critical();
ALWAYS_INLINE static void restore_critical(u32 prev_critical)
{
(void)prev_critical;
TODO_AARCH64();
}
ALWAYS_INLINE static u32 in_critical()
{
return current().m_in_critical;