linker: Fix __stackmem section with CONFIG_KERNEL_COHERENCE
When building whith CONFIG_KERNEL_COHERENCE enabled, __stackmem was not being put in the user_stack section making impossible to gen_kobject script find user capable stacks. It is responsability of the platform to put user_stacks section in the appropriated region. Signed-off-by: Flavio Ceolin <flavio.ceolin@intel.com>
This commit is contained in:
parent
d4e11a173b
commit
c22c4fd49f
1 changed files with 5 additions and 1 deletions
|
@ -51,8 +51,12 @@
|
|||
|
||||
#if defined(CONFIG_KERNEL_COHERENCE)
|
||||
#define __incoherent __in_section_unique(cached)
|
||||
#if defined(CONFIG_USERSPACE)
|
||||
#define __stackmem Z_GENERIC_SECTION(.user_stacks)
|
||||
#else
|
||||
#define __stackmem __incoherent
|
||||
#define __kstackmem __stackmem
|
||||
#endif /* CONFIG_USERSPACE */
|
||||
#define __kstackmem __incoherent
|
||||
#else
|
||||
#define __incoherent
|
||||
#define __stackmem Z_GENERIC_SECTION(.user_stacks)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue