diff options
Diffstat (limited to 'arch/powerpc')
-rw-r--r-- | arch/powerpc/Kconfig.debug | 2 | ||||
-rw-r--r-- | arch/powerpc/xmon/xmon.c | 9 |
2 files changed, 10 insertions, 1 deletions
diff --git a/arch/powerpc/Kconfig.debug b/arch/powerpc/Kconfig.debug index ff16063d67ff..5cce9048ce01 100644 --- a/arch/powerpc/Kconfig.debug +++ b/arch/powerpc/Kconfig.debug | |||
@@ -77,7 +77,7 @@ config KGDB_CONSOLE | |||
77 | 77 | ||
78 | config XMON | 78 | config XMON |
79 | bool "Include xmon kernel debugger" | 79 | bool "Include xmon kernel debugger" |
80 | depends on DEBUGGER && !PPC_ISERIES | 80 | depends on DEBUGGER |
81 | help | 81 | help |
82 | Include in-kernel hooks for the xmon kernel monitor/debugger. | 82 | Include in-kernel hooks for the xmon kernel monitor/debugger. |
83 | Unless you are intending to debug the kernel, say N here. | 83 | Unless you are intending to debug the kernel, say N here. |
diff --git a/arch/powerpc/xmon/xmon.c b/arch/powerpc/xmon/xmon.c index dc8a3760a98c..a34ed49e0356 100644 --- a/arch/powerpc/xmon/xmon.c +++ b/arch/powerpc/xmon/xmon.c | |||
@@ -44,6 +44,7 @@ | |||
44 | #ifdef CONFIG_PPC64 | 44 | #ifdef CONFIG_PPC64 |
45 | #include <asm/hvcall.h> | 45 | #include <asm/hvcall.h> |
46 | #include <asm/paca.h> | 46 | #include <asm/paca.h> |
47 | #include <asm/iseries/it_lp_reg_save.h> | ||
47 | #endif | 48 | #endif |
48 | 49 | ||
49 | #include "nonstdio.h" | 50 | #include "nonstdio.h" |
@@ -2580,6 +2581,10 @@ void dump_segments(void) | |||
2580 | 2581 | ||
2581 | void xmon_init(int enable) | 2582 | void xmon_init(int enable) |
2582 | { | 2583 | { |
2584 | #ifdef CONFIG_PPC_ISERIES | ||
2585 | if (firmware_has_feature(FW_FEATURE_ISERIES)) | ||
2586 | return; | ||
2587 | #endif | ||
2583 | if (enable) { | 2588 | if (enable) { |
2584 | __debugger = xmon; | 2589 | __debugger = xmon; |
2585 | __debugger_ipi = xmon_ipi; | 2590 | __debugger_ipi = xmon_ipi; |
@@ -2617,6 +2622,10 @@ static struct sysrq_key_op sysrq_xmon_op = | |||
2617 | 2622 | ||
2618 | static int __init setup_xmon_sysrq(void) | 2623 | static int __init setup_xmon_sysrq(void) |
2619 | { | 2624 | { |
2625 | #ifdef CONFIG_PPC_ISERIES | ||
2626 | if (firmware_has_feature(FW_FEATURE_ISERIES)) | ||
2627 | return 0; | ||
2628 | #endif | ||
2620 | register_sysrq_key('x', &sysrq_xmon_op); | 2629 | register_sysrq_key('x', &sysrq_xmon_op); |
2621 | return 0; | 2630 | return 0; |
2622 | } | 2631 | } |