Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 6215
b: refs/heads/master
c: b13cfd1
h: refs/heads/master
i:
  6213: bbd6edd
  6211: 2d34adf
  6207: afe06d6
v: v3
  • Loading branch information
Olaf Hering authored and Paul Mackerras committed Aug 29, 2005
1 parent 01b1c5c commit 0f17969
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 15 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: bef5686229810709091fb6e505071f4aa41e3760
refs/heads/master: b13cfd173f73c3f6f9a307b7b6e64d45fbd756b2
8 changes: 5 additions & 3 deletions trunk/arch/ppc64/kernel/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -627,7 +627,7 @@ void __init setup_system(void)
* Initialize xmon
*/
#ifdef CONFIG_XMON_DEFAULT
xmon_init();
xmon_init(1);
#endif
/*
* Register early console
Expand Down Expand Up @@ -1343,11 +1343,13 @@ static int __init early_xmon(char *p)
/* ensure xmon is enabled */
if (p) {
if (strncmp(p, "on", 2) == 0)
xmon_init();
xmon_init(1);
if (strncmp(p, "off", 3) == 0)
xmon_init(0);
if (strncmp(p, "early", 5) != 0)
return 0;
}
xmon_init();
xmon_init(1);
debugger(NULL);

return 0;
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/ppc64/xmon/start.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ static void sysrq_handle_xmon(int key, struct pt_regs *pt_regs,
struct tty_struct *tty)
{
/* ensure xmon is enabled */
xmon_init();
xmon_init(1);
debugger(pt_regs);
}

Expand Down
28 changes: 19 additions & 9 deletions trunk/arch/ppc64/xmon/xmon.c
Original file line number Diff line number Diff line change
Expand Up @@ -2496,15 +2496,25 @@ static void dump_stab(void)
}
}

void xmon_init(void)
{
__debugger = xmon;
__debugger_ipi = xmon_ipi;
__debugger_bpt = xmon_bpt;
__debugger_sstep = xmon_sstep;
__debugger_iabr_match = xmon_iabr_match;
__debugger_dabr_match = xmon_dabr_match;
__debugger_fault_handler = xmon_fault_handler;
void xmon_init(int enable)
{
if (enable) {
__debugger = xmon;
__debugger_ipi = xmon_ipi;
__debugger_bpt = xmon_bpt;
__debugger_sstep = xmon_sstep;
__debugger_iabr_match = xmon_iabr_match;
__debugger_dabr_match = xmon_dabr_match;
__debugger_fault_handler = xmon_fault_handler;
} else {
__debugger = NULL;
__debugger_ipi = NULL;
__debugger_bpt = NULL;
__debugger_sstep = NULL;
__debugger_iabr_match = NULL;
__debugger_dabr_match = NULL;
__debugger_fault_handler = NULL;
}
}

void dump_segments(void)
Expand Down
2 changes: 1 addition & 1 deletion trunk/include/asm-ppc64/system.h
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ DEBUGGER_BOILERPLATE(debugger_dabr_match)
DEBUGGER_BOILERPLATE(debugger_fault_handler)

#ifdef CONFIG_XMON
extern void xmon_init(void);
extern void xmon_init(int enable);
#endif

#else
Expand Down

0 comments on commit 0f17969

Please sign in to comment.