Author: oxygene
Date: Fri Jan 21 14:20:10 2011
New Revision: 6291
URL: https://tracker.coreboot.org/trac/coreboot/changeset/6291

Log:
... And fix the other compile time issues in cmos_layout.bin support

Signed-off-by: Patrick Georgi <[email protected]>
Acked-by: Patrick Georgi <[email protected]>

Modified:
   trunk/src/arch/x86/boot/coreboot_table.c

Modified: trunk/src/arch/x86/boot/coreboot_table.c
==============================================================================
--- trunk/src/arch/x86/boot/coreboot_table.c    Fri Jan 21 13:45:37 2011        
(r6290)
+++ trunk/src/arch/x86/boot/coreboot_table.c    Fri Jan 21 14:20:10 2011        
(r6291)
@@ -31,6 +31,7 @@
 #include <stdlib.h>
 #if (CONFIG_USE_OPTION_TABLE == 1)
 #include <option_table.h>
+#include <cbfs.h>
 #endif
 
 static struct lb_header *lb_table_init(unsigned long addr)
@@ -542,11 +543,11 @@
 
 #if (CONFIG_USE_OPTION_TABLE == 1)
        {
-               struct cmos_option_table option_table = 
cbfs_find_file("cmos_layout.bin", 0x1aa);
+               struct cmos_option_table *option_table = 
cbfs_find_file("cmos_layout.bin", 0x1aa);
                if (option_table) {
                        struct lb_record *rec_dest = lb_new_record(head);
                        /* Copy the option config table, it's already a 
lb_record... */
-                       memcpy(rec_dest,  &option_table, option_table.size);
+                       memcpy(rec_dest,  &option_table, option_table->size);
                        /* Create cmos checksum entry in coreboot table */
                        lb_cmos_checksum(head);
                } else {

-- 
coreboot mailing list: [email protected]
http://www.coreboot.org/mailman/listinfo/coreboot

Reply via email to