soc/amd/stoneyridge/memmap: use get_top_of_mem_below_4gb
Use get_top_of_mem_below_4gb instead of open-coding the functionality. Signed-off-by: Felix Held <felix-coreboot@felixheld.de> Change-Id: Ic673deb725a541c7535ae769f589cd82ea42a561 Reviewed-on: https://review.coreboot.org/c/coreboot/+/74614 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:
parent
392cf2f8f8
commit
5927873b92
|
@ -13,9 +13,7 @@
|
||||||
|
|
||||||
uintptr_t cbmem_top_chipset(void)
|
uintptr_t cbmem_top_chipset(void)
|
||||||
{
|
{
|
||||||
msr_t tom = rdmsr(TOP_MEM);
|
if (!get_top_of_mem_below_4gb())
|
||||||
|
|
||||||
if (!tom.lo)
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
/* 8MB alignment to keep MTRR usage low */
|
/* 8MB alignment to keep MTRR usage low */
|
||||||
|
|
Loading…
Reference in New Issue