mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 10:11:27 +01:00
Merge branch 'staging' of ssh://xenbits.xen.org/home/xen/git/xen into staging
This commit is contained in:
commit
bdf741bf4d
1 file changed
+12
@@ -182,6 +182,18 @@ static void __init print_mtrr_state(const char *level)
|
||||
else
|
||||
printk("%s %u disabled\n", level, i);
|
||||
}
|
||||
|
||||
if (boot_cpu_data.x86_vendor == X86_VENDOR_AMD
|
||||
&& boot_cpu_data.x86 >= 0xf) {
|
||||
uint64_t syscfg, tom2;
|
||||
|
||||
rdmsrl(MSR_K8_SYSCFG, syscfg);
|
||||
if (syscfg & (1 << 21)) {
|
||||
rdmsrl(MSR_K8_TOP_MEM2, tom2);
|
||||
printk("%sTOM2: %012"PRIx64"%s\n", level, tom2,
|
||||
syscfg & (1 << 22) ? " (WB)" : "");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* Some BIOS's are fucked and don't set all MTRRs the same! */
|
||||
|
||||