zephyr/arch
Keith Packard 177f95464e arm: Use correct macro for z_interrupt_stacks declaration in stack.h
There are two macros for declaring stack arrays:

K_KERNEL_STACK_ARRAY_DEFINE:

	Defines the array, allocating storage and setting the section name

K_KERNEL_STACK_ARRAY_EXTERN

	Declares the name of a stack array allowing code to reference
	the array which must be defined elsewhere

arch/arm/include/aarch32/cortex_m/stack.h was mis-using
K_KERNEL_STACK_ARRAY_DEFINE to declare z_interrupt_stacks by sticking
'extern' in front of the macro use. However, when this macro also set
the object file section for the symbol, having two of those caused a
conflict in the compiler due to the automatic unique name mechanism used
for sections to allow unused symbols to be discarded during linking.

This patch makes the header use the correct macro.

Signed-off-by: Keith Packard <keithp@keithp.com>
2021-10-21 07:34:56 -04:00
..
arc ARC: forbid FIRQ or multiple register banks w/ 1 IRQ priority level 2021-10-13 20:41:29 -04:00
arm arm: Use correct macro for z_interrupt_stacks declaration in stack.h 2021-10-21 07:34:56 -04:00
arm64 arm64: add nocache memory segment support 2021-10-20 08:56:40 -05:00
common arm64: add nocache memory segment support 2021-10-20 08:56:40 -05:00
nios2 arch: nios2: Fix 10.4 violations 2021-04-10 09:59:37 -04:00
posix cmake: Support coverage flags on all archs 2021-06-10 18:01:36 -04:00
riscv riscv: Don't reschedule on back-to-back interrupts 2021-09-03 12:20:03 -04:00
sparc SPARC: Keep interrupts disabled during kernel init 2021-07-22 10:25:53 -04:00
x86 x86: x86-64: add arch_float_en-/dis-able() functions 2021-09-03 10:00:02 -04:00
xtensa Revert "xtensa: remove unused script" 2021-10-07 16:04:11 -04:00
CMakeLists.txt cmake: fix include directories to work with out-of-tree arch 2020-08-05 08:06:07 -04:00
Kconfig kernel: demand_paging: allow reserving page frames 2021-08-26 21:16:22 -04:00