kv2: add paging

this also fixes up a bunch of formatting, adding the type vaddr_t

Signed-off-by: Michael Shaw <spencershawiscool@gmail.com>
This commit is contained in:
Michael Shaw 2026-04-13 00:04:26 -04:00
commit d6873d6c7a
18 changed files with 130 additions and 66 deletions

View file

@ -23,13 +23,13 @@ genrw(ds);
#undef genrw
struct mem_zone {
uintptr_t virt_base;
vaddr_t virt_base;
size_t len;
};
size_t mem_get_zones(struct mem_zone **ret);
void mem_init();
extern uintptr_t hhdm_start;
extern vaddr_t hhdm_start;
#endif /* _MEM_H_ */