Commit 969d8911 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] ppc64: xmon fixes

From: Anton Blanchard <anton@samba.org>

A few xmon fixes:

- Check we have the set-indicator property before calling rtas.
- We were printing a cpu number in one place with %s, fix.
Signed-off-by: default avatarAnton Blanchard <anton@samba.org>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent cc88f9f9
...@@ -267,6 +267,8 @@ static inline void disable_surveillance(void) ...@@ -267,6 +267,8 @@ static inline void disable_surveillance(void)
* real possibility of deadlock. * real possibility of deadlock.
*/ */
args.token = rtas_token("set-indicator"); args.token = rtas_token("set-indicator");
if (args.token == RTAS_UNKNOWN_SERVICE)
return;
args.nargs = 3; args.nargs = 3;
args.nret = 1; args.nret = 1;
args.rets = &args.args[3]; args.rets = &args.args[3];
...@@ -343,7 +345,7 @@ int xmon_core(struct pt_regs *regs, int fromipi) ...@@ -343,7 +345,7 @@ int xmon_core(struct pt_regs *regs, int fromipi)
if (cpu_isset(cpu, cpus_in_xmon)) { if (cpu_isset(cpu, cpus_in_xmon)) {
get_output_lock(); get_output_lock();
excprint(regs); excprint(regs);
printf("cpu 0x%s: Exception %lx %s in xmon, " printf("cpu 0x%x: Exception %lx %s in xmon, "
"returning to main loop\n", "returning to main loop\n",
cpu, regs->trap, getvecname(TRAP(regs))); cpu, regs->trap, getvecname(TRAP(regs)));
longjmp(xmon_fault_jmp[cpu], 1); longjmp(xmon_fault_jmp[cpu], 1);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment