From 927377febe49f9dbf2dc85283583d85beca2f367 Mon Sep 17 00:00:00 2001 From: Stefan Reinauer Date: Tue, 17 Mar 2009 15:33:41 +0000 Subject: Add support for high coreboot table to mkelfimage Signed-off-by: Stefan Reinauer Acked-by: Myles Watson git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4015 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1 --- util/mkelfImage/linux-i386/convert_params.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'util/mkelfImage/linux-i386') diff --git a/util/mkelfImage/linux-i386/convert_params.c b/util/mkelfImage/linux-i386/convert_params.c index 501adfbb11..5af3fafca3 100644 --- a/util/mkelfImage/linux-i386/convert_params.c +++ b/util/mkelfImage/linux-i386/convert_params.c @@ -977,6 +977,13 @@ static int find_lb_table(struct param_info *info) /* Then try at address 0xf0000 */ head = __find_lb_table((void *)0xf0000, (void *)0x100000); } + if (head) { + struct lb_forward *forward = (struct lb_forward *)(((char *)head) + head->header_bytes); + if (forward->tag == LB_TAG_FORWARD) { + head = __find_lb_table(forward->forward, + forward->forward + 0x1000); + } + } if (head) { info->has_linuxbios = 1; info->lb_table = head; -- cgit v1.2.3