ia64/xen-unstable

view xen/arch/powerpc/powerpc64/traps.c @ 10837:15e4b258a69a

[powerpc] more register information in the register dump.

Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com>
author Jimi Xenidis <jimix@watson.ibm.com>
date Wed Jul 26 14:25:07 2006 -0400 (2006-07-26)
parents 050de6b53961
children b786bfb058eb
line source
1 /*
2 * This program is free software; you can redistribute it and/or modify
3 * it under the terms of the GNU General Public License as published by
4 * the Free Software Foundation; either version 2 of the License, or
5 * (at your option) any later version.
6 *
7 * This program is distributed in the hope that it will be useful,
8 * but WITHOUT ANY WARRANTY; without even the implied warranty of
9 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10 * GNU General Public License for more details.
11 *
12 * You should have received a copy of the GNU General Public License
13 * along with this program; if not, write to the Free Software
14 * Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15 *
16 * Copyright (C) IBM Corp. 2005, 2006
17 *
18 * Authors: Hollis Blanchard <hollisb@us.ibm.com>
19 */
21 #include <xen/config.h>
22 #include <xen/lib.h>
23 #include <xen/console.h>
24 #include <public/xen.h>
25 #include <xen/compile.h>
26 #include <xen/sched.h>
28 void show_registers(struct cpu_user_regs *regs)
29 {
30 int i;
32 console_start_sync();
34 printk("----[ Xen-%d.%d%s ]----\n",
35 XEN_VERSION, XEN_SUBVERSION, XEN_EXTRAVERSION);
36 printk("CPU: %08x DOMID: %08x\n",
37 smp_processor_id(), current->domain->domain_id);
38 printk("pc %016lx msr %016lx\n"
39 "lr %016lx ctr %016lx\n"
40 "srr0 %016lx srr1 %016lx\n",
41 regs->pc, regs->msr,
42 regs->lr, regs->ctr,
43 regs->srr0, regs->srr1);
44 for (i=0; i<32; i+=4) {
45 printk("r%02i: %016lx %016lx %016lx %016lx\n", i,
46 regs->gprs[i], regs->gprs[i+1], regs->gprs[i+2], regs->gprs[i+3]);
47 }
48 console_end_sync();
49 }
51 void show_execution_state(struct cpu_user_regs *regs)
52 {
53 show_registers(regs);
54 }