mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-10 07:00:48 +00:00
[POWERPC] Don't try to just continue if xmon has no input device
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>
This commit is contained in:
parent
586da2cc78
commit
0a730ae599
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user