diff options
author | Myles Watson <mylesgw@gmail.com> | 2009-03-10 18:06:47 +0000 |
---|---|---|
committer | Myles Watson <mylesgw@gmail.com> | 2009-03-10 18:06:47 +0000 |
commit | 0b4c9f08c72413f8d54640a08524f216e2a60eec (patch) | |
tree | 4c28d55a628eb0b9d78f81da2ebbaee8613183c1 /src/arch | |
parent | 8f210766d5cf673955ba62652570af78a0586f80 (diff) | |
download | coreboot-staging-0b4c9f08c72413f8d54640a08524f216e2a60eec.zip coreboot-staging-0b4c9f08c72413f8d54640a08524f216e2a60eec.tar.gz |
This patch makes the boards use a single amdk8_util.asl. There are only
whitespace differences between this file and the amdk8_util.asl from
asus/m2v_mxe.
It also enables SLIT filling if you have one, zeroes the unused fields in the
srat_lapic structure, and adds some declarations in acpi.h.
Signed-off-by: Myles Watson <mylesgw@gmail.com>
Acked-by: Rudolf Marek <r.marek@assembler.cz>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3986 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src/arch')
-rw-r--r-- | src/arch/i386/boot/acpi.c | 3 | ||||
-rw-r--r-- | src/arch/i386/include/arch/acpi.h | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/src/arch/i386/boot/acpi.c b/src/arch/i386/boot/acpi.c index 9233804..1612c80 100644 --- a/src/arch/i386/boot/acpi.c +++ b/src/arch/i386/boot/acpi.c @@ -212,6 +212,7 @@ void acpi_create_ssdt_generator(acpi_header_t *ssdt, char *oem_table_id) int acpi_create_srat_lapic(acpi_srat_lapic_t *lapic, u8 node, u8 apic) { + memset((void *)lapic, 0, sizeof(acpi_srat_lapic_t)); lapic->type=0; lapic->length=sizeof(acpi_srat_lapic_t); lapic->flags=1; @@ -284,7 +285,7 @@ void acpi_create_slit(acpi_slit_t *slit) header->length = sizeof(acpi_slit_t); header->revision = 1; -// current = acpi_fill_slit(current); + current = acpi_fill_slit(current); /* recalculate length */ header->length= current - (unsigned long)slit; diff --git a/src/arch/i386/include/arch/acpi.h b/src/arch/i386/include/arch/acpi.h index d31517e..4d2cedd 100644 --- a/src/arch/i386/include/arch/acpi.h +++ b/src/arch/i386/include/arch/acpi.h @@ -292,7 +292,8 @@ typedef struct acpi_facs { unsigned long write_acpi_tables(unsigned long addr); unsigned long acpi_fill_madt(unsigned long current); unsigned long acpi_fill_mcfg(unsigned long current); -unsigned long acpi_fill_srat(unsigned long current); +unsigned long acpi_fill_srat(unsigned long current); +unsigned long acpi_fill_slit(unsigned long current); unsigned long acpi_fill_ssdt_generator(unsigned long current, char *oem_table_id); void acpi_create_ssdt_generator(acpi_header_t *ssdt, char *oem_table_id); void acpi_create_fadt(acpi_fadt_t *fadt,acpi_facs_t *facs,void *dsdt); |