#ifdef CONFIG_X86_MCE_AMD
extern bool amd_filter_mce(struct mce *m);
#else
-static inline bool amd_filter_mce(struct mce *m) { return false; };
+static inline bool amd_filter_mce(struct mce *m) { return false; }
#endif
-__visible bool ex_handler_rdmsr_fault(const struct exception_table_entry *fixup,
- struct pt_regs *regs, int trapnr,
- unsigned long error_code,
- unsigned long fault_addr);
-
-__visible bool ex_handler_wrmsr_fault(const struct exception_table_entry *fixup,
- struct pt_regs *regs, int trapnr,
- unsigned long error_code,
- unsigned long fault_addr);
-
+ #ifdef CONFIG_X86_ANCIENT_MCE
+ void intel_p5_mcheck_init(struct cpuinfo_x86 *c);
+ void winchip_mcheck_init(struct cpuinfo_x86 *c);
+ noinstr void pentium_machine_check(struct pt_regs *regs);
+ noinstr void winchip_machine_check(struct pt_regs *regs);
+ static inline void enable_p5_mce(void) { mce_p5_enabled = 1; }
+ #else
+ static inline void intel_p5_mcheck_init(struct cpuinfo_x86 *c) {}
+ static inline void winchip_mcheck_init(struct cpuinfo_x86 *c) {}
+ static inline void enable_p5_mce(void) {}
+ static inline void pentium_machine_check(struct pt_regs *regs) {}
+ static inline void winchip_machine_check(struct pt_regs *regs) {}
+ #endif
+
#endif /* __X86_MCE_INTERNAL_H__ */