From c9a6f0f442846b0ed631ddceb062e632c1154da4 Mon Sep 17 00:00:00 2001 From: Patrick Georgi Date: Sun, 17 May 2009 20:36:45 +0000 Subject: Add type field to memranges, and fill it from the source data. type field contains e820 type ids, which are used by coreboot and multiboot (the two source formats), so they can be used as-is. The MEMMAP_RAM_ONLY define is a way to allow a payload to opt for only having CB_MEM_RAM type fields, which might be helpful to support older payloads easily (just add the define, and it won't encounter "weird" fields) Signed-off-by: Patrick Georgi Acked-by: Peter Stuge git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4291 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1 --- payloads/libpayload/include/sysinfo.h | 1 + 1 file changed, 1 insertion(+) (limited to 'payloads/libpayload/include/sysinfo.h') diff --git a/payloads/libpayload/include/sysinfo.h b/payloads/libpayload/include/sysinfo.h index 3b2c69c61d..bcc3d5fbab 100644 --- a/payloads/libpayload/include/sysinfo.h +++ b/payloads/libpayload/include/sysinfo.h @@ -42,6 +42,7 @@ struct sysinfo_t { struct memrange { unsigned long long base; unsigned long long size; + unsigned int type; } memrange[SYSINFO_MAX_MEM_RANGES]; struct cb_cmos_option_table *option_table; -- cgit v1.2.3