1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 06:07:34 +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

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