MCA support for Intel64
RFC PATCH 1/2 MCA support for Intel64
Hi,
This is a xen part patch.
Signed-off-by Kazuhiro Suzuki <[email protected]>
Thanks,
KAZ
xen/arch/x86/cpu/mcheck/amd_f10.c +1 -3
@@ -82,8 +82,6 @@ } -extern void k8_machine_check (struct cpu_user_regs *regs,long error_code); -/* AMD Family10 machine check */ void amd_f10_mcheck_init (struct cpuinfo_x86 *c) {
@@ -91,7 +89,7 @@uint32_t i;int cpu_nr; - machine_check_vector = k8_machine_check; + machine_check_vector = x86_machine_check; mc_callback_bank_extended = amd_f10_handler; cpu_nr =smp_processor_id ();wmb ();
xen/arch/x86/cpu/mcheck/amd_k8.c +1 -214
227 lines not on this page · raw message
xen/arch/x86/cpu/mcheck/amd_nonfatal.c +5 -110
129 lines not on this page · raw message
xen/arch/x86/cpu/mcheck/mce.c +222 -0
234 lines not on this page · raw message
xen/arch/x86/cpu/mcheck/non-fatal.c +149 -2
171 lines not on this page · raw message
xen/arch/x86/cpu/mcheck/p4.c +7 -73
110 lines not on this page · raw message
xen/arch/x86/cpu/mcheck/x86_mca.h +8 -0
@@ -70,3 +70,11 @@/* reserved bits */ #define MCi_STATUS_OTHER_RESERVED2 0x0180000000000000ULL +/* Polling period */ +#define MCE_PERIOD MILLISECS(15000) +#define MCE_MIN MILLISECS(2000) +#define MCE_MAX MILLISECS(30000) + +/* Common routines */ +void x86_machine_check (struct cpu_user_regs *regs,long error_code); +void x86_mce_checkregs (void *info);
xen/arch/x86/traps.c +2 -0
@@ -713,8 +713,10 @@__clear_bit (X86_FEATURE_VME , &d);__clear_bit (X86_FEATURE_PSE , &d);__clear_bit (X86_FEATURE_PGE , &d); +#ifndef __x86_64____clear_bit (X86_FEATURE_MCE , &d);__clear_bit (X86_FEATURE_MCA , &d); +#endif __clear_bit (X86_FEATURE_PSE36 , &d); } switch ( (uint32_t)regs->eax )
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel