Package: kfreebsd-5
Severity: important
Tags: patch

kfreebsd-image-5-486 fails to boot on i586 or i686, and kfreebsd-image-5-585
fails to boot on i686.

>From src/sys/i386/i386/identcpu.c:

#if defined(I586_CPU)
[...]
#endif
#if defined(I686_CPU)
[...]
#endif
        default:
                printf("Unknown");      /* will panic below... */
        }
        printf("-class CPU)\n");

If the case that would identify the CPU is pre-processed out, then
"Unknown-class CPU" is printed, followed by a panic.

Solution is to provide 586 and 686 support on 486, etc.  Patch attached.

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.11-1-k7
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ANSI_X3.4-1968) (ignored: LC_ALL 
set to C)
diff -ur kfreebsd-5-5.4/config.old/486 kfreebsd-5-5.4/config/486
--- kfreebsd-5-5.4/config.old/486       2005-10-08 23:06:35.000000000 +0200
+++ kfreebsd-5-5.4/config/486   2005-10-08 23:19:50.000000000 +0200
@@ -3,6 +3,8 @@
 
 machine                i386
 cpu            I486_CPU
+cpu            I586_CPU
+cpu            I686_CPU
 ident          Debian-i486
 
 # To statically compile in device wiring instead of /boot/device.hints
diff -ur kfreebsd-5-5.4/config.old/586 kfreebsd-5-5.4/config/586
--- kfreebsd-5-5.4/config.old/586       2005-10-08 23:06:35.000000000 +0200
+++ kfreebsd-5-5.4/config/586   2005-10-08 23:20:02.000000000 +0200
@@ -3,6 +3,7 @@
 
 machine                i386
 cpu            I586_CPU
+cpu            I686_CPU
 ident          Debian-i586
 
 # To statically compile in device wiring instead of /boot/device.hints

Reply via email to