Skip to content

Commit

Permalink
x86/entry/32: Force MCE through do_mce()
Browse files Browse the repository at this point in the history
Remove the pointless difference between 32 and 64 bit to make further
unifications simpler.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Frederic Weisbecker <frederic@kernel.org>
Reviewed-by: Alexandre Chartre <alexandre.chartre@oracle.com>
Reviewed-by: Andy Lutomirski <luto@kernel.org>
Link: https://lkml.kernel.org/r/20200225220216.428188397@linutronix.de
  • Loading branch information
Thomas Gleixner committed Feb 27, 2020
1 parent 55ba18d commit 840371b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion arch/x86/entry/entry_32.S
Original file line number Diff line number Diff line change
Expand Up @@ -1365,7 +1365,7 @@ SYM_CODE_END(divide_error)
SYM_CODE_START(machine_check)
ASM_CLAC
pushl $0
pushl machine_check_vector
pushl $do_mce
jmp common_exception
SYM_CODE_END(machine_check)
#endif
Expand Down
3 changes: 0 additions & 3 deletions arch/x86/include/asm/mce.h
Original file line number Diff line number Diff line change
Expand Up @@ -238,9 +238,6 @@ extern void mce_disable_bank(int bank);
/*
* Exception handler
*/

/* Call the installed machine check handler for this CPU setup. */
extern void (*machine_check_vector)(struct pt_regs *, long error_code);
void do_machine_check(struct pt_regs *, long);

/*
Expand Down
3 changes: 3 additions & 0 deletions arch/x86/kernel/cpu/mce/internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
#include <linux/device.h>
#include <asm/mce.h>

/* Pointer to the installed machine check handler for this CPU setup. */
extern void (*machine_check_vector)(struct pt_regs *, long error_code);

enum severity_level {
MCE_NO_SEVERITY,
MCE_DEFERRED_SEVERITY,
Expand Down

0 comments on commit 840371b

Please sign in to comment.