src/cpu: Fix spelling of MTTR to MTRR
Change-Id: Ia4718ac31a5b2bd12f8cda5e107aa878d74d2a03 Signed-off-by: Paul Menzel <paulepanter@users.sourceforge.net> Reviewed-on: http://review.coreboot.org/4805 Tested-by: build bot (Jenkins) Reviewed-by: Alexandru Gagniuc <mr.nuke.me@gmail.com>
This commit is contained in:
committed by
Alexandru Gagniuc
parent
f927df68e4
commit
4fe9813adb
@@ -30,7 +30,7 @@ static void cache_ramstage(void)
|
||||
|
||||
const int addr_det = 0;
|
||||
|
||||
/* the fixed and variable MTTRs are power-up with random values,
|
||||
/* the fixed and variable MTRRs are power-up with random values,
|
||||
* clear them to MTRR_TYPE_UNCACHEABLE for safety.
|
||||
*/
|
||||
static void do_early_mtrr_init(const unsigned long *mtrr_msrs)
|
||||
|
@@ -454,7 +454,7 @@ static void write_var_mtrr(struct var_mtrr_state *var_state,
|
||||
if (var_state->mtrr_index >= bios_mtrrs)
|
||||
printk(BIOS_WARNING, "Taking a reserved OS MTRR.\n");
|
||||
if (var_state->mtrr_index >= total_mtrrs) {
|
||||
printk(BIOS_ERR, "ERROR: Not enough MTTRs available!\n");
|
||||
printk(BIOS_ERR, "ERROR: Not enough MTRRs available!\n");
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -670,7 +670,7 @@ static int calc_var_mtrrs(struct memranges *addr_space,
|
||||
struct var_mtrr_state var_state;
|
||||
|
||||
/* The default MTRR cacheability type is determined by calculating
|
||||
* the number of MTTRs required for each MTTR type as if it was the
|
||||
* the number of MTRRs required for each MTRR type as if it was the
|
||||
* default. */
|
||||
var_state.addr_space = addr_space;
|
||||
var_state.above4gb = above4gb;
|
||||
@@ -776,7 +776,7 @@ static void commit_var_mtrrs(struct memranges *addr_space, int def_type,
|
||||
calc_var_mtrrs_without_hole(&var_state, r);
|
||||
}
|
||||
|
||||
/* Clear all remaining variable MTTRs. */
|
||||
/* Clear all remaining variable MTRRs. */
|
||||
for (i = var_state.mtrr_index; i < total_mtrrs; i++)
|
||||
clear_var_mtrr(i);
|
||||
}
|
||||
|
Reference in New Issue
Block a user