zephyr/arch/arm/include/aarch32/cortex_m
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
..
cmse.h zephyr: replace zephyr integer types with C99 types 2020-06-08 08:23:57 -05:00
dwt.h arm: set DebugMonitor IRQ unconditionally during initialization 2021-07-28 21:08:18 -04:00
exc.h arm: set DebugMonitor IRQ unconditionally during initialization 2021-07-28 21:08:18 -04:00
stack.h arm: Use correct macro for z_interrupt_stacks declaration in stack.h 2021-10-21 07:34:56 -04:00
tz_ns.h cortex_m: tz_ns.h: Various fixes (late comments on PR) 2020-09-04 19:05:58 +02:00
tz.h zephyr: replace zephyr integer types with C99 types 2020-06-08 08:23:57 -05:00