diff options
author | Patrick Georgi <patrick.georgi@coresystems.de> | 2009-05-26 19:39:14 +0000 |
---|---|---|
committer | Patrick Georgi <patrick.georgi@coresystems.de> | 2009-05-26 19:39:14 +0000 |
commit | bab4f92c8bdde168ad186c054967e36dc5477d10 (patch) | |
tree | 3b959b5781f135fd70744c3d94991841763666c3 /src/arch/i386/boot/coreboot_table.c | |
parent | 5429e26b9c5ccf36ee520a03a7d34454be03acc0 (diff) |
Clean up acpi table writing code, and don't rely
on a given alignment for the RSDP and RSDT - look
it up instead.
Signed-off-by: Patrick Georgi <patrick.georgi@coresystems.de>
Acked-by: Myles Watson <mylesgw@gmail.com>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4311 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src/arch/i386/boot/coreboot_table.c')
-rw-r--r-- | src/arch/i386/boot/coreboot_table.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/arch/i386/boot/coreboot_table.c b/src/arch/i386/boot/coreboot_table.c index 8ca3b877d2..431ff368cd 100644 --- a/src/arch/i386/boot/coreboot_table.c +++ b/src/arch/i386/boot/coreboot_table.c @@ -429,9 +429,8 @@ unsigned long write_coreboot_table( low_table_end); head = lb_table_init(low_table_end); lb_forward(head, (struct lb_header*)rom_table_end); - lb_table_fini(head, 0); - low_table_end = (unsigned long)head; + low_table_end = (unsigned long) lb_table_fini(head, 0); printk_debug("New low_table_end: 0x%08lx\n", low_table_end); printk_debug("Now going to write high coreboot table at 0x%08lx\n", rom_table_end); |