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

@ -12,7 +12,7 @@ typedef struct _mem_cache_t {
size_t alignment; /* must be a power of 2 */
size_t num_members;
size_t num_free;
uintptr_t next_free;
vaddr_t next_free;
spinlock_t lock;
struct _mem_cache_t *next;
} mem_cache_t;