============= cut =============
@@ -199,4 +199,9 @@ struct srat_memory_affinity
#include "acpi-dsdt.hex"
+#define CONFIG_OEM_SLIC
+#ifdef CONFIG_OEM_SLIC
+#include "acpi-slic.hex"
+#endif
+
static void
build_header(struct acpi_table_header *h, u32 sig, int len, u8 rev)
@@ -211,4 +216,8 @@ build_header(struct acpi_table_header *h, u32 sig, int len, u8 rev)
h->oem_revision = cpu_to_le32(1);
h->asl_compiler_revision = cpu_to_le32(1);
+#ifdef CONFIG_OEM_SLIC
+ if (sig == RSDT_SIGNATURE) // only RSDT is checked by win7 & vista
+ memcpy(h->oem_id, ((struct acpi_table_header*)SLIC)->oem_id, 14);
+#endif
h->checksum -= checksum(h, len);
}
@@ -627,4 +636,15 @@ acpi_bios_init(void)
ACPI_INIT_TABLE(build_srat());
+#ifdef CONFIG_OEM_SLIC
+ { void *buf = malloc_high(sizeof(SLIC));
+ if (!buf)
+ warn_noalloc();
+ else {
+ memcpy(buf, SLIC, sizeof(SLIC));
+ ACPI_INIT_TABLE(buf);
+ }
+ }
+#endif
+
u16 i, external_tables = qemu_cfg_acpi_additional_tables();