mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-11-01 15:08:21 +00:00
vmm: fix vnodeflagstommuflags
This commit is contained in:
@@ -69,7 +69,7 @@ typedef struct {
|
|||||||
extern vmmcontext_t vmm_kernelctx;
|
extern vmmcontext_t vmm_kernelctx;
|
||||||
|
|
||||||
static inline mmuflags_t vnodeflagstommuflags(int flags) {
|
static inline mmuflags_t vnodeflagstommuflags(int flags) {
|
||||||
mmuflags_t mmuflags = 0;
|
mmuflags_t mmuflags = ARCH_MMU_FLAGS_USER;
|
||||||
if (flags & V_FFLAGS_READ)
|
if (flags & V_FFLAGS_READ)
|
||||||
mmuflags |= ARCH_MMU_FLAGS_READ;
|
mmuflags |= ARCH_MMU_FLAGS_READ;
|
||||||
if (flags & V_FFLAGS_WRITE)
|
if (flags & V_FFLAGS_WRITE)
|
||||||
|
|||||||
Reference in New Issue
Block a user