1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-09-13 19:47:59 +00:00

Kernel: Make MemoryManager compile on aarch64

This commit is contained in:
James Mintram 2022-04-02 23:56:20 +01:00 committed by Brian Gianforcaro
parent 6299a69253
commit d79c772c87
10 changed files with 119 additions and 22 deletions

View file

@ -4,6 +4,8 @@
* SPDX-License-Identifier: BSD-2-Clause
*/
#include <AK/Forward.h>
#include <Kernel/Arch/CPU.h>
#include <Kernel/Arch/RegisterState.h>

View file

@ -0,0 +1,33 @@
/*
* Copyright (c) 2018-2021, Andreas Kling <kling@serenityos.org>
* Copyright (c) 2018-2022, James Mintram <me@jamesrm.com>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#include <Kernel/Memory/PageDirectory.h>
namespace Kernel::Memory {
void PageDirectory::register_page_directory(PageDirectory*)
{
}
void PageDirectory::deregister_page_directory(PageDirectory*)
{
}
RefPtr<PageDirectory> PageDirectory::find_current()
{
return nullptr;
}
void activate_kernel_page_directory(PageDirectory const&)
{
}
void activate_page_directory(PageDirectory const&, Thread*)
{
}
}

View file

@ -13,8 +13,14 @@
#include <Kernel/Arch/ProcessorSpecificDataID.h>
class VirtualAddress;
namespace Kernel {
namespace Memory {
class PageDirectory;
};
class Thread;
// FIXME This needs to go behind some sort of platform abstraction
@ -41,6 +47,14 @@ public:
return false;
}
ALWAYS_INLINE static void flush_tlb_local(VirtualAddress&, size_t&)
{
}
ALWAYS_INLINE static void flush_tlb(Memory::PageDirectory const*, VirtualAddress const&, size_t)
{
}
ALWAYS_INLINE static u32 current_id()
{
return 0;

View file

@ -9,6 +9,8 @@
namespace Kernel {
struct RegisterState {
FlatPtr userspace_sp() const { return 0; }
FlatPtr ip() const { return 0; }
};
struct DebugRegisterState {