1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 16:47:36 +00:00

Kernel: Remove ASM_Wrapper include from platform independent processor.h

This commit is contained in:
James Mintram 2021-11-30 22:59:05 +00:00 committed by Brian Gianforcaro
parent bf79c73158
commit 1c86b7043b
3 changed files with 11 additions and 4 deletions

View file

@ -8,7 +8,6 @@
#pragma once
#include <AK/Function.h>
#include <Kernel/Arch/x86/ASM_wrapper.h>
namespace Kernel {

View file

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

View file

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