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