Move PAGE_SIZE from hulk.hippo to hulk.pagetable

This commit is contained in:
Josh Holtrop 2022-11-01 22:23:26 -04:00
parent e49c27cbbc
commit 0b326e2e36
2 changed files with 4 additions and 3 deletions

View File

@ -7,9 +7,7 @@ import hulk.header;
import hulk.bootinfo;
import hulk.klog;
import hulk.linker_addresses;
/** Page size. */
enum size_t PAGE_SIZE = 4096u;
import hulk.pagetable;
struct hippo
{

View File

@ -16,6 +16,9 @@ enum ulong PT_GLOBAL = 0x100u;
enum ulong PT_NO_EXECUTE = 0x8000_0000_0000_0000u;
/** @} */
/** Page size in bytes. */
enum ulong PAGE_SIZE = 4096u;
/**
* Structure that represents a page table entry.
*/