changeset 18552:2d996eb065d4

On old WinChips Linux kernel use this to emulate MTRR, patch by Zuxy Meng < zuxy P meng A gmail P com>
author poirierg
date Wed, 31 May 2006 23:37:29 +0000
parents 19788635c281
children f85b5c5d5d18
files TOOLS/cpuinfo.c configure
diffstat 2 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/TOOLS/cpuinfo.c	Tue May 30 23:08:28 2006 +0000
+++ b/TOOLS/cpuinfo.c	Wed May 31 23:37:29 2006 +0000
@@ -275,6 +275,10 @@
     if (strstr(idstr, "Cyrix") &&
         (family == 5 && model < 4 || family == 6))
       printf(" %s", "cyrix_arr");
+    /* as well as centaur_mcr. */
+    if (strstr(idstr, "Centaur") &&
+        family == 5)
+      printf(" %s", "centaur_mcr");
  
     for (i = 0; cap_amd[i].bit >= 0; i++) {
       if (amd_flags & (1 << cap_amd[i].bit)) {
--- a/configure	Tue May 30 23:08:28 2006 +0000
+++ b/configure	Wed May 31 23:37:29 2006 +0000
@@ -842,7 +842,7 @@
 
   exts=`$_cpuinfo | egrep 'features|flags' | cut -d ':' -f 2 | _head 1`
 
-  pparam=`echo $exts | sed -e s/k6_mtrr/mtrr/ -e s/cyrix_arr/mtrr/ \
+  pparam=`echo $exts | sed -e s/k6_mtrr/mtrr/ -e s/cyrix_arr/mtrr/ -e s/centaur_mcr/mtrr/ \
                            -e s/xmm/sse/ -e s/kni/sse/`
 
   for ext in $pparam ; do