18#define PAGE_SIZE 4096ULL
20#define PAGE_PRESENT 0x1
23#define PAGE_NX (1ULL << 63)
25#define USER_CODE_FLAGS (PAGE_PRESENT | PAGE_USER | PAGE_RW )
26#define USER_DATA_FLAGS (PAGE_PRESENT | PAGE_USER | PAGE_RW | PAGE_NX)
38void unmap_user_page(uint64_t virt);
47uintptr_t allocate_page(
void);
48uintptr_t allocate_pages(
size_t count);
49uint64_t virtual_to_physical(uint64_t virt);
50uint64_t fast_virt_to_phys(
void* v);
51uint64_t virt_to_phys(
void* v);
This is a basic header files with FrostWing specific short forms and basically a good for life header...
void map_user_page(uint64_t virt, uint64_t phys, uint64_t flags)
Function to map userland pages.
void paging_set_hhdm_offset(uint64_t offset)
Sets the HHDM offset used to access physical memory virtually.
The Header file for userland/userspace.