aboutsummaryrefslogtreecommitdiff
path: root/payloads/libpayload/arch
diff options
context:
space:
mode:
authorGabe Black <gabeblack@google.com>2012-08-28 16:38:34 -0700
committerStefan Reinauer <stefan.reinauer@coreboot.org>2012-11-07 18:30:40 +0100
commit5ab20054d3c6e637fbcde46a08d2a3c0891bf658 (patch)
treeed807af3ab376af09f2f34607551ac487cc0e859 /payloads/libpayload/arch
parent54c800a50c2c052ce13e29bedc608e180fddc70b (diff)
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 <gabeblack@google.com> Reviewed-on: http://review.coreboot.org/1724 Reviewed-by: Patrick Georgi <patrick@georgi-clan.de> Tested-by: build bot (Jenkins)
Diffstat (limited to 'payloads/libpayload/arch')
-rw-r--r--payloads/libpayload/arch/i386/coreboot.c5
1 files changed, 1 insertions, 4 deletions
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)