userspace: remove APPLICATION_MEMORY feature
This was never a long-term solution, more of a gross hack to get test cases working until we could figure out a good end-to-end solution for memory domains that generated appropriate linker sections. Now that we have this with the app shared memory feature, and have converted all tests to remove it, delete this feature. To date all userspace APIs have been tagged as 'experimental' which sidesteps deprecation policies. Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
This commit is contained in:
parent
525065dd8b
commit
41f6011c36
52 changed files with 152 additions and 701 deletions
|
@ -149,52 +149,6 @@ SECTIONS {
|
|||
_app_smem_rom_start = LOADADDR(_APP_SMEM_SECTION_NAME);
|
||||
#endif /* CONFIG_APP_SHARED_MEM */
|
||||
|
||||
#ifdef CONFIG_APPLICATION_MEMORY
|
||||
SECTION_DATA_PROLOGUE(_APP_DATA_SECTION_NAME, (OPTIONAL),)
|
||||
{
|
||||
MPU_MIN_SIZE_ALIGN
|
||||
#include <app_data_alignment.ld>
|
||||
|
||||
__app_ram_start = .;
|
||||
__app_data_ram_start = .;
|
||||
_image_ram_start = .;
|
||||
APP_INPUT_SECTION(.data)
|
||||
APP_INPUT_SECTION(".data.*")
|
||||
__app_data_ram_end = .;
|
||||
} GROUP_DATA_LINK_IN(RAMABLE_REGION, ROMABLE_REGION)
|
||||
|
||||
__app_data_rom_start = LOADADDR(_APP_DATA_SECTION_NAME);
|
||||
|
||||
SECTION_PROLOGUE(_APP_BSS_SECTION_NAME, (NOLOAD OPTIONAL),)
|
||||
{
|
||||
__app_bss_start = .;
|
||||
APP_INPUT_SECTION(.bss)
|
||||
APP_INPUT_SECTION(".bss.*")
|
||||
APP_INPUT_SECTION(COMMON)
|
||||
__app_bss_end = .;
|
||||
} GROUP_DATA_LINK_IN(RAMABLE_REGION, RAMABLE_REGION)
|
||||
|
||||
__app_bss_num_words = (__app_bss_end - __app_bss_start) >> 2;
|
||||
|
||||
SECTION_PROLOGUE(_APP_NOINIT_SECTION_NAME, (NOLOAD OPTIONAL),)
|
||||
{
|
||||
APP_INPUT_SECTION(.noinit)
|
||||
APP_INPUT_SECTION(".noinit.*")
|
||||
|
||||
} GROUP_DATA_LINK_IN(RAMABLE_REGION, RAMABLE_REGION)
|
||||
|
||||
__app_last_address_used = .;
|
||||
|
||||
/* Pad out application ram area to make MPU friendly */
|
||||
SECTION_PROLOGUE(app_pad, (NOLOAD OPTIONAL),)
|
||||
{
|
||||
. = ALIGN(_app_data_align);
|
||||
MPU_MIN_SIZE_ALIGN
|
||||
} GROUP_DATA_LINK_IN(RAMABLE_REGION, RAMABLE_REGION)
|
||||
__app_ram_end = .;
|
||||
__app_ram_size = __app_ram_end - __app_ram_start;
|
||||
#endif /* CONFIG_APPLICATION_MEMORY */
|
||||
|
||||
SECTION_DATA_PROLOGUE(_BSS_SECTION_NAME,(NOLOAD),) {
|
||||
MPU_MIN_SIZE_ALIGN
|
||||
/*
|
||||
|
@ -203,14 +157,11 @@ SECTIONS {
|
|||
*/
|
||||
. = ALIGN(4);
|
||||
__bss_start = .;
|
||||
|
||||
#ifndef CONFIG_APPLICATION_MEMORY
|
||||
_image_ram_start = .;
|
||||
#endif
|
||||
__kernel_ram_start = .;
|
||||
KERNEL_INPUT_SECTION(.bss)
|
||||
KERNEL_INPUT_SECTION(".bss.*")
|
||||
KERNEL_INPUT_SECTION(COMMON)
|
||||
*(.bss)
|
||||
*(".bss.*")
|
||||
*(COMMON)
|
||||
*(".kernel_bss.*")
|
||||
|
||||
/*
|
||||
|
@ -225,8 +176,8 @@ SECTIONS {
|
|||
* This section is used for non-initialized objects that
|
||||
* will not be cleared during the boot process.
|
||||
*/
|
||||
KERNEL_INPUT_SECTION(.noinit)
|
||||
KERNEL_INPUT_SECTION(".noinit.*")
|
||||
*(.noinit)
|
||||
*(".noinit.*")
|
||||
*(".kernel_noinit.*")
|
||||
|
||||
#ifdef CONFIG_SOC_NOINIT_LD
|
||||
|
@ -239,8 +190,8 @@ SECTIONS {
|
|||
|
||||
/* when XIP, .text is in ROM, but vector table must be at start of .data */
|
||||
__data_ram_start = .;
|
||||
KERNEL_INPUT_SECTION(.data)
|
||||
KERNEL_INPUT_SECTION(".data.*")
|
||||
*(.data)
|
||||
*(".data.*")
|
||||
*(".kernel.*")
|
||||
|
||||
#ifdef CONFIG_SOC_RWDATA_LD
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue