Date: Tue, 26 Dec 1995 00:01:11 +0900 (JST) From: NIIMI Satoshi <sa2c@and.or.jp> To: current@freebsd.org, davidg@freebsd.org Subject: wrong cpu identification on -current Message-ID: <199512251501.AAA00306@us.and.or.jp>
next in thread | raw e-mail | index | archive | help
-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 Thanx, Satoshi -- NIIMI Satoshi
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199512251501.AAA00306>