Skip to content

Commit

Permalink
[POWERPC] Don't try to just continue if xmon has no input device
Browse files Browse the repository at this point in the history
Currently, if xmon has no input device (as is generally the case on
G5 powermacs), and we drop into xmon as a result of a fatal exception,
it will return 1, which die() interprets as "continue without causing
an oops".  This fixes it by making xmon() return 0 in the case where
it has no input device.

Signed-off-by: Paul Mackerras <paulus@samba.org>
  • Loading branch information
Paul Mackerras committed Oct 4, 2006
1 parent 586da2c commit 0a730ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/powerpc/xmon/xmon.c
Original file line number Diff line number Diff line change
Expand Up @@ -505,7 +505,7 @@ static int xmon_core(struct pt_regs *regs, int fromipi)

mtmsr(msr); /* restore interrupt enable */

return cmd != 'X';
return cmd != 'X' && cmd != EOF;
}

int xmon(struct pt_regs *excp)
Expand Down

0 comments on commit 0a730ae

Please sign in to comment.