Cleanup access to vendor/part # info
[coreboot.git] / payloads / libpayload / arch / i386 / coreboot.c
index 709f8ae00fc6ac2d274d41835ecf4fbd660fc90e..06acc17b1d244d0bd4713515bc173a61fc1edd62 100644 (file)
@@ -137,6 +137,8 @@ static int cb_parse_header(void *addr, int len, struct sysinfo_t *info)
                     header->table_bytes) != header->table_checksum)
                return -1;
 
+       info->header = header;
+
        /* Now, walk the tables. */
        ptr += header->header_bytes;
 
@@ -173,6 +175,9 @@ static int cb_parse_header(void *addr, int len, struct sysinfo_t *info)
                        cb_parse_framebuffer(ptr, info);
                        break;
 #endif
+               case CB_TAG_MAINBOARD:
+                       info->mainboard = (struct cb_mainboard *)ptr;
+                       break;
                }
 
                ptr += rec->size;