Attention is currently required from: Fred Reitberger, Jason Glenesk, Matt DeVillier.
Felix Held has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/81390?usp=email )
Change subject: soc/amd/common/cpu/noncar/memmap: make local variables const ......................................................................
soc/amd/common/cpu/noncar/memmap: make local variables const
Signed-off-by: Felix Held felix-coreboot@felixheld.de Change-Id: If3424df80655a150f27c7296a5683b528873816b --- M src/soc/amd/common/block/cpu/noncar/memmap.c 1 file changed, 3 insertions(+), 6 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/90/81390/1
diff --git a/src/soc/amd/common/block/cpu/noncar/memmap.c b/src/soc/amd/common/block/cpu/noncar/memmap.c index 2aaba83..488c209 100644 --- a/src/soc/amd/common/block/cpu/noncar/memmap.c +++ b/src/soc/amd/common/block/cpu/noncar/memmap.c @@ -36,13 +36,10 @@ /* report SoC memory map up to cbmem_top */ void read_lower_soc_memmap_resources(struct device *dev, unsigned long *idx) { - uint32_t mem_usable = (uintptr_t)cbmem_top(); - - uintptr_t early_reserved_dram_start, early_reserved_dram_end; + const uint32_t mem_usable = (uintptr_t)cbmem_top(); const struct memmap_early_dram *e = memmap_get_early_dram_usage(); - - early_reserved_dram_start = e->base; - early_reserved_dram_end = e->base + e->size; + const uintptr_t early_reserved_dram_start = e->base; + const uintptr_t early_reserved_dram_end = e->base + e->size;
/* 0x0 - 0x9ffff */ ram_range(dev, (*idx)++, 0, 0xa0000);