patch-2.4.21 linux-2.4.21/arch/alpha/kernel/err_marvel.c
Next file: linux-2.4.21/arch/alpha/kernel/err_titan.c
Previous file: linux-2.4.21/arch/alpha/kernel/err_impl.h
Back to the patch index
Back to the overall index
- Lines: 58
- Date:
2003-06-13 07:51:29.000000000 -0700
- Orig file:
linux-2.4.20/arch/alpha/kernel/err_marvel.c
- Orig date:
1969-12-31 16:00:00.000000000 -0800
diff -urN linux-2.4.20/arch/alpha/kernel/err_marvel.c linux-2.4.21/arch/alpha/kernel/err_marvel.c
@@ -0,0 +1,57 @@
+/*
+ * linux/arch/alpha/kernel/err_marvel.c
+ *
+ * Copyright (C) 2001 Jeff Wiedemeier (Compaq Computer Corporation)
+ *
+ */
+
+#include <linux/init.h>
+#include <linux/pci.h>
+#include <linux/sched.h>
+
+#include <asm/io.h>
+#include <asm/console.h>
+#include <asm/core_marvel.h>
+#include <asm/hwrpb.h>
+#include <asm/smp.h>
+
+#include "err_impl.h"
+#include "proto.h"
+
+
+void
+marvel_machine_check(u64 vector, u64 la_ptr, struct pt_regs *regs)
+{
+ struct el_subpacket *el_ptr = (struct el_subpacket *)la_ptr;
+
+ /*
+ * Sync the processor
+ */
+ mb();
+ draina();
+
+ el_process_subpacket(el_ptr);
+
+ switch(vector) {
+ case SCB_Q_SYSEVENT:
+ printk(KERN_CRIT "MARVEL SYSEVENT %ld\n", vector);
+ break;
+ case SCB_Q_SYSMCHK:
+ case SCB_Q_SYSERR:
+ printk(KERN_CRIT "MARVEL SYSMCHK/ERR %ld\n", vector);
+ break;
+ default:
+ /* Don't know it - pass it up. */
+ return ev7_machine_check(vector, la_ptr, regs);
+ }
+
+ /* Release the logout frame. */
+ wrmces(0x7);
+ mb();
+}
+
+void
+marvel_register_error_handlers(void)
+{
+ ev7_register_error_handlers();
+}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)