]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - arch/x86/lib/tables.c
x86: Generate a valid ACPI table
[karo-tx-uboot.git] / arch / x86 / lib / tables.c
index 75ffbc1b220456bd6fbc6f2a266a94129963a01b..f15b2e2855a9cbd6b3b8c53033230090038d7c3e 100644 (file)
@@ -8,6 +8,7 @@
 #include <asm/sfi.h>
 #include <asm/mpspec.h>
 #include <asm/tables.h>
+#include <asm/acpi_table.h>
 
 u8 table_compute_checksum(void *v, int len)
 {
@@ -51,4 +52,8 @@ void write_tables(void)
        rom_table_end = write_mp_table(rom_table_end);
        rom_table_end = ALIGN(rom_table_end, 1024);
 #endif
+#ifdef CONFIG_GENERATE_ACPI_TABLE
+       rom_table_end = write_acpi_tables(rom_table_end);
+       rom_table_end = ALIGN(rom_table_end, 1024);
+#endif
 }