libpayload arm64: Add functions for reading memranges
BUG=chrome-os-partner:31634 BRANCH=None TEST=Compiles successfully Change-Id: Iec82d56ae4a5f1ac6243afef1f453de3905d869c Signed-off-by: Furquan Shaikh <furquan@google.com> Reviewed-on: https://chromium-review.googlesource.com/216821 Tested-by: Furquan Shaikh <furquan@chromium.org> Reviewed-by: Aaron Durbin <adurbin@chromium.org> Commit-Queue: Furquan Shaikh <furquan@chromium.org>
This commit is contained in:
parent
54f639ef23
commit
c454a3d60b
2 changed files with 9 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -421,6 +421,8 @@ int get_coreboot_info(struct sysinfo_t *info);
|
|||
int get_multiboot_info(struct sysinfo_t *info);
|
||||
|
||||
int lib_get_sysinfo(void);
|
||||
void lib_sysinfo_get_memranges(struct memrange **ranges,
|
||||
uint64_t *nranges);
|
||||
|
||||
/* Timer functions. */
|
||||
/* Defined by each architecture. */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue