mirror of
https://github.com/xemu-project/xemu.git
synced 2026-11-16 02:49:34 +01:00
pc: e820 qemu_cfg tables need to be packed
We can't let the compiler define the alignment for qemu_cfg data. Signed-off-by: Alex Williamson <alex.williamson@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
1 parent
b88417062d
commit
67d4b0c190
1 file changed
+2
-2
@@ -75,12 +75,12 @@ struct e820_entry {
|
||||
uint64_t address;
|
||||
uint64_t length;
|
||||
uint32_t type;
|
||||
};
|
||||
} __attribute((__packed__, __aligned__(4)));
|
||||
|
||||
struct e820_table {
|
||||
uint32_t count;
|
||||
struct e820_entry entry[E820_NR_ENTRIES];
|
||||
};
|
||||
} __attribute((__packed__, __aligned__(4)));
|
||||
|
||||
static struct e820_table e820_table;
|
||||
|
||||
|
||||
Reference in new issue
Block a user