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

[POWERPC] Allow xmon to build on legacy iSeries

xmon still does not run on iSeries, but this allows us to build a combined
kernel that includes it.
Signed-off-by: NStephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: NPaul Mackerras <paulus@samba.org>
上级 ec59cf71
...@@ -77,7 +77,7 @@ config KGDB_CONSOLE ...@@ -77,7 +77,7 @@ config KGDB_CONSOLE
config XMON config XMON
bool "Include xmon kernel debugger" bool "Include xmon kernel debugger"
depends on DEBUGGER && !PPC_ISERIES depends on DEBUGGER
help help
Include in-kernel hooks for the xmon kernel monitor/debugger. Include in-kernel hooks for the xmon kernel monitor/debugger.
Unless you are intending to debug the kernel, say N here. Unless you are intending to debug the kernel, say N here.
......
...@@ -44,6 +44,7 @@ ...@@ -44,6 +44,7 @@
#ifdef CONFIG_PPC64 #ifdef CONFIG_PPC64
#include <asm/hvcall.h> #include <asm/hvcall.h>
#include <asm/paca.h> #include <asm/paca.h>
#include <asm/iseries/it_lp_reg_save.h>
#endif #endif
#include "nonstdio.h" #include "nonstdio.h"
...@@ -2580,6 +2581,10 @@ void dump_segments(void) ...@@ -2580,6 +2581,10 @@ void dump_segments(void)
void xmon_init(int enable) void xmon_init(int enable)
{ {
#ifdef CONFIG_PPC_ISERIES
if (firmware_has_feature(FW_FEATURE_ISERIES))
return;
#endif
if (enable) { if (enable) {
__debugger = xmon; __debugger = xmon;
__debugger_ipi = xmon_ipi; __debugger_ipi = xmon_ipi;
...@@ -2617,6 +2622,10 @@ static struct sysrq_key_op sysrq_xmon_op = ...@@ -2617,6 +2622,10 @@ static struct sysrq_key_op sysrq_xmon_op =
static int __init setup_xmon_sysrq(void) static int __init setup_xmon_sysrq(void)
{ {
#ifdef CONFIG_PPC_ISERIES
if (firmware_has_feature(FW_FEATURE_ISERIES))
return 0;
#endif
register_sysrq_key('x', &sysrq_xmon_op); register_sysrq_key('x', &sysrq_xmon_op);
return 0; return 0;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册