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] make shadow code compile ok on FC4 which is using gc

To: "Keir Fraser" <Keir.Fraser@xxxxxxxxxxxx>
Subject: [Xen-devel] [PATCH] make shadow code compile ok on FC4 which is using gcc4
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
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
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>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
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