Add interrupt stub label for profiler (interrupt event)

The stub label is created with ISR and IRQ number since the same
ISR can be used by several IRQs

Change-Id: I0ea909fddbce7a70c754befd095b7a3b36fffab4
Signed-off-by: Fabrice Olivero <fabrice.olivero@intel.com>
This commit is contained in:
Fabrice Olivero 2016-02-23 14:28:54 +01:00 committed by Anas Nashif
commit 26b0b4c920

View file

@ -197,6 +197,14 @@ typedef struct s_isrList {
"jmp _IntExitWithEoi\n\t"
#endif /* CONFIG_X86_IAMCU */
#ifdef CONFIG_KERNEL_EVENT_LOGGER_INTERRUPT
#define _IRQ_STUB_LABEL \
" .global %[isr]%P[irq]_stub\n\t" \
"%[isr]%P[irq]_stub:\n\t"
#else
#define _IRQ_STUB_LABEL
#endif
/**
* Code snippets for populating the vector ID and priority into the intList
*
@ -266,6 +274,7 @@ typedef struct s_isrList {
".long 0\n\t" /* ISR_LIST.dpl */ \
".popsection\n\t" \
"1:\n\t" \
_IRQ_STUB_LABEL \
_IRQ_STUB_ASM \
"2:\n\t" \
: \