Set smbios cache handles - patch from bochs bios.
authorKevin O'Connor <kevin@koconnor.net>
Sat, 25 Oct 2008 19:23:53 +0000 (15:23 -0400)
committerKevin O'Connor <kevin@koconnor.net>
Sat, 25 Oct 2008 19:23:53 +0000 (15:23 -0400)
src/smbios.c

index 9f2be308d4090ba2d5f968df2bd5609d320482ca..53e6e195cf30d5de304834853baf779aeeb68fb8 100644 (file)
@@ -139,6 +139,9 @@ struct smbios_type_4 {
        u16 current_speed;
        u8 status;
        u8 processor_upgrade;
+       u16 l1_cache_handle;
+       u16 l2_cache_handle;
+       u16 l3_cache_handle;
 } PACKED;
 
 /* SMBIOS type 16 - Physical Memory Array
@@ -364,6 +367,10 @@ smbios_type_4_init(void *start, unsigned int cpu_number)
     p->status = 0x41; /* socket populated, CPU enabled */
     p->processor_upgrade = 0x01; /* other */
 
+    p->l1_cache_handle = 0xffff; /* cache information structure not provided */
+    p->l2_cache_handle = 0xffff;
+    p->l3_cache_handle = 0xffff;
+
     start += sizeof(struct smbios_type_4);
 
     memcpy((char *)start, "CPU  " "\0" "" "\0" "", 7);