This may fix Rudolf's MTRR problem - could you please try?

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16220 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler
2006-02-03 20:19:32 +00:00
parent 45de8176a5
commit 69149327b4
@@ -139,6 +139,10 @@ generic_mtrr_compute_physical_mask(void)
&& cpuInfo.eax_0.max_eax & 0xff >= 8) {
get_cpuid(&cpuInfo, 0x80000008, 0);
bits = cpuInfo.regs.eax & 0xff;
// Obviously, the bits are not always reported correctly
if (bits < 36)
bits = 36;
}
gPhysicalMask = ((1ULL << bits) - 1) & ~(B_PAGE_SIZE - 1);