I revised BlueLightning CPU patch because I found that there are
BlueLightning CPUs which do not change undefined flag by dividing 5 by 
2 like Intel CPUs.  After my obtaining test reports on *both* IBM
BlueLightning CPUs and old Intel 486 CPUs that do not support cpuid
instruction, I'll commit into current.  If the patch has side effect
on non-IBM CPU, of course, I'll discard it.

---------- BEGIN ----------
*** sys/i386/i386/identcpu.c.ORIG       Wed Aug 18 21:55:33 1999
--- sys/i386/i386/identcpu.c    Thu Aug 19 11:40:03 1999
***************
*** 852,857 ****
--- 852,871 ----
                                break;
                        }
                }
+       } else if (cpu == CPU_486 && *cpu_vendor == '\0') {
+               /*
+                * There are BlueLightning CPUs that do not change
+                * undefined flags by dividing 5 by 2.  In this case,
+                * the CPU identification routine in locore.s leaves
+                * cpu_vendor null string and puts CPU_486 into the
+                * cpu.
+                */
+               isblue = identblue();
+               if (isblue == IDENTBLUE_IBMCPU) {
+                       strcpy(cpu_vendor, "IBM");
+                       cpu = CPU_BLUE;
+                       return;
+               }
        }
  }
  
---------- END ----------

-----------------------------------------------+--------------------------+
KATO Takenori <[EMAIL PROTECTED]>  |        FreeBSD           |
Dept. Earth Planet. Sci, Nagoya Univ.          |    The power to serve!   |
Nagoya, 464-8602, Japan                        |  http://www.FreeBSD.org/ |
++++ FreeBSD(98) 3.2:   Rev. 01 available!     |http://www.jp.FreeBSD.org/|
++++ FreeBSD(98) 2.2.8: Rev. 02 available!     +==========================+


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message

Reply via email to