ia64/xen-unstable

changeset 8857:fd3f1e38fdcf

Fix x86/64 build for gcc-4.1-pre.

Signed-off-by: Keir Fraser <keir@xensource.com>
author kaf24@firebug.cl.cam.ac.uk
date Wed Feb 15 12:21:12 2006 +0100 (2006-02-15)
parents 138e145f83f6
children 765b0657264d
files xen/arch/x86/shadow.c xen/include/asm-x86/mpspec_def.h
line diff
     1.1 --- a/xen/arch/x86/shadow.c	Wed Feb 15 12:20:42 2006 +0100
     1.2 +++ b/xen/arch/x86/shadow.c	Wed Feb 15 12:21:12 2006 +0100
     1.3 @@ -821,7 +821,7 @@ static void shadow_set_l1e_64(
     1.4  {
     1.5      struct vcpu *v = current;
     1.6      struct domain *d = v->domain;
     1.7 -    pgentry_64_t sle;
     1.8 +    pgentry_64_t sle = { 0 };
     1.9      pgentry_64_t sle_up = {0};
    1.10      l1_pgentry_t old_spte;
    1.11      l1_pgentry_t sl1e = *(l1_pgentry_t *)sl1e_p;
    1.12 @@ -1606,7 +1606,7 @@ static int resync_all(struct domain *d, 
    1.13              perfc_incr_histo(l1_entries_checked, max_shadow - min_shadow + 1, PT_UPDATES);
    1.14              if ( d->arch.ops->guest_paging_levels >= PAGING_L3 &&
    1.15                   unshadow_l1 ) {
    1.16 -                pgentry_64_t l2e;
    1.17 +                pgentry_64_t l2e = { 0 };
    1.18  
    1.19                  __shadow_get_l2e(entry->v, entry->va, &l2e);
    1.20  
    1.21 @@ -3407,7 +3407,7 @@ static inline int guest_page_fault(
    1.22      guest_l2_pgentry_t *gpl2e, guest_l1_pgentry_t *gpl1e)
    1.23  {
    1.24      struct domain *d = v->domain;
    1.25 -    pgentry_64_t gle;
    1.26 +    pgentry_64_t gle = { 0 };
    1.27      unsigned long gpfn = 0, mfn;
    1.28      int i;
    1.29  
     2.1 --- a/xen/include/asm-x86/mpspec_def.h	Wed Feb 15 12:20:42 2006 +0100
     2.2 +++ b/xen/include/asm-x86/mpspec_def.h	Wed Feb 15 12:21:12 2006 +0100
     2.3 @@ -75,7 +75,7 @@ struct mpc_config_bus
     2.4  {
     2.5  	unsigned char mpc_type;
     2.6  	unsigned char mpc_busid;
     2.7 -	unsigned char mpc_bustype[6] __attribute((packed));
     2.8 +	unsigned char mpc_bustype[6];
     2.9  };
    2.10  
    2.11  /* List of Bus Type string values, Intel MP Spec. */