Comments
Patch
===================================================================
@@ -485,11 +485,12 @@
#if (CONFIG_HAVE_OPTION_TABLE == 1)
{
- struct lb_record *rec_dest, *rec_src;
- /* Write the option config table... */
+ struct lb_record *rec_dest;
+ struct cmos_option_table *ct = &option_table;
+ /* Copy the option config table, it's already a lb_record... */
rec_dest = lb_new_record(head);
- rec_src = (struct lb_record *)(void *)&option_table;
- memcpy(rec_dest, rec_src, rec_src->size);
+ printk_debug("memcpy(%p, %p, %x)\n",rec_dest, &option_table, ct->size);
+ memcpy(rec_dest, &option_table, ct->size);
/* Create cmos checksum entry in coreboot table */
lb_cmos_checksum(head);
}