mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-31 22:48:21 +00:00
vmm: export vmm_kernelctx
This commit is contained in:
@@ -55,10 +55,13 @@ typedef struct {
|
|||||||
pagetableptr_t pagetable;
|
pagetableptr_t pagetable;
|
||||||
} vmmcontext_t;
|
} vmmcontext_t;
|
||||||
|
|
||||||
|
extern vmmcontext_t vmm_kernelctx;
|
||||||
|
|
||||||
void *vmm_map(void *addr, size_t size, int flags, mmuflags_t mmuflags, void *private);
|
void *vmm_map(void *addr, size_t size, int flags, mmuflags_t mmuflags, void *private);
|
||||||
void vmm_unmap(void *addr, size_t size, int flags);
|
void vmm_unmap(void *addr, size_t size, int flags);
|
||||||
bool vmm_pagefault(void *addr, bool user, int actions);
|
bool vmm_pagefault(void *addr, bool user, int actions);
|
||||||
vmmcontext_t *vmm_newcontext();
|
vmmcontext_t *vmm_newcontext();
|
||||||
|
void vmm_switchcontext(vmmcontext_t *ctx);
|
||||||
void vmm_init();
|
void vmm_init();
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user