UPSTREAM: intel/haswell post-car: Minor fix on MTRR setting
Change-Id: I65f0ad430bdcc2065c1e873743da04201a68d9c9 Original-Signed-off-by: Kysti Mlkki <kyosti.malkki@gmail.com> Original-Reviewed-on: https://review.coreboot.org/15796 Original-Tested-by: build bot (Jenkins) Original-Reviewed-by: Aaron Durbin <adurbin@chromium.org> Signed-off-by: Aaron Durbin <adurbin@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/362766 Reviewed-by: Furquan Shaikh <furquan@chromium.org>
This commit is contained in:
parent
8dd126e5d6
commit
8f7ff90f8e
1 changed files with 2 additions and 2 deletions
|
|
@ -69,7 +69,7 @@ static inline u32 *stack_push(u32 *stack, u32 value)
|
|||
* cache-as-ram is torn down as well as the MTRR settings to use. */
|
||||
static void *setup_romstage_stack_after_car(void)
|
||||
{
|
||||
unsigned long top_of_stack;
|
||||
uintptr_t top_of_stack;
|
||||
int num_mtrrs;
|
||||
u32 *slot;
|
||||
u32 mtrr_mask_upper;
|
||||
|
|
@ -82,7 +82,7 @@ static void *setup_romstage_stack_after_car(void)
|
|||
|
||||
/* The upper bits of the MTRR mask need to set according to the number
|
||||
* of physical address bits. */
|
||||
mtrr_mask_upper = (1 << ((cpuid_eax(0x80000008) & 0xff) - 32)) - 1;
|
||||
mtrr_mask_upper = (1 << (cpu_phys_address_size() - 32)) - 1;
|
||||
|
||||
/* The order for each MTRR is value then base with upper 32-bits of
|
||||
* each value coming before the lower 32-bits. The reasoning for
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue