mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-21 23:20:20 +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
Notes:
sideshowbarker
2024-07-17 07:43:10 +09:00
Author: https://github.com/FireFox317 Commit: https://github.com/SerenityOS/serenity/commit/47af812a23 Pull-request: https://github.com/SerenityOS/serenity/pull/14995 Reviewed-by: https://github.com/ADKaster Reviewed-by: https://github.com/bgianfo
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…
Reference in a new issue