Muli Ben-Yehuda
2006-Mar-23 08:08 UTC
[Xen-devel] [PATCH] 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 <mulix@mulix.org>
diff -r 973a60e77cd9 -r f69de6ff45e0 xen/arch/x86/traps.c
--- a/xen/arch/x86/traps.c Thu Mar 23 09:57:01 2006 +0200
+++ b/xen/arch/x86/traps.c Thu Mar 23 10:03:43 2006 +0200
@@ -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);
--
Muli Ben-Yehuda
http://www.mulix.org | http://mulix.livejournal.com/
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel
Keir Fraser
2006-Mar-23 09:30 UTC
[Xen-devel] Re: [PATCH] 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.]
On 23 Mar 2006, at 08:08, Muli Ben-Yehuda wrote:> 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 _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Muli Ben-Yehuda
2006-Mar-23 09:34 UTC
[Xen-devel] Re: [PATCH] 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.]
On Thu, Mar 23, 2006 at 09:30:46AM +0000, Keir Fraser wrote:> D''oh! A cut-n-paste error late in the day. :-)May all compilation errors be this easy to fix :-) Cheers, Muli -- Muli Ben-Yehuda http://www.mulix.org | http://mulix.livejournal.com/ _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel