Revert my too-hasty commit.
Signed-off-by: Myles Watson <mylesgw@gmail.com> Acked-by: Myles Watson <mylesgw@gmail.com> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4936 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
parent
8f84813775
commit
339722e89e
|
@ -485,10 +485,11 @@ unsigned long write_coreboot_table(
|
||||||
|
|
||||||
#if (CONFIG_HAVE_OPTION_TABLE == 1)
|
#if (CONFIG_HAVE_OPTION_TABLE == 1)
|
||||||
{
|
{
|
||||||
struct lb_record *rec_dest;
|
struct lb_record *rec_dest, *rec_src;
|
||||||
/* Copy the option config table, it's already a lb_record... */
|
/* Write the option config table... */
|
||||||
rec_dest = lb_new_record(head);
|
rec_dest = lb_new_record(head);
|
||||||
memcpy(rec_dest, &option_table, sizeof(option_table));
|
rec_src = (struct lb_record *)(void *)&option_table;
|
||||||
|
memcpy(rec_dest, rec_src, rec_src->size);
|
||||||
/* Create cmos checksum entry in coreboot table */
|
/* Create cmos checksum entry in coreboot table */
|
||||||
lb_cmos_checksum(head);
|
lb_cmos_checksum(head);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue