You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2024/10/03 13:06:58 UTC
(nuttx) branch master updated: arch/x86_64/addrenv.h: fix MMU flags for USER region
This is an automated email from the ASF dual-hosted git repository.
xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git
The following commit(s) were added to refs/heads/master by this push:
new 4a6e6563cb arch/x86_64/addrenv.h: fix MMU flags for USER region
4a6e6563cb is described below
commit 4a6e6563cbd3239411af30949adb7ccee206f0f9
Author: p-szafonimateusz <p-...@xiaomi.com>
AuthorDate: Tue Aug 20 13:18:41 2024 +0200
arch/x86_64/addrenv.h: fix MMU flags for USER region
fix typo in MMU flags for USER region
Signed-off-by: p-szafonimateusz <p-...@xiaomi.com>
---
arch/x86_64/src/common/addrenv.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/x86_64/src/common/addrenv.h b/arch/x86_64/src/common/addrenv.h
index 9c6dc9a1ca..a0b3e91185 100644
--- a/arch/x86_64/src/common/addrenv.h
+++ b/arch/x86_64/src/common/addrenv.h
@@ -66,7 +66,7 @@
/* Mark user memory if in kernel build */
-#ifndef CONFIG_BUILD_KERNEL
+#ifdef CONFIG_BUILD_KERNEL
# define MMU_USER_DEFAULT (X86_PAGE_USER)
#else
# define MMU_USER_DEFAULT (0)