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] minor changes to fix build with debug=y debugger=y p

To: "xen-devel@xxxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] [PATCH] minor changes to fix build with debug=y debugger=y perfc=y trace=y
From: Michael Day <md@xxxxxxxxxxxxxxx>
Date: Fri, 31 Dec 2004 13:19:23 -0500
Delivery-date: Fri, 31 Dec 2004 18:19:25 +0000
Envelope-to: xen+James.Bulpin@xxxxxxxxxxxx
List-archive: <http://sourceforge.net/mailarchive/forum.php?forum=xen-devel>
List-help: <mailto:xen-devel-request@lists.sourceforge.net?subject=help>
List-id: List for Xen developers <xen-devel.lists.sourceforge.net>
List-post: <mailto:xen-devel@lists.sourceforge.net>
List-subscribe: <https://lists.sourceforge.net/lists/listinfo/xen-devel>, <mailto:xen-devel-request@lists.sourceforge.net?subject=subscribe>
List-unsubscribe: <https://lists.sourceforge.net/lists/listinfo/xen-devel>, <mailto:xen-devel-request@lists.sourceforge.net?subject=unsubscribe>
Sender: xen-devel-admin@xxxxxxxxxxxxxxxxxxxxx
I made these minor changes to build xen-2.0-testing with all debug and
counters enabled. 

gcc info: 
[mdday@athlon src]$ gcc -v
Reading specs from /usr/lib/gcc/i386-redhat-linux/3.4.2/specs
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --
infodir=/usr/share/info --enable-shared --enable-threads=posix --
disable-checking --with-system-zlib --enable-__cxa_atexit --disable-
libunwind-exceptions --enable-java-awt=gtk --host=i386-redhat-linux
Thread model: posix
gcc version 3.4.2 20041017 (Red Hat 3.4.2-6.fc3)

signed-off-by: Mike Day <md@xxxxxxxxxxxxxxx>

-- 
//------------------------------------------------------------//

Mike Day
md@xxxxxxxxxxxxxxx
pgp signature key at: http://www.ncultra.org/md_sigkey.html

//------------------------------------------------------------//



diff -Nurb --exclude SCCS --exclude '*~' --exclude '*.o' 
a/xen/arch/x86/pdb-stub.c b/xen/arch/x86/pdb-stub.c
--- a/xen/arch/x86/pdb-stub.c   2004-12-31 12:52:40.000000000 -0500
+++ b/xen/arch/x86/pdb-stub.c   2004-12-31 12:09:02.807561256 -0500
@@ -21,6 +21,7 @@
 #include <xen/list.h>
 #include <xen/serial.h>
 #include <xen/softirq.h>
+#include <xen/init.h>
 
 /* opt_pdb: Name of serial port for Xen pervasive debugger (and enable pdb) */
 static unsigned char opt_pdb[10] = "none";
diff -Nurb --exclude SCCS --exclude '*~' --exclude '*.o' a/xen/common/trace.c 
b/xen/common/trace.c
--- a/xen/common/trace.c        2004-12-31 12:52:40.000000000 -0500
+++ b/xen/common/trace.c        2004-12-31 13:03:40.157328360 -0500
@@ -27,6 +27,7 @@
 #include <xen/errno.h>
 #include <asm/atomic.h>
 #include <public/dom0_ops.h>
+#include <xen/init.h>
 
 /* opt_tbuf_size: trace buffer size (in pages) */
 static unsigned int opt_tbuf_size = 10;
diff -Nurb --exclude SCCS --exclude '*~' --exclude '*.o' 
a/xen/include/asm-x86/x86_32/regs.h b/xen/include/asm-x86/x86_32/regs.h
--- a/xen/include/asm-x86/x86_32/regs.h 2004-12-31 12:52:40.000000000 -0500
+++ b/xen/include/asm-x86/x86_32/regs.h 2004-12-31 13:12:49.089877928 -0500
@@ -1,6 +1,8 @@
 #ifndef _I386_REGS_H
 #define _I386_REGS_H
 
+#include <asm/types.h>
+
 struct xen_regs
 {
     /* All saved activations contain the following fields. */
<Prev in Thread] Current Thread [Next in Thread>