fix compilation in traps.c with crash_debug=y [was Re: [Xen-changelog] Paravirtualise the CPUID instruction by forcing emulation with an invalid-opcode prefix.]
A message that is not in the archive (sent off-list or not yet received): [email protected]
PATCH 1/1 fix compilation in traps.c with crash_debug=y [was Re: [Xen-changelog] Paravirtualise the CPUID instruction by forcing emulation with an invalid-opcode prefix.]
I need the following trivial patch to get it to compile with crash_debug=y, trapnr is undefined there so s/trapnr/TRAP_invalid_op/.
Signed-off-by Muli Ben-Yehuda <[email protected]>
xen/arch/x86/traps.c +1 -1
@@ -450,7 +450,7 @@ asmlinkage int do_invalid_op(struct cpu_if (unlikely (!guest_mode (regs)) ) { -DEBUGGER_trap_fatal (trapnr, regs); +DEBUGGER_trap_fatal (TRAP_invalid_op, regs);show_registers (regs);panic ("CPU%d FATAL TRAP: vector = %d (invalid opcode)\n" ,smp_processor_id (), TRAP_invalid_op);
Signature · 2 lines
Muli Ben-Yehuda http://www.mulix.org | http://mulix.livejournal.com/
Quoted 3 lines · Muli Ben-Yehuda
I need the following trivial patch to get it to compile with crash_debug=y, trapnr is undefined there so s/trapnr/TRAP_invalid_op/.
D'oh! A cut-n-paste error late in the day. :-)
-- Keir
Quoted 1 line · Keir Fraser
D'oh! A cut-n-paste error late in the day. :-)
May all compilation errors be this easy to fix :-)
Cheers,
Muli
Signature · 2 lines
Muli Ben-Yehuda http://www.mulix.org | http://mulix.livejournal.com/