kernel: app_smem: allowing pinning memory partitions
This allows memory partitions to be put into the pinned section so they are available during boot. For example, the stack guard (in libc partition) is needed during boot but before the paging mechanism is initialized. Without pinning it in physical memory, it would fault in early boot process. A new cmake property app_smem,pinned_partitions is introduced so that additional partitions can be pinned if needed. Signed-off-by: Daniel Leung <daniel.leung@intel.com>
This commit is contained in:
parent
e88afd2c37
commit
2117a2a44b
10 changed files with 216 additions and 26 deletions
|
@ -197,6 +197,13 @@ extern char _app_smem_size[];
|
|||
extern char _app_smem_rom_start[];
|
||||
extern char _app_smem_num_words[];
|
||||
|
||||
#ifdef CONFIG_LINKER_USE_PINNED_SECTION
|
||||
extern char _app_smem_pinned_start[];
|
||||
extern char _app_smem_pinned_end[];
|
||||
extern char _app_smem_pinned_size[];
|
||||
extern char _app_smem_pinned_num_words[];
|
||||
#endif
|
||||
|
||||
/* Memory owned by the kernel. Start and end will be aligned for memory
|
||||
* management/protection hardware for the target architecture.
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue