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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user