Extend virtual/physical address conversions to include addresses in shared memory.

This commit is contained in:
Gregory Nutt 2014-09-23 16:03:08 -06:00
parent cce614c67e
commit a9864bc100

View File

@ -137,6 +137,9 @@ static inline bool arm_uservaddr(uintptr_t vaddr)
(vaddr >= CONFIG_ARCH_HEAP_VBASE && vaddr < ARCH_HEAP_VEND)
#ifdef CONFIG_ARCH_STACK_DYNAMIC
|| (vaddr >= CONFIG_ARCH_STACK_VBASE && vaddr < ARCH_STACK_VEND)
#endif
#ifdef CONFIG_MM_SHM
|| (vaddr >= CONFIG_ARCH_SHM_VBASE && vaddr < ARCH_SHM_VEND)
#endif
);
}