I don't even know what to write at this point

This commit is contained in:
Jozef Nagy 2025-03-10 17:10:35 +01:00
parent df0ebbbbcd
commit 72a46bc7ce
Signed by untrusted user who does not match committer: crz
GPG key ID: 459A4811CEAC7068
12 changed files with 235 additions and 96 deletions

View file

@ -23,13 +23,9 @@
#include <arch/mm/paging.h>
#include <stdint.h>
#define VMM_PRESENT 1
#define VMM_WRITABLE 2
#define VMM_NX (1ull << 63)
#define VMM_USER 4
pagetable *create_pagemap(void);
uintptr_t *create_pagemap(void);
void map_page(uintptr_t *pm, uintptr_t virt, uintptr_t phys, uint64_t flags);
void map_page(pagetable *pm, uintptr_t virt, uintptr_t phys, uint64_t flags);
void map_pages(pagetable *pm, uintptr_t virt, uintptr_t phys, size_t size, uint64_t flags);
#endif /* _MM_VMM_H */