vmm: fix mmuflagstovnodeflags

This commit is contained in:
Matheus
2023-05-13 22:29:18 -03:00
parent 0218e2a390
commit df1448b443
+1 -1
View File
@@ -85,7 +85,7 @@ static inline int mmuflagstovnodeflags(mmuflags_t mmuflags) {
if (mmuflags & ARCH_MMU_FLAGS_READ)
flags |= V_FFLAGS_READ;
if (mmuflags & ARCH_MMU_FLAGS_WRITE)
flags |= V_FFLAGS_READ;
flags |= V_FFLAGS_WRITE;
if ((mmuflags & ARCH_MMU_FLAGS_NOEXEC) == 0)
flags |= V_FFLAGS_EXEC;