summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/imd_cbmem.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/imd_cbmem.c b/src/lib/imd_cbmem.c
index e75c538cea..a0780719fe 100644
--- a/src/lib/imd_cbmem.c
+++ b/src/lib/imd_cbmem.c
@@ -272,11 +272,11 @@ void cbmem_region_used(uintptr_t *base, size_t *size)
void cbmem_add_bootmem(void)
{
- void *base = NULL;
+ uintptr_t base = 0;
size_t size = 0;
- cbmem_region_used(base, &size);
- bootmem_add_range((uintptr_t)base, size, LB_MEM_TABLE);
+ cbmem_region_used(&base, &size);
+ bootmem_add_range(base, size, LB_MEM_TABLE);
}
#if ENV_RAMSTAGE