Create a dummy smbios table in coreboot environments.
authorKevin O'Connor <kevin@koconnor.net>
Sat, 30 Aug 2008 01:19:53 +0000 (21:19 -0400)
committerKevin O'Connor <kevin@koconnor.net>
Sat, 30 Aug 2008 01:19:53 +0000 (21:19 -0400)
src/coreboot.c
src/smbios.c

index d7aeef13d34c7b8f78a822b9fdd261e6873907bc..1b1d3336ba8d24358ad75987d30bcbe5ff997840 100644 (file)
@@ -217,6 +217,11 @@ coreboot_fill_map()
     add_e820(0, 16*1024, E820_RAM);
 
     SET_EBDA(ram_size, maxram);
+
+    // XXX - just create dummy smbios table for now - should detect if
+    // smbios/dmi table is found from coreboot and use that instead.
+    smbios_init();
+
     return;
 
 fail:
index 80262793dc6adefb839dc41bf62cdd5772b92615..3ae5be34f86ecf2c82dceba215c3e857ab9cce54 100644 (file)
@@ -22,6 +22,8 @@ uuid_probe(u8 *bios_uuid)
 
     if (! CONFIG_UUID_BACKDOOR)
         return;
+    if (CONFIG_COREBOOT)
+        return;
 
     // check if backdoor port exists
     u32 eax, ebx, ecx, edx;