mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 21:17:44 +00:00
Kernel: Rename Processor::id() => current_id()
And let id() be the non-static version that gives you the ID of a Processor object.
This commit is contained in:
parent
0f03a8aece
commit
dea93a8bb9
9 changed files with 54 additions and 54 deletions
|
@ -308,7 +308,7 @@ public:
|
|||
return (Thread*)read_gs_ptr(__builtin_offsetof(Processor, m_idle_thread));
|
||||
}
|
||||
|
||||
ALWAYS_INLINE u32 get_id() const
|
||||
ALWAYS_INLINE u32 id() const
|
||||
{
|
||||
// NOTE: This variant should only be used when iterating over all
|
||||
// Processor instances, or when it's guaranteed that the thread
|
||||
|
@ -318,7 +318,7 @@ public:
|
|||
return m_cpu;
|
||||
}
|
||||
|
||||
ALWAYS_INLINE static u32 id()
|
||||
ALWAYS_INLINE static u32 current_id()
|
||||
{
|
||||
// See comment in Processor::current_thread
|
||||
return read_gs_ptr(__builtin_offsetof(Processor, m_cpu));
|
||||
|
@ -326,7 +326,7 @@ public:
|
|||
|
||||
ALWAYS_INLINE static bool is_bootstrap_processor()
|
||||
{
|
||||
return Processor::id() == 0;
|
||||
return Processor::current_id() == 0;
|
||||
}
|
||||
|
||||
ALWAYS_INLINE static FlatPtr current_in_irq()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue