summaryrefslogtreecommitdiff
path: root/payloads/libpayload/arch
diff options
context:
space:
mode:
authorPhilip Prindeville <philipp@redfish-solutions.com>2011-12-24 22:12:37 -0700
committerPatrick Georgi <patrick@georgi-clan.de>2012-01-07 11:49:57 +0100
commit9a7c246767cc541728108aa5c558cd08cbb5471d (patch)
treeacc787d3589721f619d48175043b9f04f1192b23 /payloads/libpayload/arch
parentd0ac789e212c1bef6582e2ae33118280f287318e (diff)
downloadcoreboot-9a7c246767cc541728108aa5c558cd08cbb5471d.tar.xz
Cleanup access to vendor/part # info
Instead of macros to access MAINBOARD record, use convenience functions. Store pointers to MAINBOARD and HEADER for use outside of CB code. Change-Id: I074e3a0df7d25726cbd942538bfdc5a63dd17e12 Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com> Reviewed-on: http://review.coreboot.org/502 Tested-by: build bot (Jenkins) Reviewed-by: Patrick Georgi <patrick@georgi-clan.de>
Diffstat (limited to 'payloads/libpayload/arch')
-rw-r--r--payloads/libpayload/arch/i386/coreboot.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/payloads/libpayload/arch/i386/coreboot.c b/payloads/libpayload/arch/i386/coreboot.c
index 709f8ae00f..06acc17b1d 100644
--- a/payloads/libpayload/arch/i386/coreboot.c
+++ b/payloads/libpayload/arch/i386/coreboot.c
@@ -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;