Module Name: src
Committed By: matt
Date: Thu Aug 6 23:07:55 UTC 2009
Modified Files:
src/sys/arch/mips/mips: trap.c
Log Message:
print ra on trap.
To generate a diff of this commit:
cvs rdiff -u -r1.217 -r1.218 src/sys/arch/mips/mips/trap.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/arch/mips/mips/trap.c
diff -u src/sys/arch/mips/mips/trap.c:1.217 src/sys/arch/mips/mips/trap.c:1.218
--- src/sys/arch/mips/mips/trap.c:1.217 Wed Oct 15 06:51:18 2008
+++ src/sys/arch/mips/mips/trap.c Thu Aug 6 23:07:55 2009
@@ -1,4 +1,4 @@
-/* $NetBSD: trap.c,v 1.217 2008/10/15 06:51:18 wrstuden Exp $ */
+/* $NetBSD: trap.c,v 1.218 2009/08/06 23:07:55 matt Exp $ */
/*
* Copyright (c) 1992, 1993
@@ -78,7 +78,7 @@
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
-__KERNEL_RCSID(0, "$NetBSD: trap.c,v 1.217 2008/10/15 06:51:18 wrstuden Exp $");
+__KERNEL_RCSID(0, "$NetBSD: trap.c,v 1.218 2009/08/06 23:07:55 matt Exp $");
#include "opt_cputype.h" /* which mips CPU levels do we support? */
#include "opt_ddb.h"
@@ -240,7 +240,7 @@
p->p_pid, p->p_comm, (int)fp->f_regs[_R_SP]);
} else
printf("curlwp == NULL ");
- printf("ksp=%p\n", &status);
+ printf("ksp=%p ra=%#x\n", &status, (int)frame->tf_regs[TF_RA]);
#if defined(DDB)
kdb_trap(type, (mips_reg_t *) frame);
/* XXX force halt XXX */