mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 13:49:16 +00:00
Kernel: Move Memory/PageDirectory.{cpp,h} to arch-specific directory
The handling of page tables is very architecture specific, so belongs in the Arch directory. Some parts were already architecture-specific, however this commit moves the rest of the PageDirectory class into the Arch directory. While we're here the aarch64/PageDirectory.{h,cpp} files are updated to be aarch64 specific, by renaming some members and removing x86_64 specific code.
This commit is contained in:
parent
55d756a813
commit
697c5ca5e5
Notes:
sideshowbarker
2024-07-17 08:34:29 +09:00
Author: https://github.com/FireFox317
Commit: 697c5ca5e5
Pull-request: https://github.com/SerenityOS/serenity/pull/16911
Reviewed-by: https://github.com/ADKaster
Reviewed-by: https://github.com/nico ✅
23 changed files with 304 additions and 228 deletions
|
@ -21,15 +21,13 @@
|
|||
#include <Kernel/Memory/RegionTree.h>
|
||||
#include <Kernel/Memory/VMObject.h>
|
||||
|
||||
namespace Kernel {
|
||||
class PageDirectoryEntry;
|
||||
class PageTableEntry;
|
||||
}
|
||||
|
||||
struct KmallocGlobalData;
|
||||
|
||||
namespace Kernel::Memory {
|
||||
|
||||
class PageDirectoryEntry;
|
||||
class PageTableEntry;
|
||||
|
||||
ErrorOr<FlatPtr> page_round_up(FlatPtr x);
|
||||
|
||||
constexpr FlatPtr page_round_down(FlatPtr x)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue