ia64/xen-unstable

changeset 5732:b3cfebba3b30

We need this patch to make shadow code compile ok on FC4 which is using
gcc4.
Signed-off-by: Xin Li <xin.b.li@intel.com>
author kaf24@firebug.cl.cam.ac.uk
date Mon Jul 11 14:48:47 2005 +0000 (2005-07-11)
parents 56a63f9f378f
children ece694762d7a
files xen/arch/x86/shadow.c xen/include/asm-x86/shadow_64.h
line diff
     1.1 --- a/xen/arch/x86/shadow.c	Mon Jul 11 14:44:08 2005 +0000
     1.2 +++ b/xen/arch/x86/shadow.c	Mon Jul 11 14:48:47 2005 +0000
     1.3 @@ -2623,7 +2623,7 @@ static void shadow_set_l1e_64(unsigned l
     1.4      struct vcpu *v = current;
     1.5      struct domain *d = v->domain;
     1.6      pgentry_64_t sle;
     1.7 -    pgentry_64_t sle_up;
     1.8 +    pgentry_64_t sle_up = {0};
     1.9      l1_pgentry_t old_spte;
    1.10      l1_pgentry_t sl1e = *(l1_pgentry_t *)sl1e_p;
    1.11      int i;
     2.1 --- a/xen/include/asm-x86/shadow_64.h	Mon Jul 11 14:44:08 2005 +0000
     2.2 +++ b/xen/include/asm-x86/shadow_64.h	Mon Jul 11 14:48:47 2005 +0000
     2.3 @@ -485,8 +485,8 @@ static inline int guest_page_fault(struc
     2.4  static inline unsigned long gva_to_gpa(unsigned long gva)
     2.5  {
     2.6      struct vcpu *v = current;
     2.7 -    pgentry_64_t gl1e;
     2.8 -    pgentry_64_t gl2e;
     2.9 +    pgentry_64_t gl1e = {0};
    2.10 +    pgentry_64_t gl2e = {0};
    2.11      unsigned long gpa;
    2.12  
    2.13      if (guest_page_fault(v, gva, 0, &gl2e, &gl1e))