Patrick Georgi ([email protected]) just uploaded a new patch set to 
gerrit, which you can find at http://review.coreboot.org/394

-gerrit

commit 2daa28a3b187d92eb9ad11534f6b96e65e83225f
Author: Mathias Krause <[email protected]>
Date:   Thu Oct 20 14:06:26 2011 +0200

    libpayload: Put coreboot version into lib_sysinfo
    
    Change-Id: I22319efe90e475c66b9556f734a7a5e54f7c59bc
    Signed-off-by: Patrick Georgi <[email protected]>
---
 payloads/libpayload/arch/i386/coreboot.c |    9 +++++++++
 payloads/libpayload/include/sysinfo.h    |    2 ++
 2 files changed, 11 insertions(+), 0 deletions(-)

diff --git a/payloads/libpayload/arch/i386/coreboot.c 
b/payloads/libpayload/arch/i386/coreboot.c
index bdef4e8..365445e 100644
--- a/payloads/libpayload/arch/i386/coreboot.c
+++ b/payloads/libpayload/arch/i386/coreboot.c
@@ -82,6 +82,12 @@ static void cb_parse_serial(unsigned char *ptr, struct 
sysinfo_t *info)
        info->ser_ioport = ser->baseaddr;
 }
 
+static void cb_parse_version(unsigned char *ptr, struct sysinfo_t *info)
+{
+       struct cb_string *ver = (struct cb_string *)ptr;
+       info->cb_version = (char *)ver->string;
+}
+
 #ifdef CONFIG_NVRAM
 static void cb_parse_optiontable(unsigned char *ptr, struct sysinfo_t *info)
 {
@@ -148,6 +154,9 @@ static int cb_parse_header(void *addr, int len, struct 
sysinfo_t *info)
                case CB_TAG_SERIAL:
                        cb_parse_serial(ptr, info);
                        break;
+               case CB_TAG_VERSION:
+                       cb_parse_version(ptr, info);
+                       break;
 #ifdef CONFIG_NVRAM
                case CB_TAG_CMOS_OPTION_TABLE:
                        cb_parse_optiontable(ptr, info);
diff --git a/payloads/libpayload/include/sysinfo.h 
b/payloads/libpayload/include/sysinfo.h
index e357704..c1d2002 100644
--- a/payloads/libpayload/include/sysinfo.h
+++ b/payloads/libpayload/include/sysinfo.h
@@ -51,6 +51,8 @@ struct sysinfo_t {
        u32 cmos_range_end;
        u32 cmos_checksum_location;
 
+       char *cb_version;
+
        struct cb_framebuffer *framebuffer;
 
        unsigned long *mbtable; /** Pointer to the multiboot table */

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

Reply via email to