From 74add29738dd9a7bafea10ae3f52217764a995bb Mon Sep 17 00:00:00 2001 From: Arthur Heymans Date: Wed, 5 Jul 2023 10:59:59 +0200 Subject: cpu/amd/mtrr: Use newer function for resource declaration MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Arthur Heymans Change-Id: I62f34a12bc5c4807638ddcb39fa5e450d99511fe Reviewed-on: https://review.coreboot.org/c/coreboot/+/76277 Reviewed-by: Kyösti Mälkki Tested-by: build bot (Jenkins) --- src/cpu/amd/mtrr/amd_mtrr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/cpu/amd') diff --git a/src/cpu/amd/mtrr/amd_mtrr.c b/src/cpu/amd/mtrr/amd_mtrr.c index f904df9b04..64ed5dc073 100644 --- a/src/cpu/amd/mtrr/amd_mtrr.c +++ b/src/cpu/amd/mtrr/amd_mtrr.c @@ -19,5 +19,5 @@ void add_uma_resource_below_tolm(struct device *nb, int idx) printk(BIOS_INFO, "%s: uma size 0x%08x, memory start 0x%08x\n", __func__, uma_size, uma_base); - uma_resource_kb(nb, idx, uma_base / KiB, uma_size / KiB); + mmio_range(nb, idx, uma_base, uma_size); } -- cgit v1.2.3