mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 03:47:35 +00:00
Kernel/aarch64: Add implementation of Processor::is_bootstrap_processor
This should really go into a generic Processor class, but there is no such class yet, so a FIXME is added for that.
This commit is contained in:
parent
9827c11d8b
commit
1348757dda
1 changed files with 6 additions and 0 deletions
|
@ -171,6 +171,12 @@ public:
|
||||||
return *g_current_processor;
|
return *g_current_processor;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// FIXME: Move this into generic Processor class, when there is such a class.
|
||||||
|
ALWAYS_INLINE static bool is_bootstrap_processor()
|
||||||
|
{
|
||||||
|
return Processor::current_id() == 0;
|
||||||
|
}
|
||||||
|
|
||||||
static void deferred_call_queue(Function<void()> /* callback */)
|
static void deferred_call_queue(Function<void()> /* callback */)
|
||||||
{
|
{
|
||||||
TODO_AARCH64();
|
TODO_AARCH64();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue