diff options
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/imd_cbmem.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/imd_cbmem.c b/src/lib/imd_cbmem.c index a855cf18b3..91c86211f5 100644 --- a/src/lib/imd_cbmem.c +++ b/src/lib/imd_cbmem.c @@ -18,11 +18,11 @@ static struct imd imd; void *cbmem_top(void) { if (ENV_CREATES_CBMEM) { - static void *top; + static uintptr_t top; if (top) - return top; + return (void *)top; top = cbmem_top_chipset(); - return top; + return (void *)top; } if (ENV_POSTCAR || ENV_RAMSTAGE) return (void *)_cbmem_top_ptr; |