mirror of
https://github.com/RGBCube/serenity
synced 2025-06-01 11:18:13 +00:00
Kernel: Add support for kernel addresses other than 3-4GB
This commit is contained in:
parent
6c6b778e2e
commit
b708b23b13
5 changed files with 28 additions and 29 deletions
|
@ -141,10 +141,11 @@ class PageDirectoryPointerTable {
|
|||
public:
|
||||
PageDirectoryEntry* directory(size_t index)
|
||||
{
|
||||
VERIFY(index <= (NumericLimits<size_t>::max() << 30));
|
||||
return (PageDirectoryEntry*)(PhysicalAddress::physical_page_base(raw[index]));
|
||||
}
|
||||
|
||||
u64 raw[4];
|
||||
u64 raw[512];
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue