feat/kernel: Added a physical page manager, has caching for single page alloc
This commit is contained in:
parent
e2d6cfceea
commit
2bbc7dd70f
8 changed files with 309 additions and 1 deletions
15
kernel/src/boot/emk.h
Normal file
15
kernel/src/boot/emk.h
Normal file
|
@ -0,0 +1,15 @@
|
|||
#ifndef EMK_H
|
||||
#define EMK_H
|
||||
|
||||
#include <boot/limine.h>
|
||||
#include <stdint.h>
|
||||
|
||||
extern uint64_t hhdm_offset;
|
||||
extern struct limine_memmap_response *memmap;
|
||||
|
||||
#define HIGHER_HALF(ptr) ((void *)((uint64_t)ptr) + hhdm_offset)
|
||||
#define PHYSICAL(ptr) ((void *)((uint64_t)ptr) - hhdm_offset)
|
||||
|
||||
#define BIT(x) (1ULL << (x))
|
||||
|
||||
#endif // EMK_H
|
Loading…
Add table
Add a link
Reference in a new issue