Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/alpha/alpha The machine check error code is reliabl...



details:   https://anonhg.NetBSD.org/src/rev/6028310070ca
branches:  trunk
changeset: 512025:6028310070ca
user:      nathanw <nathanw%NetBSD.org@localhost>
date:      Tue Jul 03 13:55:42 2001 +0000

description:
The machine check error code is reliably located at an offset of 0x10
in the logout frame. Print it for all fatal machine checks on all
models.

diffstat:

 sys/arch/alpha/alpha/interrupt.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r 6a02f2059eae -r 6028310070ca sys/arch/alpha/alpha/interrupt.c
--- a/sys/arch/alpha/alpha/interrupt.c  Tue Jul 03 11:26:50 2001 +0000
+++ b/sys/arch/alpha/alpha/interrupt.c  Tue Jul 03 13:55:42 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: interrupt.c,v 1.61 2001/05/27 13:53:24 sommerfeld Exp $ */
+/* $NetBSD: interrupt.c,v 1.62 2001/07/03 13:55:42 nathanw Exp $ */
 
 /*-
  * Copyright (c) 2000, 2001 The NetBSD Foundation, Inc.
@@ -72,7 +72,7 @@
 
 #include <sys/cdefs.h>                 /* RCS ID & Copyright macro defns */
 
-__KERNEL_RCSID(0, "$NetBSD: interrupt.c,v 1.61 2001/05/27 13:53:24 sommerfeld Exp $");
+__KERNEL_RCSID(0, "$NetBSD: interrupt.c,v 1.62 2001/07/03 13:55:42 nathanw Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -295,6 +295,7 @@
        printf("    param   = 0x%lx\n", param);
        printf("    pc      = 0x%lx\n", framep->tf_regs[FRAME_PC]);
        printf("    ra      = 0x%lx\n", framep->tf_regs[FRAME_RA]);
+       printf("    code    = 0x%lx\n", *(unsigned long *)(param + 0x10));
        printf("    curproc = %p\n", curproc);
        if (curproc != NULL)
                printf("        pid = %d, comm = %s\n", curproc->p_pid,



Home | Main Index | Thread Index | Old Index