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>
This commit is contained in:
Felix Held 2023-04-20 12:57:11 +02:00
parent 5e9afe7272
commit fb532c711e
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}