diff options
author | Felix Held <felix-coreboot@felixheld.de> | 2023-04-20 12:57:11 +0200 |
---|---|---|
committer | Felix Held <felix-coreboot@felixheld.de> | 2023-04-21 15:10:32 +0000 |
commit | fb532c711e2ef317108d6ffc35ae751bf7d58530 (patch) | |
tree | 7270cf805cde98124ea3d640bdfcb6a840d0db16 /src/include/cpu/amd | |
parent | 5e9afe7272d110265ffa6f5465fa942c2bf4961f (diff) |
include/cpu/amd/mtrr: return uint32_t from get_top_of_mem_below_4gb
The top of memory below 4GB will always fit into 32 bits, so change the
return type accordingly.
Signed-off-by: Felix Held <felix-coreboot@felixheld.de>
Change-Id: I6b463a17f2db3b7a99ff3572f318c9c22aac7431
Reviewed-on: https://review.coreboot.org/c/coreboot/+/74610
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Martin Roth <martin.roth@amd.corp-partner.google.com>
Diffstat (limited to 'src/include/cpu/amd')
-rw-r--r-- | src/include/cpu/amd/mtrr.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/include/cpu/amd/mtrr.h b/src/include/cpu/amd/mtrr.h index b8b820ca73..e96dc90baa 100644 --- a/src/include/cpu/amd/mtrr.h +++ b/src/include/cpu/amd/mtrr.h @@ -65,7 +65,7 @@ static __always_inline void wrmsr_amd(unsigned int index, msr_t msr) ); } -static inline uint64_t get_top_of_mem_below_4gb(void) +static inline uint32_t get_top_of_mem_below_4gb(void) { return rdmsr(TOP_MEM).lo; } |