Skip to contentSkip to conversation

refactor mce code

PATCH New Christoph Egger 1 participant 1 message Sep 10, 2012

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 refactor mce code

Factor common mc code out of intel specific code and move it into common files.
No functional changes.

Signature · 6 lines
---to satisfy European Law for business letters:
Advanced Micro Devices GmbH
Einsteinring 24, 85689 Dornach b. Muenchen
Geschaeftsfuehrer: Alberto Bozzo
Sitz: Dornach, Gemeinde Aschheim, Landkreis Muenchen
Registergericht Muenchen, HRB Nr. 43632

# User Christoph Egger
# Date 1347276743 -7200
Factor common mc code out of intel specific code and move it into common files. No functional changes.

xen/arch/x86/cpu/mcheck/Makefile +2 -0
diff -r 06f42b46c057 -r c45743df3686 xen/arch/x86/cpu/mcheck/Makefile
@@ -2,10 +2,12 @@ obj-y += amd_nonfatal.o
 obj-y += k7.o
 obj-y += amd_k8.o
 obj-y += amd_f10.o
+obj-y += mcbarrier.o
 obj-y += mctelem.o
 obj-y += mce.o
 obj-y += mce-apei.o
 obj-y += mce_intel.o
 obj-y += mce_amd_quirks.o
+obj-y += mcutil.o
 obj-y += non-fatal.o
 obj-y += vmce.o
xen/arch/x86/cpu/mcheck/mcbarrier.c new file +57 -0

57 lines not on this page · raw message

xen/arch/x86/cpu/mcheck/mcbarrier.h new file +44 -0

44 lines not on this page · raw message

xen/arch/x86/cpu/mcheck/mce_intel.c +2 -98

136 lines not on this page · raw message

xen/arch/x86/cpu/mcheck/mcutil.c new file +13 -0
diff -r 06f42b46c057 -r c45743df3686 xen/arch/x86/cpu/mcheck/mcutil.c
@@ -0,0 +1,13 @@
+
+#include <asm/system.h>
+#include "mcutil.h"
+#include "mce.h"
+
+void mce_panic_check(void)
+{
+    if (is_mc_panic) {
+        local_irq_enable();
+        for ( ; ; )
+            halt();
+    }
+}
xen/arch/x86/cpu/mcheck/mcutil.h new file +6 -0
diff -r 06f42b46c057 -r c45743df3686 xen/arch/x86/cpu/mcheck/mcutil.h
@@ -0,0 +1,6 @@
+#ifndef _MCHECK_UTIL_H
+#define _MCHECK_UTIL_H
+
+void mce_panic_check(void);
+
+#endif

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel