WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] [PATCH] fix compilation in traps.c with crash_debug=y [was R

To: Keir Fraser <Keir.Fraser@xxxxxxxxxxxx>
Subject: [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.]
From: Muli Ben-Yehuda <mulix@xxxxxxxxx>
Date: Thu, 23 Mar 2006 10:08:59 +0200
Cc: Muli Ben-Yehuda <muli@xxxxxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Thu, 23 Mar 2006 08:10:52 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <E1FM9JP-0003R6-8U@xxxxxxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <E1FM9JP-0003R6-8U@xxxxxxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.11+cvs20060126
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@xxxxxxxxx>

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@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>