mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 11:07:45 +00:00
Kernel/aarch64: Add implementation for Processor::current_in_irq
This commit is contained in:
parent
1348757dda
commit
6680241773
1 changed files with 6 additions and 2 deletions
|
@ -1,5 +1,6 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2018-2021, James Mintram <me@jamesrm.com>
|
* Copyright (c) 2018-2021, James Mintram <me@jamesrm.com>
|
||||||
|
* Copyright (c) 2022, Timon Kruiper <timonkruiper@gmail.com>
|
||||||
*
|
*
|
||||||
* SPDX-License-Identifier: BSD-2-Clause
|
* SPDX-License-Identifier: BSD-2-Clause
|
||||||
*/
|
*/
|
||||||
|
@ -103,8 +104,7 @@ public:
|
||||||
|
|
||||||
ALWAYS_INLINE static FlatPtr current_in_irq()
|
ALWAYS_INLINE static FlatPtr current_in_irq()
|
||||||
{
|
{
|
||||||
TODO_AARCH64();
|
return current().m_in_irq;
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
ALWAYS_INLINE static u64 read_cpu_counter()
|
ALWAYS_INLINE static u64 read_cpu_counter()
|
||||||
|
@ -186,6 +186,10 @@ public:
|
||||||
|
|
||||||
private:
|
private:
|
||||||
u32 m_in_critical { 0 };
|
u32 m_in_critical { 0 };
|
||||||
|
|
||||||
|
// FIXME: Once there is code in place to differentiate IRQs from synchronous exceptions (syscalls),
|
||||||
|
// this member should be incremented. Also this member shouldn't be a FlatPtr.
|
||||||
|
FlatPtr m_in_irq { 0 };
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue