MTRR is no longer set on anything below AMD K6-2 model 9. This should fix bug #624.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17572 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler
2006-05-24 09:51:56 +00:00
parent 382084bd0a
commit cdffef9f01
+6 -1
View File
@@ -1,5 +1,5 @@
/*
* Copyright 2005, Haiku, Inc.
* Copyright 2005-2006, Haiku, Inc.
* Distributed under the terms of the MIT License.
*
* Authors:
@@ -30,6 +30,11 @@ amd_init(void)
if ((info.cpu_type & B_CPU_x86_VENDOR_MASK) != B_CPU_AMD_x86)
return B_ERROR;
// The K6-2 doesn't seem to support write-combining (before model 9),
// so we ignore anything before that one.
if (info.cpu_type <= B_CPU_AMD_K6_2)
return B_ERROR;
generic_mtrr_compute_physical_mask();
generic_dump_mtrrs(generic_count_mtrrs());