Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 29 Oct 2001 14:09:54 -0000
From:      "cameron grant" <gandalf@vilnya.demon.co.uk>
To:        "John Baldwin" <jhb@FreeBSD.org>
Cc:        <freebsd-current@FreeBSD.ORG>, <freebsd-stable@FreeBSD.ORG>, <jerry@thehutt.org>, <peter@wemm.org>, <clefevre@citeweb.net>, <sobomax@FreeBSD.org>
Subject:   Re: adding athlon xp to bsd.cpu.mk
Message-ID:  <002101c16083$6ff87260$0504020a@haveblue>
References:  <XFMail.011028093414.jhb@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
> > from what i can see, identcpu.c fetches the cpu name using a cpuid
> > instruction.
>
> The part cpuid gives you is "AuthenticAMD".
> The fancy name is determined by switching on the Id.


read identcpu.c.  you are correct for k6 and lesser processors.  the code in
question is around line 323:
  do_cpuid(0x80000000, regs);
  nreg = regs[0];
  if (nreg >= 0x80000004) {
   do_cpuid(0x80000002, regs);
   memcpy(cpu_model, regs, sizeof regs);
   do_cpuid(0x80000003, regs);
   memcpy(cpu_model+16, regs, sizeof regs);
   do_cpuid(0x80000004, regs);
   memcpy(cpu_model+32, regs, sizeof regs);
  }

    -cg



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?002101c16083$6ff87260$0504020a>