nvramtool: Move code so it has access to the right data structures
Signed-off-by: Mathias Krause <mathias.krause@secunet.com> Acked-by: Peter Stuge <peter@stuge.se> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@6440 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
committed by
Patrick Georgi
parent
314dd0bee5
commit
155c379b74
@@ -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
|
||||
*
|
||||
|
Reference in New Issue
Block a user