From 5ab20054d3c6e637fbcde46a08d2a3c0891bf658 Mon Sep 17 00:00:00 2001 From: Gabe Black Date: Tue, 28 Aug 2012 16:38:34 -0700 Subject: Update the way serial info is read from the coreboot tables. This information is now stored in a structure instead of in a few seperate fields. libpayload hadn't been updated to reflect the new layout or to consume the new information intelligently. Change-Id: Ice3486ffcdcdbe1f16f9c84515120c591d8dc882 Signed-off-by: Gabe Black Reviewed-on: http://review.coreboot.org/1724 Reviewed-by: Patrick Georgi Tested-by: build bot (Jenkins) --- payloads/libpayload/arch/i386/coreboot.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'payloads/libpayload/arch') diff --git a/payloads/libpayload/arch/i386/coreboot.c b/payloads/libpayload/arch/i386/coreboot.c index 06acc17b1d..8500d41f51 100644 --- a/payloads/libpayload/arch/i386/coreboot.c +++ b/payloads/libpayload/arch/i386/coreboot.c @@ -75,10 +75,7 @@ static void cb_parse_memory(void *ptr, struct sysinfo_t *info) static void cb_parse_serial(void *ptr, struct sysinfo_t *info) { - struct cb_serial *ser = ptr; - if (ser->type != CB_SERIAL_TYPE_IO_MAPPED) - return; - info->ser_ioport = ser->baseaddr; + info->serial = ((struct cb_serial *)ptr); } static void cb_parse_version(void *ptr, struct sysinfo_t *info) -- cgit v1.2.3