[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [PATCH] make shadow code compile ok on FC4 which is using gcc4


  • To: "Keir Fraser" <Keir.Fraser@xxxxxxxxxxxx>
  • From: "Li, Xin B" <xin.b.li@xxxxxxxxx>
  • Date: Mon, 11 Jul 2005 22:35:52 +0800
  • Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
  • Delivery-date: Mon, 11 Jul 2005 14:34:43 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>
  • Thread-index: AcWGJdcMEN7jfGbpQouSPCIObjSUKQ==
  • Thread-topic: [PATCH] make shadow code compile ok on FC4 which is using gcc4

We need this patch to make shadow code compile ok on FC4 which is using
gcc4.
-Xin

Signed-off-by: Xin Li <xin.b.li@xxxxxxxxx>

diff -r a29b4174d39c xen/arch/x86/shadow.c
--- a/xen/arch/x86/shadow.c     Mon Jul 11 10:23:19 2005
+++ b/xen/arch/x86/shadow.c     Mon Jul 11 20:19:03 2005
@@ -2623,7 +2623,7 @@
     struct vcpu *v = current;
     struct domain *d = v->domain;
     pgentry_64_t sle;
-    pgentry_64_t sle_up;
+    pgentry_64_t sle_up = {0};
     l1_pgentry_t old_spte;
     l1_pgentry_t sl1e = *(l1_pgentry_t *)sl1e_p;
     int i;
diff -r a29b4174d39c xen/include/asm-x86/shadow_64.h
--- a/xen/include/asm-x86/shadow_64.h   Mon Jul 11 10:23:19 2005
+++ b/xen/include/asm-x86/shadow_64.h   Mon Jul 11 20:19:03 2005
@@ -485,8 +485,8 @@
 static inline unsigned long gva_to_gpa(unsigned long gva)
 {
     struct vcpu *v = current;
-    pgentry_64_t gl1e;
-    pgentry_64_t gl2e;
+    pgentry_64_t gl1e = {0};
+    pgentry_64_t gl2e = {0};
     unsigned long gpa;

     if (guest_page_fault(v, gva, 0, &gl2e, &gl1e))

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.