vmm: fix vnodeflagstommuflags

This commit is contained in:
Matheus
2023-05-07 22:36:30 -03:00
parent fa97996fcc
commit 7c22b401be
+1 -1
View File
@@ -69,7 +69,7 @@ typedef struct {
extern vmmcontext_t vmm_kernelctx;
static inline mmuflags_t vnodeflagstommuflags(int flags) {
mmuflags_t mmuflags = 0;
mmuflags_t mmuflags = ARCH_MMU_FLAGS_USER;
if (flags & V_FFLAGS_READ)
mmuflags |= ARCH_MMU_FLAGS_READ;
if (flags & V_FFLAGS_WRITE)