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:
parent
1310ad6b0e
commit
7b2861276b
1 changed files with 6 additions and 0 deletions
|
@ -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_ */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue