From fb532c711e2ef317108d6ffc35ae751bf7d58530 Mon Sep 17 00:00:00 2001 From: Felix Held Date: Thu, 20 Apr 2023 12:57:11 +0200 Subject: [PATCH] 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 Change-Id: I6b463a17f2db3b7a99ff3572f318c9c22aac7431 Reviewed-on: https://review.coreboot.org/c/coreboot/+/74610 Tested-by: build bot (Jenkins) Reviewed-by: Martin Roth --- src/include/cpu/amd/mtrr.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }