summaryrefslogtreecommitdiff
path: root/src/soc/amd/stoneyridge/memmap.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/soc/amd/stoneyridge/memmap.c')
-rw-r--r--src/soc/amd/stoneyridge/memmap.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/soc/amd/stoneyridge/memmap.c b/src/soc/amd/stoneyridge/memmap.c
index f01574097a..7a225e1b1f 100644
--- a/src/soc/amd/stoneyridge/memmap.c
+++ b/src/soc/amd/stoneyridge/memmap.c
@@ -12,7 +12,7 @@
#include <soc/iomap.h>
#include <amdblocks/biosram.h>
-void *cbmem_top_chipset(void)
+uintptr_t cbmem_top_chipset(void)
{
msr_t tom = rdmsr(TOP_MEM);
@@ -20,8 +20,7 @@ void *cbmem_top_chipset(void)
return 0;
/* 8MB alignment to keep MTRR usage low */
- return (void *)ALIGN_DOWN(restore_top_of_low_cacheable()
- - CONFIG_SMM_TSEG_SIZE, 8 * MiB);
+ return ALIGN_DOWN(restore_top_of_low_cacheable() - CONFIG_SMM_TSEG_SIZE, 8 * MiB);
}
static uintptr_t smm_region_start(void)