* Anders Langworthy <[EMAIL PROTECTED]> [2007-11-23 18:56:35]:

> Copyright (c) 1982, 1986, 1989, 1991, 1993
>       The Regents of the University of California.  All rights reserved.
> Copyright (c) 1995-2007 OpenBSD. All rights reserved.
> http://www.OpenBSD.org
>
> OpenBSD 4.2-current (RAMDISK_CD) #539: Thu Nov 15 19:28:35 MST 2007
> [EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/RAMDISK_CD
> cpu0: Transmeta Efficeon(tm) Processor TM8000 ("GenuineTMx86" 386-
> class) 1.60 GHz
> cpu0:
> FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUS
> H,ACPI,MMX,FXSR,SSE,SSE2,SS,TM
> NOTICE: this kernel does not support i386 CPU class
> panic: no appropriate CPU class available
>

This should do it, however I don't do this kernel stuff too often.
Take from that what you will.


--- /usr/src/sys/arch/i386/i386/machdep.c       2007/11/24 05:34:44     1.1
+++ /usr/src/sys/arch/i386/i386/machdep.c       2007/11/24 06:54:34
@@ -922,15 +922,15 @@
                        },
                        tm86_cpu_setup
                },
-               /* Family 6, not yet available from Transmeta */
+               /* Family 6 */
                {
                        CPUCLASS_686,
                        {
+                               "TM8000", 0, "TM8000", "TM8000", 0, 0, 0, 0,
                                0, 0, 0, 0, 0, 0, 0, 0,
-                               0, 0, 0, 0, 0, 0, 0, 0,
-                               "686 class"             /* Default */
+                               "TM8000"                /* Default */
                        },
-                       NULL
+                       tm86_cpu_setup
                } }
        },
        {
@@ -1493,7 +1493,7 @@
 void
 tm86_cpu_setup(struct cpu_info *ci)
 {
-#if !defined(SMALL_KERNEL) && defined(I586_CPU)
+#if !defined(SMALL_KERNEL) && defined(I586_CPU) || defined(I686_CPU)
        longrun_init();
 #endif
 }

-- 
Travers Buda

Reply via email to