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
|
@ -302,11 +302,9 @@ void main(void)
|
|||
#ifdef CONFIG_APP_SHARED_MEM
|
||||
struct k_mem_partition *parts[] = {
|
||||
&ztest_mem_partition,
|
||||
#ifdef CONFIG_NEWLIB_LIBC
|
||||
/* Newlib libc.a library and hooks globals */
|
||||
&z_newlib_partition,
|
||||
#endif
|
||||
/* Both minimal and newlib libc expose this for malloc arena */
|
||||
/* C library globals, stack canary storage, etc */
|
||||
&z_libc_partition,
|
||||
/* Required for access to malloc arena */
|
||||
&z_malloc_partition
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue