Kernel/aarch64: Implement VERIFY_INTERRUPTS_{ENABLED, DISABLED}

This requires to stub `Process::all_instances()`.
This commit is contained in:
Timon Kruiper 2022-08-23 22:24:42 +02:00 committed by Andreas Kling
parent 026f37b031
commit 47af812a23
Notes: sideshowbarker 2024-07-17 07:43:10 +09:00
2 changed files with 13 additions and 7 deletions

View file

@ -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 {

View file

@ -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())