app_shmem: create generic libc partition
We need a generic name for the partition containing essential C library globals. We're going to need to add the stack canary guard to this area so user mode can read it. Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
This commit is contained in:
parent
80e3a2c246
commit
17ce822ed9
5 changed files with 12 additions and 23 deletions
|
@ -17,22 +17,14 @@
|
|||
#include <app_memory/app_memdomain.h>
|
||||
#include <init.h>
|
||||
|
||||
#ifdef CONFIG_APP_SHARED_MEM
|
||||
K_APPMEM_PARTITION_DEFINE(z_newlib_partition);
|
||||
#define LIBC_BSS K_APP_BMEM(z_newlib_partition)
|
||||
#define LIBC_DATA K_APP_DMEM(z_newlib_partition)
|
||||
#define LIBC_BSS K_APP_BMEM(z_libc_partition)
|
||||
#define LIBC_DATA K_APP_DMEM(z_libc_partition)
|
||||
|
||||
#if CONFIG_NEWLIB_LIBC_ALIGNED_HEAP_SIZE
|
||||
K_APPMEM_PARTITION_DEFINE(z_malloc_partition);
|
||||
#define MALLOC_BSS K_APP_BMEM(z_malloc_partition)
|
||||
#endif /* CONFIG_NEWLIB_LIBC_ALIGNED_HEAP_SIZE */
|
||||
|
||||
#else
|
||||
#define LIBC_BSS
|
||||
#define LIBC_DATA
|
||||
#define MALLOC_BSS
|
||||
#endif /* CONFIG_APP_SHARED_MEM */
|
||||
|
||||
#define USED_RAM_END_ADDR POINTER_TO_UINT(&_end)
|
||||
|
||||
#if CONFIG_NEWLIB_LIBC_ALIGNED_HEAP_SIZE
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue