summaryrefslogtreecommitdiff
path: root/src/cpu
diff options
context:
space:
mode:
Diffstat (limited to 'src/cpu')
-rw-r--r--src/cpu/x86/mtrr/mtrr.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/cpu/x86/mtrr/mtrr.c b/src/cpu/x86/mtrr/mtrr.c
index 288f06dd0e..d8903b89e0 100644
--- a/src/cpu/x86/mtrr/mtrr.c
+++ b/src/cpu/x86/mtrr/mtrr.c
@@ -154,7 +154,7 @@ static void print_physical_address_space(const struct memranges *addr_space,
memranges_each_entry(r, addr_space)
printk(BIOS_DEBUG,
"0x%016llx - 0x%016llx size 0x%08llx type %ld\n",
- range_entry_base(r), range_entry_end(r),
+ range_entry_base(r), range_entry_end(r) - 1,
range_entry_size(r), range_entry_tag(r));
}
@@ -272,7 +272,7 @@ static void calc_fixed_mtrrs(void)
type = range_entry_tag(r);
printk(MTRR_VERBOSE_LEVEL,
"MTRR addr 0x%x-0x%x set to %d type @ %d\n",
- begin, begin + desc->step, type, type_index);
+ begin, begin + desc->step - 1, type, type_index);
if (type == MTRR_TYPE_WRBACK)
type |= MTRR_FIXED_WRBACK_BITS;
fixed_mtrr_types[type_index] = type;
@@ -905,7 +905,7 @@ void mtrr_use_temp_range(uintptr_t begin, size_t size, int type)
if (commit_var_mtrrs(&sol) < 0)
printk(BIOS_WARNING, "Unable to insert temporary MTRR range: 0x%016llx - 0x%016llx size 0x%08llx type %d\n",
- (long long)begin, (long long)begin + size,
+ (long long)begin, (long long)begin + size - 1,
(long long)size, type);
else
need_restore_mtrr();