|
@@ -25,4 +25,16 @@ extern void (*board_nmi_handler_setup)(void);
|
|
extern void (*board_ejtag_handler_setup)(void);
|
|
extern void (*board_ejtag_handler_setup)(void);
|
|
extern void (*board_bind_eic_interrupt)(int irq, int regset);
|
|
extern void (*board_bind_eic_interrupt)(int irq, int regset);
|
|
|
|
|
|
|
|
+extern int register_nmi_notifier(struct notifier_block *nb);
|
|
|
|
+
|
|
|
|
+#define nmi_notifier(fn, pri) \
|
|
|
|
+({ \
|
|
|
|
+ static struct notifier_block fn##_nb = { \
|
|
|
|
+ .notifier_call = fn, \
|
|
|
|
+ .priority = pri \
|
|
|
|
+ }; \
|
|
|
|
+ \
|
|
|
|
+ register_nmi_notifier(&fn##_nb); \
|
|
|
|
+})
|
|
|
|
+
|
|
#endif /* _ASM_TRAPS_H */
|
|
#endif /* _ASM_TRAPS_H */
|