soc/amd/common/cpu/noncar/early_cache: use get_top_of_mem_below_4gb
commit8cdfd4cb2497f7feed08faf6609b6bd741773aa8
authorFelix Held <felix-coreboot@felixheld.de>
Thu, 20 Apr 2023 11:25:13 +0000 (20 13:25 +0200)
committerFelix Held <felix-coreboot@felixheld.de>
Fri, 21 Apr 2023 15:15:22 +0000 (21 15:15 +0000)
tree046bc6085ac0e9488582b0e5129acf8eb4518ab4
parent5927873b925e1aaca5929ccb8b7e1ff7bb0c7256
soc/amd/common/cpu/noncar/early_cache: 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: Icc9e5ad8954c6203fc4762aa976bba7e8ea16159
Reviewed-on: https://review.coreboot.org/c/coreboot/+/74615
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Jason Glenesk <jason.glenesk@gmail.com>
src/soc/amd/common/block/cpu/noncar/early_cache.c