Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/powerpc Export dump_trapframe.
details: https://anonhg.NetBSD.org/src/rev/d5cd4e0d07aa
branches: trunk
changeset: 780647:d5cd4e0d07aa
user: matt <matt%NetBSD.org@localhost>
date: Wed Aug 01 16:35:50 2012 +0000
description:
Export dump_trapframe.
diffstat:
sys/arch/powerpc/booke/trap.c | 7 +++----
sys/arch/powerpc/include/booke/cpuvar.h | 7 ++++++-
2 files changed, 9 insertions(+), 5 deletions(-)
diffs (63 lines):
diff -r 983a9d281a04 -r d5cd4e0d07aa sys/arch/powerpc/booke/trap.c
--- a/sys/arch/powerpc/booke/trap.c Wed Aug 01 16:19:42 2012 +0000
+++ b/sys/arch/powerpc/booke/trap.c Wed Aug 01 16:35:50 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: trap.c,v 1.18 2012/07/23 04:13:06 matt Exp $ */
+/* $NetBSD: trap.c,v 1.19 2012/08/01 16:35:50 matt Exp $ */
/*-
* Copyright (c) 2010, 2011 The NetBSD Foundation, Inc.
* All rights reserved.
@@ -38,7 +38,7 @@
#include <sys/cdefs.h>
-__KERNEL_RCSID(1, "$NetBSD: trap.c,v 1.18 2012/07/23 04:13:06 matt Exp $");
+__KERNEL_RCSID(1, "$NetBSD: trap.c,v 1.19 2012/08/01 16:35:50 matt Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -71,7 +71,6 @@
#include <powerpc/booke/pte.h>
void trap(enum ppc_booke_exceptions, struct trapframe *);
-static void dump_trapframe(const struct trapframe *);
static const char trap_names[][8] = {
[T_CRITIAL_INPUT] = "CRIT",
@@ -620,7 +619,7 @@
return rv;
}
-static void
+void
dump_trapframe(const struct trapframe *tf)
{
printf("trapframe %p (exc=%x srr0/1=%#lx/%#lx esr/dear=%#x/%#lx)\n",
diff -r 983a9d281a04 -r d5cd4e0d07aa sys/arch/powerpc/include/booke/cpuvar.h
--- a/sys/arch/powerpc/include/booke/cpuvar.h Wed Aug 01 16:19:42 2012 +0000
+++ b/sys/arch/powerpc/include/booke/cpuvar.h Wed Aug 01 16:35:50 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cpuvar.h,v 1.14 2012/07/29 21:39:43 matt Exp $ */
+/* $NetBSD: cpuvar.h,v 1.15 2012/08/01 16:35:50 matt Exp $ */
/*-
* Copyright (c) 2010, 2011 The NetBSD Foundation, Inc.
* All rights reserved.
@@ -62,6 +62,8 @@
struct evcnt cpu_ev_late_clock;
u_long cpu_ticks_per_clock_intr;
struct evcnt cpu_ev_exec_trap_sync;
+
+ uint64_t cpu_spl_tb[NIPL][NIPL];
};
struct cpunode_locators {
@@ -194,6 +196,9 @@
const void *
board_info_get_data(const char *, size_t *);
+/* trap.c */
+void dump_trapframe(const struct trapframe *);
+
extern char root_string[];
extern paddr_t msgbuf_paddr;
extern prop_dictionary_t board_properties;
Home |
Main Index |
Thread Index |
Old Index