[coreboot] [v2] r4916 - trunk/src/arch/i386/boot
svn at coreboot.org
svn at coreboot.org
Thu Nov 5 19:06:43 CET 2009
Author: stepan
Date: 2009-11-05 18:06:43 +0000 (Thu, 05 Nov 2009)
New Revision: 4916
Modified:
trunk/src/arch/i386/boot/acpi.c
Log:
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 at coresystems.de>
Acked-by: Stefan Reinauer <stepan at coresystems.de>
Modified: trunk/src/arch/i386/boot/acpi.c
===================================================================
--- trunk/src/arch/i386/boot/acpi.c 2009-11-05 17:24:03 UTC (rev 4915)
+++ trunk/src/arch/i386/boot/acpi.c 2009-11-05 18:06:43 UTC (rev 4916)
@@ -424,6 +424,7 @@
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);
More information about the coreboot
mailing list