summaryrefslogtreecommitdiff
path: root/nuttx/include/nuttx/addrenv.h
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2014-09-23 13:19:30 -0600
committerGregory Nutt <gnutt@nuttx.org>2014-09-23 13:19:30 -0600
commite3c58b7dc466b51df9a9969e69e1c6c813a813ad (patch)
treeb0bc46d3ec1bd6a1fe4ef1838094043f33f9984a /nuttx/include/nuttx/addrenv.h
parente850a2cbc6edd604c795462f35ecf17e139fc1f0 (diff)
downloadnuttx-e3c58b7dc466b51df9a9969e69e1c6c813a813ad.tar.gz
nuttx-e3c58b7dc466b51df9a9969e69e1c6c813a813ad.tar.bz2
nuttx-e3c58b7dc466b51df9a9969e69e1c6c813a813ad.zip
Add logic necessary to handler remapping of shared memory on contex switches
Diffstat (limited to 'nuttx/include/nuttx/addrenv.h')
-rw-r--r--nuttx/include/nuttx/addrenv.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/nuttx/include/nuttx/addrenv.h b/nuttx/include/nuttx/addrenv.h
index 586afbf7d..4aaa2d550 100644
--- a/nuttx/include/nuttx/addrenv.h
+++ b/nuttx/include/nuttx/addrenv.h
@@ -197,6 +197,7 @@
# define CONFIG_ARCH_SHM_NPAGES 1
# endif
+# define ARCH_SHM_MAXPAGES (CONFIG_ARCH_SHM_NPAGES * CONFIG_ARCH_SHM_MAXREGIONS)
# define ARCH_SHM_REGIONSIZE (CONFIG_ARCH_SHM_NPAGES * CONFIG_MM_PGSIZE)
# define ARCH_SHM_SIZE (CONFIG_ARCH_SHM_MAXREGIONS * ARCH_SHM_REGIONSIZE)
# define ARCH_SHM_VEND (CONFIG_ARCH_SHM_VBASE + ARCH_SHM_SIZE)
@@ -235,6 +236,8 @@
* Public Types
****************************************************************************/
+#ifndef __ASSEMBLY__
+
/* Reserved .bss/.data region. In the kernel build (CONFIG_BUILD_KERNEL),
* the region at the beginning of the .bss/.data region is reserved for use
* by the OS. This reserved region contains support for:
@@ -353,5 +356,6 @@ struct addrenv_reserve_s
/* Prototyped in include/nuttx/arch.h as part of the OS/platform interface */
+#endif /* __ASSEMBLY__ */
#endif /* CONFIG_ARCH_ADDRENV */
#endif /* __INCLUDE_NUTTX_ADDRENV_H */