aboutsummaryrefslogtreecommitdiff
path: root/src/cpu/amd
diff options
context:
space:
mode:
authorArthur Heymans <arthur@aheymans.xyz>2023-07-05 10:59:59 +0200
committerKyösti Mälkki <kyosti.malkki@gmail.com>2023-07-12 10:51:49 +0000
commit74add29738dd9a7bafea10ae3f52217764a995bb (patch)
tree8c7ae773c6579f51d14d3a79b4b7a2b08948d824 /src/cpu/amd
parentfdc1b541aeeac2d6f5d93cfc514fa0599da1a47d (diff)
cpu/amd/mtrr: Use newer function for resource declaration
Signed-off-by: Arthur Heymans <arthur@aheymans.xyz> Change-Id: I62f34a12bc5c4807638ddcb39fa5e450d99511fe Reviewed-on: https://review.coreboot.org/c/coreboot/+/76277 Reviewed-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/cpu/amd')
-rw-r--r--src/cpu/amd/mtrr/amd_mtrr.c2
1 files changed, 1 insertions, 1 deletions
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);
}