提交 0bc471d9 编写于 作者: T Thomas Gleixner 提交者: Ingo Molnar

x86: move BUILD_IRQ macro magic to i8259_64.c

i8259_64.c is the only place which uses those macros.
Signed-off-by: NThomas Gleixner <tglx@linutronix.de>
Signed-off-by: NIngo Molnar <mingo@elte.hu>
上级 9b7dc567
...@@ -34,6 +34,20 @@ ...@@ -34,6 +34,20 @@
* interrupt-controller happy. * interrupt-controller happy.
*/ */
#define IRQ_NAME2(nr) nr##_interrupt(void)
#define IRQ_NAME(nr) IRQ_NAME2(IRQ##nr)
/*
* SMP has a few special interrupts for IPI messages
*/
#define BUILD_IRQ(nr) \
asmlinkage void IRQ_NAME(nr); \
asm("\n.p2align\n" \
"IRQ" #nr "_interrupt:\n\t" \
"push $~(" #nr ") ; " \
"jmp common_interrupt");
#define BI(x,y) \ #define BI(x,y) \
BUILD_IRQ(x##y) BUILD_IRQ(x##y)
......
...@@ -17,18 +17,4 @@ extern void native_init_IRQ(void); ...@@ -17,18 +17,4 @@ extern void native_init_IRQ(void);
#include <asm/ptrace.h> #include <asm/ptrace.h>
#define IRQ_NAME2(nr) nr##_interrupt(void)
#define IRQ_NAME(nr) IRQ_NAME2(IRQ##nr)
/*
* SMP has a few special interrupts for IPI messages
*/
#define BUILD_IRQ(nr) \
asmlinkage void IRQ_NAME(nr); \
asm("\n.p2align\n" \
"IRQ" #nr "_interrupt:\n\t" \
"push $~(" #nr ") ; " \
"jmp common_interrupt");
#endif #endif
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册