summaryrefslogtreecommitdiff
path: root/payloads/libpayload/i386/multiboot.c
diff options
context:
space:
mode:
authorJordan Crouse <jordan@cosmicpenguin.net>2008-11-11 19:51:14 +0000
committerJordan Crouse <jordan.crouse@amd.com>2008-11-11 19:51:14 +0000
commit6c6e4333c4ef8a86e70e14fcff57a5747339b165 (patch)
treee22f3aaf38fb241263176e7ac7817141c01a7eaf /payloads/libpayload/i386/multiboot.c
parent3b6c527322259d6ae7878411ca26ee6dd9374b3c (diff)
[PATCH] Add sysinfo_have_multiboot function
Add a new infrastructure for returning system information to payloads. First up - a pointer to the multiboot table. Signed-off-by: Jordan Crouse <jordan@cosmicpenguin.net> Acked-by: Peter Stuge <peter@stuge.se> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3743 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'payloads/libpayload/i386/multiboot.c')
-rw-r--r--payloads/libpayload/i386/multiboot.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/payloads/libpayload/i386/multiboot.c b/payloads/libpayload/i386/multiboot.c
index 09e72c768b..040cc082f1 100644
--- a/payloads/libpayload/i386/multiboot.c
+++ b/payloads/libpayload/i386/multiboot.c
@@ -86,6 +86,8 @@ int get_multiboot_info(struct sysinfo_t *info)
table = (struct multiboot_header *) phys_to_virt(loader_ebx);
+ info->mbtable = phys_to_virt(loader_ebx);
+
if (table->flags & MULTIBOOT_FLAGS_MMAP)
mb_parse_mmap(table, info);