All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] make shadow code compile ok on FC4 which is using gcc4
@ 2005-07-11 14:35 Li, Xin B
  2005-07-11 19:19 ` David Hopwood
  0 siblings, 1 reply; 8+ messages in thread
From: Li, Xin B @ 2005-07-11 14:35 UTC (permalink / raw)
  To: Keir Fraser; +Cc: xen-devel

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@intel.com>

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))

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2005-07-12  2:29 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-07-11 14:35 [PATCH] make shadow code compile ok on FC4 which is using gcc4 Li, Xin B
2005-07-11 19:19 ` David Hopwood
2005-07-11 19:58   ` Keir Fraser
2005-07-11 20:11     ` Jerone Young
2005-07-11 20:15       ` Keir Fraser
2005-07-11 20:01   ` Rik van Riel
2005-07-11 23:32     ` David Hopwood
2005-07-12  2:29       ` Rik van Riel

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.