From 155c379b747e14ee181794d6ee460495886bee14 Mon Sep 17 00:00:00 2001 From: Mathias Krause Date: Thu, 10 Mar 2011 07:52:02 +0000 Subject: nvramtool: Move code so it has access to the right data structures Signed-off-by: Mathias Krause Acked-by: Peter Stuge git-svn-id: svn://svn.coreboot.org/coreboot/trunk@6440 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1 --- util/nvramtool/accessors/layout-bin.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'util/nvramtool/accessors/layout-bin.c') diff --git a/util/nvramtool/accessors/layout-bin.c b/util/nvramtool/accessors/layout-bin.c index 53f0530c40..cf79646453 100644 --- a/util/nvramtool/accessors/layout-bin.c +++ b/util/nvramtool/accessors/layout-bin.c @@ -83,6 +83,20 @@ void get_layout_from_cbfs_file(void) process_layout(); } +/**************************************************************************** + * get_layout_from_cmos_table + * + * Find the CMOS table which is stored within the coreboot table and set the + * global variable cmos_table to point to it. + ****************************************************************************/ +void get_layout_from_cmos_table(void) +{ + get_lbtable(); + cmos_table = (const struct cmos_option_table *) + find_lbrec(LB_TAG_CMOS_OPTION_TABLE); + process_layout(); +} + /**************************************************************************** * process_cmos_table * -- cgit v1.2.3