diff options
Diffstat (limited to 'arch/powerpc/xmon')
-rw-r--r-- | arch/powerpc/xmon/xmon.c | 33 |
1 files changed, 3 insertions, 30 deletions
diff --git a/arch/powerpc/xmon/xmon.c b/arch/powerpc/xmon/xmon.c index cb95eea74d3d..68a9cbbab450 100644 --- a/arch/powerpc/xmon/xmon.c +++ b/arch/powerpc/xmon/xmon.c | |||
@@ -39,7 +39,6 @@ | |||
39 | #include <asm/irq_regs.h> | 39 | #include <asm/irq_regs.h> |
40 | #include <asm/spu.h> | 40 | #include <asm/spu.h> |
41 | #include <asm/spu_priv1.h> | 41 | #include <asm/spu_priv1.h> |
42 | #include <asm/firmware.h> | ||
43 | #include <asm/setjmp.h> | 42 | #include <asm/setjmp.h> |
44 | #include <asm/reg.h> | 43 | #include <asm/reg.h> |
45 | 44 | ||
@@ -1437,7 +1436,8 @@ static void excprint(struct pt_regs *fp) | |||
1437 | 1436 | ||
1438 | printf(" current = 0x%lx\n", current); | 1437 | printf(" current = 0x%lx\n", current); |
1439 | #ifdef CONFIG_PPC64 | 1438 | #ifdef CONFIG_PPC64 |
1440 | printf(" paca = 0x%lx\n", get_paca()); | 1439 | printf(" paca = 0x%lx\t softe: %d\t irq_happened: 0x%02x\n", |
1440 | local_paca, local_paca->soft_enabled, local_paca->irq_happened); | ||
1441 | #endif | 1441 | #endif |
1442 | if (current) { | 1442 | if (current) { |
1443 | printf(" pid = %ld, comm = %s\n", | 1443 | printf(" pid = %ld, comm = %s\n", |
@@ -1634,25 +1634,6 @@ static void super_regs(void) | |||
1634 | mfspr(SPRN_DEC), mfspr(SPRN_SPRG2)); | 1634 | mfspr(SPRN_DEC), mfspr(SPRN_SPRG2)); |
1635 | printf("sp = "REG" sprg3= "REG"\n", sp, mfspr(SPRN_SPRG3)); | 1635 | printf("sp = "REG" sprg3= "REG"\n", sp, mfspr(SPRN_SPRG3)); |
1636 | printf("toc = "REG" dar = "REG"\n", toc, mfspr(SPRN_DAR)); | 1636 | printf("toc = "REG" dar = "REG"\n", toc, mfspr(SPRN_DAR)); |
1637 | #ifdef CONFIG_PPC_ISERIES | ||
1638 | if (firmware_has_feature(FW_FEATURE_ISERIES)) { | ||
1639 | struct paca_struct *ptrPaca; | ||
1640 | struct lppaca *ptrLpPaca; | ||
1641 | |||
1642 | /* Dump out relevant Paca data areas. */ | ||
1643 | printf("Paca: \n"); | ||
1644 | ptrPaca = get_paca(); | ||
1645 | |||
1646 | printf(" Local Processor Control Area (LpPaca): \n"); | ||
1647 | ptrLpPaca = ptrPaca->lppaca_ptr; | ||
1648 | printf(" Saved Srr0=%.16lx Saved Srr1=%.16lx \n", | ||
1649 | ptrLpPaca->saved_srr0, ptrLpPaca->saved_srr1); | ||
1650 | printf(" Saved Gpr3=%.16lx Saved Gpr4=%.16lx \n", | ||
1651 | ptrLpPaca->saved_gpr3, ptrLpPaca->saved_gpr4); | ||
1652 | printf(" Saved Gpr5=%.16lx \n", | ||
1653 | ptrLpPaca->gpr5_dword.saved_gpr5); | ||
1654 | } | ||
1655 | #endif | ||
1656 | 1637 | ||
1657 | return; | 1638 | return; |
1658 | } | 1639 | } |
@@ -2644,7 +2625,7 @@ static void dump_slb(void) | |||
2644 | static void dump_stab(void) | 2625 | static void dump_stab(void) |
2645 | { | 2626 | { |
2646 | int i; | 2627 | int i; |
2647 | unsigned long *tmp = (unsigned long *)get_paca()->stab_addr; | 2628 | unsigned long *tmp = (unsigned long *)local_paca->stab_addr; |
2648 | 2629 | ||
2649 | printf("Segment table contents of cpu %x\n", smp_processor_id()); | 2630 | printf("Segment table contents of cpu %x\n", smp_processor_id()); |
2650 | 2631 | ||
@@ -2855,10 +2836,6 @@ static void dump_tlb_book3e(void) | |||
2855 | 2836 | ||
2856 | static void xmon_init(int enable) | 2837 | static void xmon_init(int enable) |
2857 | { | 2838 | { |
2858 | #ifdef CONFIG_PPC_ISERIES | ||
2859 | if (firmware_has_feature(FW_FEATURE_ISERIES)) | ||
2860 | return; | ||
2861 | #endif | ||
2862 | if (enable) { | 2839 | if (enable) { |
2863 | __debugger = xmon; | 2840 | __debugger = xmon; |
2864 | __debugger_ipi = xmon_ipi; | 2841 | __debugger_ipi = xmon_ipi; |
@@ -2895,10 +2872,6 @@ static struct sysrq_key_op sysrq_xmon_op = { | |||
2895 | 2872 | ||
2896 | static int __init setup_xmon_sysrq(void) | 2873 | static int __init setup_xmon_sysrq(void) |
2897 | { | 2874 | { |
2898 | #ifdef CONFIG_PPC_ISERIES | ||
2899 | if (firmware_has_feature(FW_FEATURE_ISERIES)) | ||
2900 | return 0; | ||
2901 | #endif | ||
2902 | register_sysrq_key('x', &sysrq_xmon_op); | 2875 | register_sysrq_key('x', &sysrq_xmon_op); |
2903 | return 0; | 2876 | return 0; |
2904 | } | 2877 | } |