diff options
author | James Mintram <me@jamesrm.com> | 2021-12-01 17:14:19 +0000 |
---|---|---|
committer | Brian Gianforcaro <b.gianfo@gmail.com> | 2021-12-01 11:22:04 -0800 |
commit | eb33df0c30a89e36d1ec992c9e251a1d018bc5c5 (patch) | |
tree | df1d23c1a8440702ab14d8b2349f281ecea47750 /Kernel/Memory | |
parent | 17fb2adf6146e1f6acf2152e78943c1ac9c36f5a (diff) | |
download | serenity-eb33df0c30a89e36d1ec992c9e251a1d018bc5c5.zip |
Kernel: Add an x86 include check+error in x86/PageFault.h
Diffstat (limited to 'Kernel/Memory')
-rw-r--r-- | Kernel/Memory/MemoryManager.cpp | 1 | ||||
-rw-r--r-- | Kernel/Memory/MemoryManager.h | 1 | ||||
-rw-r--r-- | Kernel/Memory/Region.cpp | 1 | ||||
-rw-r--r-- | Kernel/Memory/Region.h | 5 |
4 files changed, 6 insertions, 2 deletions
diff --git a/Kernel/Memory/MemoryManager.cpp b/Kernel/Memory/MemoryManager.cpp index c16984e955..9d915078a1 100644 --- a/Kernel/Memory/MemoryManager.cpp +++ b/Kernel/Memory/MemoryManager.cpp @@ -7,6 +7,7 @@ #include <AK/Assertions.h> #include <AK/Memory.h> #include <AK/StringView.h> +#include <Kernel/Arch/x86/PageFault.h> #include <Kernel/BootInfo.h> #include <Kernel/CMOS.h> #include <Kernel/FileSystem/Inode.h> diff --git a/Kernel/Memory/MemoryManager.h b/Kernel/Memory/MemoryManager.h index fd75a08053..fce1bf5521 100644 --- a/Kernel/Memory/MemoryManager.h +++ b/Kernel/Memory/MemoryManager.h @@ -11,7 +11,6 @@ #include <AK/NonnullOwnPtrVector.h> #include <AK/NonnullRefPtrVector.h> #include <AK/String.h> -#include <Kernel/Arch/x86/PageFault.h> #include <Kernel/Arch/x86/TrapFrame.h> #include <Kernel/Forward.h> #include <Kernel/Locking/Spinlock.h> diff --git a/Kernel/Memory/Region.cpp b/Kernel/Memory/Region.cpp index 0e2142051a..1e89f8dd84 100644 --- a/Kernel/Memory/Region.cpp +++ b/Kernel/Memory/Region.cpp @@ -6,6 +6,7 @@ #include <AK/Memory.h> #include <AK/StringView.h> +#include <Kernel/Arch/x86/PageFault.h> #include <Kernel/Debug.h> #include <Kernel/FileSystem/Inode.h> #include <Kernel/Memory/AnonymousVMObject.h> diff --git a/Kernel/Memory/Region.h b/Kernel/Memory/Region.h index 5c31693619..2f1f8af8e0 100644 --- a/Kernel/Memory/Region.h +++ b/Kernel/Memory/Region.h @@ -9,7 +9,6 @@ #include <AK/EnumBits.h> #include <AK/IntrusiveList.h> #include <AK/Weakable.h> -#include <Kernel/Arch/x86/PageFault.h> #include <Kernel/Forward.h> #include <Kernel/Heap/SlabAllocator.h> #include <Kernel/KString.h> @@ -18,6 +17,10 @@ #include <Kernel/Sections.h> #include <Kernel/UnixTypes.h> +namespace Kernel { +class PageFault; +} + namespace Kernel::Memory { enum class ShouldFlushTLB { |