userspace: properly namespace linker vars
App shared memory defines a bunch of symbols in the linker script. Namespace them properly as private zephyr variables. The variables which indicate the bounds of the entire partition now end with "_part_start", "_part_size", and "_part_end" to make them easy for scripts to distinguish them from other generated symbols for data/bss sizes. Finally, the bss size is not rounded up, this was causing unnecessary memory to be zeroed. Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
This commit is contained in:
parent
c8a811bc58
commit
f084c38d44
2 changed files with 12 additions and 12 deletions
|
@ -62,10 +62,10 @@ struct z_app_region {
|
|||
size_t bss_size;
|
||||
};
|
||||
|
||||
#define Z_APP_START(id) data_smem_##id##_start
|
||||
#define Z_APP_SIZE(id) data_smem_##id##_size
|
||||
#define Z_APP_BSS_START(id) data_smem_##id##_bss_start
|
||||
#define Z_APP_BSS_SIZE(id) data_smem_##id##_bss_size
|
||||
#define Z_APP_START(id) z_data_smem_##id##_part_start
|
||||
#define Z_APP_SIZE(id) z_data_smem_##id##_part_size
|
||||
#define Z_APP_BSS_START(id) z_data_smem_##id##_bss_start
|
||||
#define Z_APP_BSS_SIZE(id) z_data_smem_##id##_bss_size
|
||||
|
||||
/* If a partition is declared with K_APPMEM_PARTITION, but never has any
|
||||
* data assigned to its contents, then no symbols with its prefix will end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue