summaryrefslogtreecommitdiff
path: root/src/arch
diff options
context:
space:
mode:
authorStefan Reinauer <stepan@coresystems.de>2009-11-05 18:06:43 +0000
committerStefan Reinauer <stepan@openbios.org>2009-11-05 18:06:43 +0000
commitd18faac7ebb77955fa600a8a432da360ae78130d (patch)
tree8a3f653ef2e623980d024140a348b76b96edff89 /src/arch
parent4172efc17f4185d1762f6d3d2aa3e1f4b2594499 (diff)
downloadcoreboot-d18faac7ebb77955fa600a8a432da360ae78130d.tar.xz
if x86emu was running for VGA init a corrupted low table RSDP
is generated in the F segment. Clear the memory before generating an RSDP to fix the problem. Signed-off-by: Stefan Reinauer <stepan@coresystems.de> Acked-by: Stefan Reinauer <stepan@coresystems.de> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4916 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src/arch')
-rw-r--r--src/arch/i386/boot/acpi.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/arch/i386/boot/acpi.c b/src/arch/i386/boot/acpi.c
index 03634b4d96..928a49fe53 100644
--- a/src/arch/i386/boot/acpi.c
+++ b/src/arch/i386/boot/acpi.c
@@ -424,6 +424,7 @@ void acpi_write_xsdt(acpi_xsdt_t *xsdt)
void acpi_write_rsdp(acpi_rsdp_t *rsdp, acpi_rsdt_t *rsdt, acpi_xsdt_t *xsdt)
{
+ memset(rsdp, 0, sizeof(acpi_rsdp_t));
memcpy(rsdp->signature, RSDP_SIG, 8);
memcpy(rsdp->oem_id, OEM_ID, 6);
rsdp->length = sizeof(acpi_rsdp_t);