From 555d6c2161683612c415dc4eb99edded68836ff7 Mon Sep 17 00:00:00 2001 From: Alexandru Gagniuc Date: Mon, 16 Nov 2015 13:26:33 -0800 Subject: cbmem: Add utility to get memory region occupied by cbmem Change-Id: I8e57c23565f173afc0f4d450579b8bfb35aeb964 Signed-off-by: Alexandru Gagniuc Signed-off-by: Andrey Petrov Reviewed-on: https://review.coreboot.org/13363 Tested-by: build bot (Jenkins) Reviewed-by: Paul Menzel Reviewed-by: Aaron Durbin --- src/include/cbmem.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/include') diff --git a/src/include/cbmem.h b/src/include/cbmem.h index efaa44f9c9..2e947a1973 100644 --- a/src/include/cbmem.h +++ b/src/include/cbmem.h @@ -109,6 +109,8 @@ int cbmem_recovery(int s3resume); void *cbmem_add(u32 id, u64 size); /* Find a cbmem entry of a given id. These return NULL on failure. */ void *cbmem_find(u32 id); +/* Get location and size of CBMEM region in memory */ +void cbmem_region_used(uintptr_t *base, size_t *size); /* Indicate to each hook if cbmem is being recovered or not. */ typedef void (* const cbmem_init_hook_t)(int is_recovery); -- cgit v1.2.3