From d18faac7ebb77955fa600a8a432da360ae78130d Mon Sep 17 00:00:00 2001 From: Stefan Reinauer Date: Thu, 5 Nov 2009 18:06:43 +0000 Subject: 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 Acked-by: Stefan Reinauer git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4916 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1 --- src/arch/i386/boot/acpi.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/arch/i386/boot/acpi.c') 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); -- cgit v1.2.3