libpayload arm64: Add functions for reading memranges
BUG=chrome-os-partner:31634 BRANCH=None TEST=Compiles successfully Change-Id: I12e7cdaf07c1bc4802a04dadd85384939b5a67e0 Signed-off-by: Patrick Georgi <pgeorgi@chromium.org> Original-Commit-Id: c454a3d60b0e087df79de4fd9cff09596ae12ca5 Original-Change-Id: Iec82d56ae4a5f1ac6243afef1f453de3905d869c Original-Signed-off-by: Furquan Shaikh <furquan@google.com> Original-Reviewed-on: https://chromium-review.googlesource.com/216821 Original-Tested-by: Furquan Shaikh <furquan@chromium.org> Original-Reviewed-by: Aaron Durbin <adurbin@chromium.org> Original-Commit-Queue: Furquan Shaikh <furquan@chromium.org> Reviewed-on: http://review.coreboot.org/8788 Tested-by: build bot (Jenkins) Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
This commit is contained in:
parent
732f5b5597
commit
8e15963cc5
|
@ -62,3 +62,10 @@ int lib_get_sysinfo(void)
|
|||
|
||||
return ret;
|
||||
}
|
||||
|
||||
void lib_sysinfo_get_memranges(struct memrange **ranges,
|
||||
uint64_t *nranges)
|
||||
{
|
||||
*ranges = &lib_sysinfo.memrange[0];
|
||||
*nranges = lib_sysinfo.n_memranges;
|
||||
}
|
||||
|
|
|
@ -422,6 +422,8 @@ int get_multiboot_info(struct sysinfo_t *info);
|
|||
void *get_cb_header_ptr(void);
|
||||
|
||||
int lib_get_sysinfo(void);
|
||||
void lib_sysinfo_get_memranges(struct memrange **ranges,
|
||||
uint64_t *nranges);
|
||||
|
||||
/* Timer functions. */
|
||||
/* Defined by each architecture. */
|
||||
|
|
Loading…
Reference in New Issue