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