summaryrefslogtreecommitdiff
path: root/src/northbridge/amd/pi/00730F01
diff options
context:
space:
mode:
authorFelix Held <felix-coreboot@felixheld.de>2023-04-22 05:59:52 +0200
committerFelix Held <felix-coreboot@felixheld.de>2023-04-23 21:41:29 +0000
commit27af3e6b111f462a71762bd56363d06d73505284 (patch)
tree7becb08ed5b1670431d63f6a78edf24ad54df339 /src/northbridge/amd/pi/00730F01
parent8c4a56a29543e495a9cd678200f01b901beeb934 (diff)
include/cpu/amd/mtrr: fix typo in get_top_of_mem_above_4gb
Add the missing 'b' to the 4gb so that get_top_of_mem_above_4gb is in line with get_top_of_mem_below_4gb. Signed-off-by: Felix Held <felix-coreboot@felixheld.de> Change-Id: Ic9170372d8b0c27d7de3bd04d822c95e2015cb10 Reviewed-on: https://review.coreboot.org/c/coreboot/+/74710 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Fred Reitberger <reitbergerfred@gmail.com>
Diffstat (limited to 'src/northbridge/amd/pi/00730F01')
-rw-r--r--src/northbridge/amd/pi/00730F01/northbridge.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/northbridge/amd/pi/00730F01/northbridge.c b/src/northbridge/amd/pi/00730F01/northbridge.c
index cba57d866a..b9ac022697 100644
--- a/src/northbridge/amd/pi/00730F01/northbridge.c
+++ b/src/northbridge/amd/pi/00730F01/northbridge.c
@@ -550,7 +550,7 @@ static void northbridge_fill_ssdt_generator(const struct device *device)
* Shift value right by 20 bit to make it fit into 32bit,
* giving us 1MB granularity and a limit of almost 4Exabyte of memory.
*/
- acpigen_write_name_dword("TOM2", get_top_of_mem_above_4g() >> 20);
+ acpigen_write_name_dword("TOM2", get_top_of_mem_above_4gb() >> 20);
acpigen_pop_len();
}
@@ -834,7 +834,7 @@ static void domain_read_resources(struct device *dev)
sizek = 0;
}
else {
- uint64_t topmem2 = get_top_of_mem_above_4g();
+ uint64_t topmem2 = get_top_of_mem_above_4gb();
basek = 4 * 1024 * 1024;
sizek = topmem2 / 1024 - basek;
}