From 351fefc452ed70fe53ea84cb91a50bfb7abc6c0a Mon Sep 17 00:00:00 2001 From: Vladimir Serbinenko Date: Sun, 26 Oct 2014 20:42:08 +0100 Subject: ACPI: slic support Export SLIC table from file in CBFS. Change-Id: Id0e7fe0a49b9cd50b5e43cd15030e1c2098728ec Signed-off-by: Vladimir Serbinenko Reviewed-on: http://review.coreboot.org/7202 Reviewed-by: Patrick Georgi Tested-by: build bot (Jenkins) --- src/arch/x86/boot/tables.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/arch/x86/boot/tables.c') diff --git a/src/arch/x86/boot/tables.c b/src/arch/x86/boot/tables.c index ca98faa103..3d645633f0 100644 --- a/src/arch/x86/boot/tables.c +++ b/src/arch/x86/boot/tables.c @@ -147,9 +147,9 @@ void write_tables(void) acpi_rsdp_t *low_rsdp = (acpi_rsdp_t *)rom_table_end, *high_rsdp = (acpi_rsdp_t *)acpi_start; - acpi_write_rsdp(low_rsdp, - (acpi_rsdt_t *)(high_rsdp->rsdt_address), - (acpi_xsdt_t *)((unsigned long)high_rsdp->xsdt_address)); + /* Technically rsdp length varies but coreboot always + writes longest size available. */ + memcpy(low_rsdp, high_rsdp, sizeof(acpi_rsdp_t)); } else { printk(BIOS_ERR, "ERROR: Didn't find RSDP in high table.\n"); } -- cgit v1.2.3