soc/amd/common/cpu/noncar/memmap: make local variables const
Signed-off-by: Felix Held <felix-coreboot@felixheld.de> Change-Id: If3424df80655a150f27c7296a5683b528873816b Reviewed-on: https://review.coreboot.org/c/coreboot/+/81390 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Matt DeVillier <matt.devillier@amd.corp-partner.google.com> Reviewed-by: Marshall Dawson <marshalldawson3rd@gmail.com>
This commit is contained in:
		@@ -36,13 +36,10 @@ static const struct memmap_early_dram *memmap_get_early_dram_usage(void)
 | 
				
			|||||||
/* report SoC memory map up to cbmem_top */
 | 
					/* report SoC memory map up to cbmem_top */
 | 
				
			||||||
void read_lower_soc_memmap_resources(struct device *dev, unsigned long *idx)
 | 
					void read_lower_soc_memmap_resources(struct device *dev, unsigned long *idx)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
	uint32_t mem_usable = (uintptr_t)cbmem_top();
 | 
						const uint32_t mem_usable = (uintptr_t)cbmem_top();
 | 
				
			||||||
 | 
					 | 
				
			||||||
	uintptr_t early_reserved_dram_start, early_reserved_dram_end;
 | 
					 | 
				
			||||||
	const struct memmap_early_dram *e = memmap_get_early_dram_usage();
 | 
						const struct memmap_early_dram *e = memmap_get_early_dram_usage();
 | 
				
			||||||
 | 
						const uintptr_t early_reserved_dram_start = e->base;
 | 
				
			||||||
	early_reserved_dram_start = e->base;
 | 
						const uintptr_t early_reserved_dram_end = e->base + e->size;
 | 
				
			||||||
	early_reserved_dram_end = e->base + e->size;
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
	/* 0x0 - 0x9ffff */
 | 
						/* 0x0 - 0x9ffff */
 | 
				
			||||||
	ram_range(dev, (*idx)++, 0, 0xa0000);
 | 
						ram_range(dev, (*idx)++, 0, 0xa0000);
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user