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

[Xen-changelog] Fix x86/64 build for gcc-4.1-pre.



# HG changeset patch
# User kaf24@xxxxxxxxxxxxxxxxxxxx
# Node ID fd3f1e38fdcf9efd444d63e535d943b3f996d1a3
# Parent  138e145f83f651f62c2e52a33ffd9dfaba750f4b
Fix x86/64 build for gcc-4.1-pre.

Signed-off-by: Keir Fraser <keir@xxxxxxxxxxxxx>

diff -r 138e145f83f6 -r fd3f1e38fdcf xen/arch/x86/shadow.c
--- a/xen/arch/x86/shadow.c     Wed Feb 15 11:20:42 2006
+++ b/xen/arch/x86/shadow.c     Wed Feb 15 11:21:12 2006
@@ -821,7 +821,7 @@
 {
     struct vcpu *v = current;
     struct domain *d = v->domain;
-    pgentry_64_t sle;
+    pgentry_64_t sle = { 0 };
     pgentry_64_t sle_up = {0};
     l1_pgentry_t old_spte;
     l1_pgentry_t sl1e = *(l1_pgentry_t *)sl1e_p;
@@ -1606,7 +1606,7 @@
             perfc_incr_histo(l1_entries_checked, max_shadow - min_shadow + 1, 
PT_UPDATES);
             if ( d->arch.ops->guest_paging_levels >= PAGING_L3 &&
                  unshadow_l1 ) {
-                pgentry_64_t l2e;
+                pgentry_64_t l2e = { 0 };
 
                 __shadow_get_l2e(entry->v, entry->va, &l2e);
 
@@ -3407,7 +3407,7 @@
     guest_l2_pgentry_t *gpl2e, guest_l1_pgentry_t *gpl1e)
 {
     struct domain *d = v->domain;
-    pgentry_64_t gle;
+    pgentry_64_t gle = { 0 };
     unsigned long gpfn = 0, mfn;
     int i;
 
diff -r 138e145f83f6 -r fd3f1e38fdcf xen/include/asm-x86/mpspec_def.h
--- a/xen/include/asm-x86/mpspec_def.h  Wed Feb 15 11:20:42 2006
+++ b/xen/include/asm-x86/mpspec_def.h  Wed Feb 15 11:21:12 2006
@@ -75,7 +75,7 @@
 {
        unsigned char mpc_type;
        unsigned char mpc_busid;
-       unsigned char mpc_bustype[6] __attribute((packed));
+       unsigned char mpc_bustype[6];
 };
 
 /* List of Bus Type string values, Intel MP Spec. */

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


 


Rackspace

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