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
|
@ -94,28 +94,6 @@
|
|||
* their shell commands are automatically initialized by the kernel.
|
||||
*/
|
||||
|
||||
#ifdef CONFIG_APPLICATION_MEMORY
|
||||
/*
|
||||
* KERNELSPACE_OBJECT_FILES is a space-separated list of object files
|
||||
* and libraries that belong in kernelspace.
|
||||
*/
|
||||
#define MAYBE_EXCLUDE_SOME_FILES EXCLUDE_FILE (KERNELSPACE_OBJECT_FILES)
|
||||
#else
|
||||
#define MAYBE_EXCLUDE_SOME_FILES
|
||||
#endif /* CONFIG_APPLICATION_MEMORY */
|
||||
|
||||
/*
|
||||
* APP_INPUT_SECTION should be invoked on sections that should be in
|
||||
* 'app' space. KERNEL_INPUT_SECTION should be invoked on sections
|
||||
* that should be in 'kernel' space.
|
||||
*
|
||||
* NB: APP_INPUT_SECTION must be invoked before
|
||||
* KERNEL_INPUT_SECTION. If it is not all sections will end up in
|
||||
* kernelspace.
|
||||
*/
|
||||
#define APP_INPUT_SECTION(sect) *(MAYBE_EXCLUDE_SOME_FILES sect)
|
||||
#define KERNEL_INPUT_SECTION(sect) *(sect)
|
||||
|
||||
#define APP_SMEM_SECTION() KEEP(*(SORT("data_smem_*")))
|
||||
|
||||
#ifdef CONFIG_X86 /* LINKER FILES: defines used by linker script */
|
||||
|
@ -169,24 +147,11 @@ extern char _app_smem_size[];
|
|||
extern char _app_smem_rom_start[];
|
||||
extern char _app_smem_num_words[];
|
||||
|
||||
#ifdef CONFIG_APPLICATION_MEMORY
|
||||
/* Memory owned by the application. Start and end will be aligned for memory
|
||||
* management/protection hardware for the target architecture.
|
||||
|
||||
* The policy for this memory will be to configure all of it as user thread
|
||||
* accessible. It consists of all non-kernel globals.
|
||||
*/
|
||||
extern char __app_ram_start[];
|
||||
extern char __app_ram_end[];
|
||||
extern char __app_ram_size[];
|
||||
#endif
|
||||
|
||||
/* Memory owned by the kernel. Start and end will be aligned for memory
|
||||
* management/protection hardware for the target architecture.
|
||||
*
|
||||
* Consists of all kernel-side globals, all kernel objects, all thread stacks,
|
||||
* and all currently unused RAM. If CONFIG_APPLICATION_MEMORY is not enabled,
|
||||
* has all globals, not just kernel side.
|
||||
* and all currently unused RAM.
|
||||
*
|
||||
* Except for the stack of the currently executing thread, none of this memory
|
||||
* is normally accessible to user threads unless specifically granted at
|
||||
|
@ -199,21 +164,12 @@ extern char __kernel_ram_size[];
|
|||
/* Used by _bss_zero or arch-specific implementation */
|
||||
extern char __bss_start[];
|
||||
extern char __bss_end[];
|
||||
#ifdef CONFIG_APPLICATION_MEMORY
|
||||
extern char __app_bss_start[];
|
||||
extern char __app_bss_end[];
|
||||
#endif
|
||||
|
||||
/* Used by _data_copy() or arch-specific implementation */
|
||||
#ifdef CONFIG_XIP
|
||||
extern char __data_rom_start[];
|
||||
extern char __data_ram_start[];
|
||||
extern char __data_ram_end[];
|
||||
#ifdef CONFIG_APPLICATION_MEMORY
|
||||
extern char __app_data_rom_start[];
|
||||
extern char __app_data_ram_start[];
|
||||
extern char __app_data_ram_end[];
|
||||
#endif /* CONFIG_APPLICATION_MEMORY */
|
||||
#endif /* CONFIG_XIP */
|
||||
|
||||
/* Includes text and rodata */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue