Skip to contentSkip to conversation

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.]

PATCH In review Muli Ben-Yehuda 2 participants 3 messages Mar 23, 2006 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

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/.

xen/arch/x86/traps.c +1 -1
diff -r 973a60e77cd9 -r f69de6ff45e0 xen/arch/x86/traps.c
@@ -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/
#2 lore raw
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

#3 lore raw
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/