Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 9 Feb 2006 09:10:54 +0000 (UTC)
From:      Yar Tikhiy <yar@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/sys/i386/i386 identcpu.c
Message-ID:  <200602090910.k199As8E084788@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
yar         2006-02-09 09:10:54 UTC

  FreeBSD src repository

  Modified files:
    sys/i386/i386        identcpu.c 
  Log:
  Avoid calling CPUID function 0x02 if the CPU reports no support for
  it.  The former code used to hang older Intel CPUs by trying to get
  non-existent TLB info 2^32 times.
  
  Reduce code duplication around the calls to CPUID 0x02 by using
  do-while loops.
  
  PR:             i386/92977
  Tested by:      cy
  
  Revision  Changes    Path
  1.158     +24 -49    src/sys/i386/i386/identcpu.c



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200602090910.k199As8E084788>