linker: add __isr tag

This allows interrupt service routine to be declared with
the __isr tag so they can be placed in the correct linker
section. The first would be putting them into the pinned
section.

Signed-off-by: Daniel Leung <daniel.leung@intel.com>
This commit is contained in:
Daniel Leung 2021-03-17 13:04:10 -07:00 committed by Kumar Gala
commit 7b2861276b

View file

@ -80,6 +80,12 @@
#define __pinned_noinit __noinit
#endif /* CONFIG_LINKER_USE_PINNED_SECTION */
#if defined(CONFIG_LINKER_USE_PINNED_SECTION)
#define __isr __pinned_func
#else
#define __isr
#endif
#endif /* !_ASMLANGUAGE */
#endif /* ZEPHYR_INCLUDE_LINKER_SECTION_TAGS_H_ */