mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 20:17:44 +00:00
Kernel: Remove ASM_Wrapper include from platform independent processor.h
This commit is contained in:
parent
bf79c73158
commit
1c86b7043b
3 changed files with 11 additions and 4 deletions
|
@ -8,7 +8,6 @@
|
|||
#pragma once
|
||||
|
||||
#include <AK/Function.h>
|
||||
#include <Kernel/Arch/x86/ASM_wrapper.h>
|
||||
|
||||
namespace Kernel {
|
||||
|
||||
|
|
|
@ -6,6 +6,8 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include <AK/Platform.h>
|
||||
|
||||
#define __STRINGIFY_HELPER(x) #x
|
||||
#define __STRINGIFY(x) __STRINGIFY_HELPER(x)
|
||||
|
||||
|
@ -23,8 +25,13 @@ extern "C" {
|
|||
[[noreturn]] void abort();
|
||||
}
|
||||
|
||||
#define VERIFY_INTERRUPTS_DISABLED() VERIFY(!(cpu_flags() & 0x200))
|
||||
#define VERIFY_INTERRUPTS_ENABLED() VERIFY(cpu_flags() & 0x200)
|
||||
|
||||
static constexpr bool TODO = false;
|
||||
#define TODO() VERIFY(TODO)
|
||||
|
||||
#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
|
||||
|
|
|
@ -18,6 +18,7 @@
|
|||
#include <AK/WeakPtr.h>
|
||||
#include <AK/Weakable.h>
|
||||
#include <Kernel/API/Syscall.h>
|
||||
#include <Kernel/Assertions.h>
|
||||
#include <Kernel/AtomicEdgeAction.h>
|
||||
#include <Kernel/FileSystem/InodeMetadata.h>
|
||||
#include <Kernel/FileSystem/OpenFileDescription.h>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue