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

Kernel: Make PageDirectory.cpp compile on aarch64

This commit is contained in:
James Mintram 2022-04-02 23:48:04 +01:00 committed by Brian Gianforcaro
parent 783a44b18e
commit d3b6201b40
7 changed files with 10 additions and 7 deletions

View file

@ -12,7 +12,6 @@
#include <Kernel/PhysicalAddress.h> #include <Kernel/PhysicalAddress.h>
#include <AK/Platform.h> #include <AK/Platform.h>
VALIDATE_IS_X86()
namespace Kernel { namespace Kernel {
@ -83,6 +82,7 @@ public:
PhysicalPtr physical_page_base() const { return PhysicalAddress::physical_page_base(m_raw); } PhysicalPtr physical_page_base() const { return PhysicalAddress::physical_page_base(m_raw); }
void set_physical_page_base(PhysicalPtr value) void set_physical_page_base(PhysicalPtr value)
{ {
// FIXME: IS THIS PLATFORM SPECIFIC?
m_raw &= 0x8000000000000fffULL; m_raw &= 0x8000000000000fffULL;
m_raw |= PhysicalAddress::physical_page_base(value); m_raw |= PhysicalAddress::physical_page_base(value);
} }

View file

@ -6,12 +6,10 @@
#pragma once #pragma once
#include <AK/Platform.h>
#include <AK/Types.h> #include <AK/Types.h>
#include <Kernel/VirtualAddress.h> #include <Kernel/VirtualAddress.h>
#include <AK/Platform.h>
VALIDATE_IS_X86()
namespace Kernel { namespace Kernel {
struct PageFaultFlags { struct PageFaultFlags {

View file

@ -33,6 +33,9 @@ public:
ALWAYS_INLINE static void pause() { } ALWAYS_INLINE static void pause() { }
ALWAYS_INLINE static void wait_check() { } ALWAYS_INLINE static void wait_check() { }
ALWAYS_INLINE u8 physical_address_bit_width() const { return 0; }
ALWAYS_INLINE u8 virtual_address_bit_width() const { return 0; }
ALWAYS_INLINE static bool is_initialized() ALWAYS_INLINE static bool is_initialized()
{ {
return false; return false;

View file

@ -12,11 +12,11 @@
#include <AK/Types.h> #include <AK/Types.h>
#include <Kernel/Arch/DeferredCallEntry.h> #include <Kernel/Arch/DeferredCallEntry.h>
#include <Kernel/Arch/PageDirectory.h>
#include <Kernel/Arch/ProcessorSpecificDataID.h> #include <Kernel/Arch/ProcessorSpecificDataID.h>
#include <Kernel/Arch/x86/ASM_wrapper.h> #include <Kernel/Arch/x86/ASM_wrapper.h>
#include <Kernel/Arch/x86/CPUID.h> #include <Kernel/Arch/x86/CPUID.h>
#include <Kernel/Arch/x86/DescriptorTable.h> #include <Kernel/Arch/x86/DescriptorTable.h>
#include <Kernel/Arch/x86/PageDirectory.h>
#include <Kernel/Arch/x86/TSS.h> #include <Kernel/Arch/x86/TSS.h>
#include <Kernel/Forward.h> #include <Kernel/Forward.h>
#include <Kernel/KString.h> #include <Kernel/KString.h>

View file

@ -23,10 +23,10 @@
#include <LibC/mallocdefs.h> #include <LibC/mallocdefs.h>
#include <Kernel/Arch/PageFault.h>
#include <Kernel/Arch/Processor.h> #include <Kernel/Arch/Processor.h>
#include <Kernel/Arch/RegisterState.h> #include <Kernel/Arch/RegisterState.h>
#include <Kernel/Arch/x86/ISRStubs.h> #include <Kernel/Arch/x86/ISRStubs.h>
#include <Kernel/Arch/x86/PageFault.h>
#include <Kernel/Arch/x86/SafeMem.h> #include <Kernel/Arch/x86/SafeMem.h>
#include <Kernel/Arch/x86/TrapFrame.h> #include <Kernel/Arch/x86/TrapFrame.h>

View file

@ -7,7 +7,7 @@
#include <AK/Assertions.h> #include <AK/Assertions.h>
#include <AK/Memory.h> #include <AK/Memory.h>
#include <AK/StringView.h> #include <AK/StringView.h>
#include <Kernel/Arch/x86/PageFault.h> #include <Kernel/Arch/PageFault.h>
#include <Kernel/BootInfo.h> #include <Kernel/BootInfo.h>
#include <Kernel/CMOS.h> #include <Kernel/CMOS.h>
#include <Kernel/FileSystem/Inode.h> #include <Kernel/FileSystem/Inode.h>

View file

@ -6,6 +6,8 @@
#include <AK/Memory.h> #include <AK/Memory.h>
#include <AK/Singleton.h> #include <AK/Singleton.h>
#include <Kernel/Arch/CPU.h>
#include <Kernel/Arch/PageDirectory.h>
#include <Kernel/Memory/MemoryManager.h> #include <Kernel/Memory/MemoryManager.h>
#include <Kernel/Memory/PageDirectory.h> #include <Kernel/Memory/PageDirectory.h>
#include <Kernel/Prekernel/Prekernel.h> #include <Kernel/Prekernel/Prekernel.h>