We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a0cba21 commit 469f002Copy full SHA for 469f002
arch/x86/entry/entry_64.S
@@ -601,9 +601,20 @@ apicinterrupt3 \num trace(\sym) smp_trace(\sym)
601
.endm
602
#endif
603
604
+/* Make sure APIC interrupt handlers end up in the irqentry section: */
605
+#if defined(CONFIG_FUNCTION_GRAPH_TRACER) || defined(CONFIG_KASAN)
606
+# define PUSH_SECTION_IRQENTRY .pushsection .irqentry.text, "ax"
607
+# define POP_SECTION_IRQENTRY .popsection
608
+#else
609
+# define PUSH_SECTION_IRQENTRY
610
+# define POP_SECTION_IRQENTRY
611
+#endif
612
+
613
.macro apicinterrupt num sym do_sym
614
+PUSH_SECTION_IRQENTRY
615
apicinterrupt3 \num \sym \do_sym
616
trace_apicinterrupt \num \sym
617
+POP_SECTION_IRQENTRY
618
619
620
#ifdef CONFIG_SMP
0 commit comments