Date: Fri, 19 Nov 1999 19:45:03 -0500 (EST) From: Byung Yang <freebsd@nowcool.dhs.org> To: Jeroen Ruigrok/Asmodai <asmodai@wxs.nl> Cc: freebsd-current@FreeBSD.ORG Subject: Re: cpu name Message-ID: <Pine.BSF.4.10.9911191941310.3808-100000@nowcool.dhs.org> In-Reply-To: <19991119073255.A37588@daemon.ninth-circle.org>
next in thread | previous in thread | raw e-mail | index | archive | help
as I see the source code, it is not doing what it is supposed to do.. any
suggestions? (it's not a big deal but still it's a bug)
I did not modify any of the source codes.
Byung
On Fri, 19 Nov 1999, Jeroen Ruigrok/Asmodai wrote:
> -On [19991119 04:02], Byung Yang (freebsd@nowcool.dhs.org) wrote:
> >supped && made world a min ago:
> >check out the CPU: name
> >I am using AMD K6-2 333Mhz
>
> >-----------------------------------------------------------
> >CPU: \^E (334.40-MHz 586-class CPU)
> > Origin = "AuthenticAMD" Id = 0x580 Stepping = 0
> > Features=0x8001bf<FPU,VME,DE,PSE,TSC,MSR,MCE,CX8,MMX>
> > AMD Features=0x80000800<SYSCALL,3DNow!>
>
> I made world yesterday morning on two boxes, both are GenuineIntel and
> have no problems whatsoever.
>
> Looking at /usr/src/sys/i386/i386/identcpu.c I see that the 0x580 is:
>
> case 0x580:
> strcat(cpu_model, "K6-2");
> break;
>
> Which gets copied into:
>
> printf("CPU: ");
> strncpy(cpu_model, i386_cpus[cpu].cpu_name, sizeof cpu_model);
>
> But I can't find anything remotely related that would corrupt the
> strncpy to print \^E.
>
> --
> Jeroen Ruigrok van der Werven/Asmodai asmodai(at)wxs.nl
> The BSD Programmer's Documentation Project <http://home.wxs.nl/~asmodai>
> Network/Security Specialist BSD: Technical excellence at its best
> I succeed him; no one could replace him.
>
>
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-current" in the body of the message
>
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.10.9911191941310.3808-100000>
