mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-27 12:48:22 +00:00
pmm: add macros related to the HHDM
This commit is contained in:
@@ -13,4 +13,7 @@ void pmm_setused(void*, size_t);
|
||||
extern void* limine_hhdm_offset;
|
||||
extern void* pmm_usabletop;
|
||||
|
||||
#define MAKEHHDM(a) (void*)((uintptr_t)a + (uintptr_t)limine_hhdm_offset)
|
||||
#define FROMHHDM(a) (void*)((uintptr_t)a - (uintptr_t)limine_hhdm_offset)
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user