Add configuration to use the fixed DRAM mapping for the page pool (if available) instead of remapping dynamically to access L2 page tables and page data. Also, add logic in address environment creation to initialize the shared data at the beginning of the .bss/.data process memory region.

This commit is contained in:
Gregory Nutt
2014-09-10 08:41:01 -06:00
parent 1f2adbd4c3
commit df4682fd1f
5 changed files with 213 additions and 6 deletions
+25
View File
@@ -161,6 +161,31 @@
#define ARCH_SCRATCH_VBASE (CONFIG_ARCH_STACK_VBASE + ARCH_STACK_SIZE)
/* There is no need to use the scratch memory region if the page pool memory
* is statically mapped.
*/
#ifdef CONFIG_ARCH_PGPOOL_MAPPING
# ifndef CONFIG_ARCH_PGPOOL_PBASE
# error CONFIG_ARCH_PGPOOL_PBASE not defined
# endif
# ifndef CONFIG_ARCH_PGPOOL_VBASE
# error CONFIG_ARCH_PGPOOL_VBASE not defined
# endif
# ifndef CONFIG_ARCH_PGPOOL_SIZE
# error CONFIG_ARCH_PGPOOL_SIZE not defined
# endif
# define CONFIG_ARCH_PGPOOL_PEND \
(CONFIG_ARCH_PGPOOL_PBASE + CONFIG_ARCH_PGPOOL_SIZE)
# define CONFIG_ARCH_PGPOOL_VEND \
(CONFIG_ARCH_PGPOOL_VBASE + CONFIG_ARCH_PGPOOL_SIZE)
#endif
/****************************************************************************
* Public Types
****************************************************************************/