include/cpu/amd/mtrr: rename functions to get top of memory regions
Rename amd_topmem and amd_topmem2 to get_top_of_mem_below_4gb and get_top_of_mem_above_4g to make it clearer what those functions return. Signed-off-by: Felix Held <felix-coreboot@felixheld.de> Change-Id: Ic6e98d94c731af74aea0ce276a9a7e4867e3986f Reviewed-on: https://review.coreboot.org/c/coreboot/+/74589 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Martin Roth <martin.roth@amd.corp-partner.google.com>
This commit is contained in:
@ -7,7 +7,7 @@
|
||||
|
||||
void add_uma_resource_below_tolm(struct device *nb, int idx)
|
||||
{
|
||||
uint32_t topmem = amd_topmem();
|
||||
uint32_t topmem = get_top_of_mem_below_4gb();
|
||||
uint32_t top_of_cacheable = restore_top_of_low_cacheable();
|
||||
|
||||
if (top_of_cacheable == topmem)
|
||||
|
Reference in New Issue
Block a user