From owner-freebsd-current Mon Dec 25 07:04:01 1995 Return-Path: owner-current Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id HAA18772 for current-outgoing; Mon, 25 Dec 1995 07:04:01 -0800 (PST) Received: from Root.COM (implode.Root.COM [198.145.90.17]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id HAA18765 for ; Mon, 25 Dec 1995 07:03:56 -0800 (PST) Received: from corbin.Root.COM (corbin [198.145.90.50]) by Root.COM (8.6.12/8.6.5) with ESMTP id HAA00189; Mon, 25 Dec 1995 07:03:53 -0800 Received: from localhost (localhost [127.0.0.1]) by corbin.Root.COM (8.7.3/8.6.5) with SMTP id HAA03417; Mon, 25 Dec 1995 07:03:56 -0800 (PST) Message-Id: <199512251503.HAA03417@corbin.Root.COM> To: NIIMI Satoshi cc: current@freebsd.org Subject: Re: wrong cpu identification on -current In-reply-to: Your message of "Tue, 26 Dec 95 00:01:11 +0900." <199512251501.AAA00306@us.and.or.jp> From: David Greenman Reply-To: davidg@Root.COM Date: Mon, 25 Dec 1995 07:03:55 -0800 Sender: owner-current@freebsd.org Precedence: bulk >-current kernel identifies my 486 to be 686. The wrong code is in >$Id: locore.s,v 1.57 1995/12/24 08:10:39 davidg Exp $. > >fix is here > >--- locore.s.orig Mon Dec 25 23:49:32 1995 >+++ locore.s Mon Dec 25 23:51:27 1995 >@@ -366,7 +366,7 @@ > andw $0x08d5,%cx > cmpw %ax,%cx > >- jnz 2f # if flags changed, Intel chip >+ jnz 3f # if flags changed, Intel chip > > movl $CPU_486DLC,_cpu-KERNBASE # set CPU value for Cyrix > movl $0x69727943,_cpu_vendor-KERNBASE # store vendor string >@@ -428,7 +428,7 @@ > movl %eax,%cr0 > invd > #endif /* CYRIX_CACHE_WORKS */ >- jmp 2f >+ jmp 3f > > 1: /* Use the `cpuid' instruction. */ > xorl %eax,%eax Thanks, but the problem has already been fixed. -DG