Kernel: Add an x86 include check+error in x86/PageDirectory.h

This commit is contained in:
James Mintram 2021-12-01 17:14:03 +00:00 committed by Brian Gianforcaro
parent 70a18a2271
commit 17fb2adf61
3 changed files with 11 additions and 1 deletions

View file

@ -11,6 +11,9 @@
#include <Kernel/Forward.h>
#include <Kernel/PhysicalAddress.h>
#include <AK/Platform.h>
VALIDATE_IS_X86()
namespace Kernel {
class PageDirectoryEntry {

View file

@ -6,11 +6,14 @@
#pragma once
#include <Kernel/Arch/x86/PageDirectory.h>
#include <Kernel/Multiboot.h>
#include <Kernel/PhysicalAddress.h>
#include <Kernel/VirtualAddress.h>
namespace Kernel {
class PageTableEntry;
}
extern "C" PhysicalAddress start_of_prekernel_image;
extern "C" PhysicalAddress end_of_prekernel_image;
extern "C" size_t physical_to_virtual_offset;

View file

@ -21,6 +21,10 @@
#include <Kernel/Memory/Region.h>
#include <Kernel/Memory/VMObject.h>
namespace Kernel {
class PageDirectoryEntry;
}
namespace Kernel::Memory {
constexpr bool page_round_up_would_wrap(FlatPtr x)