mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 23:47:45 +00:00
Kernel/aarch64: Implement VERIFY_INTERRUPTS_{ENABLED, DISABLED}
This requires to stub `Process::all_instances()`.
This commit is contained in:
parent
026f37b031
commit
47af812a23
2 changed files with 13 additions and 7 deletions
|
@ -13,6 +13,7 @@
|
|||
#include <Kernel/Memory/SharedInodeVMObject.h>
|
||||
#include <Kernel/Panic.h>
|
||||
#include <Kernel/PhysicalAddress.h>
|
||||
#include <Kernel/Process.h>
|
||||
#include <Kernel/Random.h>
|
||||
#include <Kernel/Sections.h>
|
||||
#include <Kernel/UserOrKernelBuffer.h>
|
||||
|
@ -50,6 +51,16 @@ void Mutex::unlock()
|
|||
|
||||
}
|
||||
|
||||
// Process
|
||||
namespace Kernel {
|
||||
|
||||
SpinlockProtected<Process::List>& Process::all_instances()
|
||||
{
|
||||
VERIFY_NOT_REACHED();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
// LockRank
|
||||
namespace Kernel {
|
||||
|
||||
|
|
|
@ -27,10 +27,5 @@ extern "C" {
|
|||
|
||||
#define TODO() __assertion_failed("TODO", __FILE__, __LINE__, __PRETTY_FUNCTION__)
|
||||
|
||||
#if ARCH(I386) || ARCH(X86_64)
|
||||
# define VERIFY_INTERRUPTS_DISABLED() VERIFY(!(cpu_flags() & 0x200))
|
||||
# define VERIFY_INTERRUPTS_ENABLED() VERIFY(cpu_flags() & 0x200)
|
||||
#else
|
||||
# define VERIFY_INTERRUPTS_DISABLED() TODO()
|
||||
# define VERIFY_INTERRUPTS_ENABLED() TODO()
|
||||
#endif
|
||||
#define VERIFY_INTERRUPTS_DISABLED() VERIFY(!(Processor::are_interrupts_enabled()))
|
||||
#define VERIFY_INTERRUPTS_ENABLED() VERIFY(Processor::are_interrupts_enabled())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue