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:
Andrew Boie 2019-02-21 13:44:54 -08:00 committed by Anas Nashif
commit 17ce822ed9
5 changed files with 12 additions and 23 deletions

View file

@ -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
};