diff options
author | Elyes Haouas <ehaouas@noos.fr> | 2024-06-01 18:12:16 +0200 |
---|---|---|
committer | Felix Held <felix-coreboot@felixheld.de> | 2024-07-10 12:55:46 +0000 |
commit | e7fa24470dc3b3403eabd757a87cfb993f316b1a (patch) | |
tree | 6497bd70076905089fc81ed777cbec34486569c0 /src/soc/amd/common/block | |
parent | a9997f891facaf3c855d7f2c9c6840acbf101193 (diff) |
cbmem_top: Change the return value to uintptr_t
Change-Id: Ib757c0548f6f643747ba8d70228b3d6dfa5182cd
Signed-off-by: Elyes Haouas <ehaouas@noos.fr>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/82752
Reviewed-by: Jérémy Compostella <jeremy.compostella@intel.com>
Reviewed-by: Jakub Czapiga <czapiga@google.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/soc/amd/common/block')
-rw-r--r-- | src/soc/amd/common/block/cpu/noncar/memmap.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/soc/amd/common/block/cpu/noncar/memmap.c b/src/soc/amd/common/block/cpu/noncar/memmap.c index 396260f176..0626205d23 100644 --- a/src/soc/amd/common/block/cpu/noncar/memmap.c +++ b/src/soc/amd/common/block/cpu/noncar/memmap.c @@ -42,7 +42,7 @@ static const struct memmap_early_dram *memmap_get_early_dram_usage(void) /* report SoC memory map up to cbmem_top */ void read_lower_soc_memmap_resources(struct device *dev, unsigned long *idx) { - const uint32_t mem_usable = (uintptr_t)cbmem_top(); + const uint32_t mem_usable = cbmem_top(); const struct memmap_early_dram *e = memmap_get_early_dram_usage(); const uintptr_t early_reserved_dram_start = e->base; const uintptr_t early_reserved_dram_end = e->base + e->size; @@ -76,7 +76,7 @@ void smm_region(uintptr_t *start, size_t *size) if (CONFIG(PLATFORM_USES_FSP2_0)) { fsp_get_smm_region(start, size); } else { - *start = (uintptr_t)cbmem_top(); + *start = cbmem_top(); *size = CONFIG_SMM_TSEG_SIZE; } |