mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-11-01 15:08:21 +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* limine_hhdm_offset;
|
||||||
extern void* pmm_usabletop;
|
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
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user