提交 1d13581d 编写于 作者: S Stephen Rothwell 提交者: Paul Mackerras

[POWERPC] iSeries: fix xmon.c for combined build

Signed-off-by: NStephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: NPaul Mackerras <paulus@samba.org>
上级 501b6d29
...@@ -39,6 +39,7 @@ ...@@ -39,6 +39,7 @@
#include <asm/irq_regs.h> #include <asm/irq_regs.h>
#include <asm/spu.h> #include <asm/spu.h>
#include <asm/spu_priv1.h> #include <asm/spu_priv1.h>
#include <asm/firmware.h>
#ifdef CONFIG_PPC64 #ifdef CONFIG_PPC64
#include <asm/hvcall.h> #include <asm/hvcall.h>
...@@ -1567,11 +1568,6 @@ void super_regs(void) ...@@ -1567,11 +1568,6 @@ void super_regs(void)
{ {
int cmd; int cmd;
unsigned long val; unsigned long val;
#ifdef CONFIG_PPC_ISERIES
struct paca_struct *ptrPaca = NULL;
struct lppaca *ptrLpPaca = NULL;
struct ItLpRegSave *ptrLpRegSave = NULL;
#endif
cmd = skipbl(); cmd = skipbl();
if (cmd == '\n') { if (cmd == '\n') {
...@@ -1588,26 +1584,32 @@ void super_regs(void) ...@@ -1588,26 +1584,32 @@ void super_regs(void)
printf("sp = "REG" sprg3= "REG"\n", sp, mfspr(SPRN_SPRG3)); printf("sp = "REG" sprg3= "REG"\n", sp, mfspr(SPRN_SPRG3));
printf("toc = "REG" dar = "REG"\n", toc, mfspr(SPRN_DAR)); printf("toc = "REG" dar = "REG"\n", toc, mfspr(SPRN_DAR));
#ifdef CONFIG_PPC_ISERIES #ifdef CONFIG_PPC_ISERIES
// Dump out relevant Paca data areas. if (firmware_has_feature(FW_FEATURE_ISERIES)) {
printf("Paca: \n"); struct paca_struct *ptrPaca;
ptrPaca = get_paca(); struct lppaca *ptrLpPaca;
struct ItLpRegSave *ptrLpRegSave;
printf(" Local Processor Control Area (LpPaca): \n");
ptrLpPaca = ptrPaca->lppaca_ptr; /* Dump out relevant Paca data areas. */
printf(" Saved Srr0=%.16lx Saved Srr1=%.16lx \n", printf("Paca: \n");
ptrLpPaca->saved_srr0, ptrLpPaca->saved_srr1); ptrPaca = get_paca();
printf(" Saved Gpr3=%.16lx Saved Gpr4=%.16lx \n",
ptrLpPaca->saved_gpr3, ptrLpPaca->saved_gpr4); printf(" Local Processor Control Area (LpPaca): \n");
printf(" Saved Gpr5=%.16lx \n", ptrLpPaca->saved_gpr5); ptrLpPaca = ptrPaca->lppaca_ptr;
printf(" Saved Srr0=%.16lx Saved Srr1=%.16lx \n",
printf(" Local Processor Register Save Area (LpRegSave): \n"); ptrLpPaca->saved_srr0, ptrLpPaca->saved_srr1);
ptrLpRegSave = ptrPaca->reg_save_ptr; printf(" Saved Gpr3=%.16lx Saved Gpr4=%.16lx \n",
printf(" Saved Sprg0=%.16lx Saved Sprg1=%.16lx \n", ptrLpPaca->saved_gpr3, ptrLpPaca->saved_gpr4);
ptrLpRegSave->xSPRG0, ptrLpRegSave->xSPRG0); printf(" Saved Gpr5=%.16lx \n", ptrLpPaca->saved_gpr5);
printf(" Saved Sprg2=%.16lx Saved Sprg3=%.16lx \n",
ptrLpRegSave->xSPRG2, ptrLpRegSave->xSPRG3); printf(" Local Processor Register Save Area (LpRegSave): \n");
printf(" Saved Msr =%.16lx Saved Nia =%.16lx \n", ptrLpRegSave = ptrPaca->reg_save_ptr;
ptrLpRegSave->xMSR, ptrLpRegSave->xNIA); printf(" Saved Sprg0=%.16lx Saved Sprg1=%.16lx \n",
ptrLpRegSave->xSPRG0, ptrLpRegSave->xSPRG0);
printf(" Saved Sprg2=%.16lx Saved Sprg3=%.16lx \n",
ptrLpRegSave->xSPRG2, ptrLpRegSave->xSPRG3);
printf(" Saved Msr =%.16lx Saved Nia =%.16lx \n",
ptrLpRegSave->xMSR, ptrLpRegSave->xNIA);
}
#endif #endif
return; return;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册