mirror of
https://github.com/apache/nuttx.git
synced 2026-05-22 05:42:05 +08:00
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:
@@ -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
|
||||
****************************************************************************/
|
||||
|
||||
Reference in New Issue
Block a user