This is an automated email from the ASF dual-hosted git repository.

xiaoxiang781216 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git

commit 4b27896ad57fbc810729e8209e2d246fea2ad6f9
Author: hujun5 <[email protected]>
AuthorDate: Thu Jun 12 10:14:27 2025 +0800

    arm64: fix compile error
    
    group/group_create.c:151:41: error: 'struct arch_addrenv_s' has no member 
named 'heap'
    
    Signed-off-by: hujun5 <[email protected]>
---
 arch/arm64/include/arch.h | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)

diff --git a/arch/arm64/include/arch.h b/arch/arm64/include/arch.h
index 971c25a58c0..32b1a3aed7b 100644
--- a/arch/arm64/include/arch.h
+++ b/arch/arm64/include/arch.h
@@ -113,6 +113,7 @@
  *   which gives access to 2MB of memory. This is plenty for many tasks.
  */
 
+#ifdef CONFIG_ARCH_USE_MMU
 struct arch_addrenv_s
 {
   /* Physical addresses of the static page tables (levels N-1) here, these
@@ -133,6 +134,22 @@ struct arch_addrenv_s
   uintptr_t ttbr0;
 };
 
+#elif defined(CONFIG_ARCH_USE_MPU)
+struct arch_addrenv_s
+{
+  uintptr_t text;
+  size_t textsize;
+  uintptr_t data;
+  size_t datasize;
+  uintptr_t heap;
+  size_t heapsize;
+#  ifdef CONFIG_ARCH_VMA_MAPPING
+  uintptr_t shm;
+  size_t shmsize;
+#  endif
+};
+#endif
+
 typedef struct arch_addrenv_s arch_addrenv_t;
 
 #endif /* __ASSEMBLY__ */

Reply via email to