cvs commit: src/sys/i386/i386 identcpu.c

Yar Tikhiy yar at FreeBSD.org
Thu Feb 9 01:10:55 PST 2006


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


More information about the cvs-src mailing list