From 943d623d4893e5c0a5666f542bfac3eaa877283d Mon Sep 17 00:00:00 2001 From: Furquan Shaikh Date: Thu, 11 Sep 2014 14:20:35 -0700 Subject: 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 Original-Commit-Id: 1f39cdbf68b674ef9b65441038ec79548145a88d Original-Change-Id: Ie9904bf8abfa5ce1d87a586e5b08eb320793942f Original-Signed-off-by: Furquan Shaikh Original-Reviewed-on: https://chromium-review.googlesource.com/217821 Original-Reviewed-by: Aaron Durbin Original-Tested-by: Furquan Shaikh Original-Commit-Queue: Furquan Shaikh Reviewed-on: http://review.coreboot.org/8790 Tested-by: build bot (Jenkins) Reviewed-by: Stefan Reinauer --- payloads/libpayload/arch/arm64/coreboot.c | 5 +++++ payloads/libpayload/include/libpayload.h | 1 + 2 files changed, 6 insertions(+) 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); -- cgit v1.2.3