summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFurquan Shaikh <furquan@google.com>2014-09-11 14:20:35 -0700
committerPatrick Georgi <pgeorgi@google.com>2015-03-21 10:34:33 +0100
commit943d623d4893e5c0a5666f542bfac3eaa877283d (patch)
treeaf83b3e748e8dda471466e905a4f83bee3b702dc
parentb58f9e3a305e8bcef95f8c466f388746e7cbfb51 (diff)
downloadcoreboot-943d623d4893e5c0a5666f542bfac3eaa877283d.tar.xz
libpayload arm64: Add function to get coreboot table ptr
BUG=chrome-os-partner:31634 BRANCH=None TEST=Compiles successfully Change-Id: If89e7a537e6f0321ef43641c924a8ef057f51147 Signed-off-by: Patrick Georgi <pgeorgi@chromium.org> Original-Commit-Id: 1f39cdbf68b674ef9b65441038ec79548145a88d Original-Change-Id: Ie9904bf8abfa5ce1d87a586e5b08eb320793942f Original-Signed-off-by: Furquan Shaikh <furquan@google.com> Original-Reviewed-on: https://chromium-review.googlesource.com/217821 Original-Reviewed-by: Aaron Durbin <adurbin@chromium.org> Original-Tested-by: Furquan Shaikh <furquan@chromium.org> Original-Commit-Queue: Furquan Shaikh <furquan@chromium.org> Reviewed-on: http://review.coreboot.org/8790 Tested-by: build bot (Jenkins) Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
-rw-r--r--payloads/libpayload/arch/arm64/coreboot.c5
-rw-r--r--payloads/libpayload/include/libpayload.h1
2 files changed, 6 insertions, 0 deletions
diff --git a/payloads/libpayload/arch/arm64/coreboot.c b/payloads/libpayload/arch/arm64/coreboot.c
index 056d63e2e6..03aec5733c 100644
--- a/payloads/libpayload/arch/arm64/coreboot.c
+++ b/payloads/libpayload/arch/arm64/coreboot.c
@@ -60,3 +60,8 @@ int get_coreboot_info(struct sysinfo_t *info)
{
return cb_parse_header(cb_header_ptr, 1, info);
}
+
+void *get_cb_header_ptr(void)
+{
+ return cb_header_ptr;
+}
diff --git a/payloads/libpayload/include/libpayload.h b/payloads/libpayload/include/libpayload.h
index 5bdd55dfad..3d8417c42a 100644
--- a/payloads/libpayload/include/libpayload.h
+++ b/payloads/libpayload/include/libpayload.h
@@ -419,6 +419,7 @@ int sysinfo_have_multiboot(unsigned long *addr);
*/
int get_coreboot_info(struct sysinfo_t *info);
int get_multiboot_info(struct sysinfo_t *info);
+void *get_cb_header_ptr(void);
int lib_get_sysinfo(void);