Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: [netbsd-6] src/usr.sbin/cpuctl



Module Name:    src
Committed By:   snj
Date:           Fri Jan 16 08:30:51 UTC 2015

Modified Files:
        src/usr.sbin/cpuctl [netbsd-6]: cpuctl.8 cpuctl.c cpuctl.h
        src/usr.sbin/cpuctl/arch [netbsd-6]: i386-asm.S i386.c x86_64-asm.S

Log Message:
Pull up following revision(s) (requested by msaitoh in ticket #1230):
        usr.sbin/cpuctl/cpuctl.8: revisions 1.9-1.12
        usr.sbin/cpuctl/cpuctl.c: revisions 1.22-1.23 and 1.25 via patch
        usr.sbin/cpuctl/cpuctl.h: revision 1.5 via patch
        usr.sbin/cpuctl/arch/cpuctl_i386.h: revisions 1.1-1.2
        usr.sbin/cpuctl/arch/i386-asm.S: revisions 1.2-1.3
        usr.sbin/cpuctl/arch/i386.c: revisions 1.34, 1.36-1.49, 1.51-1.63 via patch
        usr.sbin/cpuctl/arch/x86_64-asm.S: revisions 1.3-1.4
Update cpuctl(8). Microcode and ARM related changes are not included:
- Change the i386 asm x86_identify() so it returns a value instead of
  writing into global data. Fix a stack alignment fubar that would
  cause a crash on a cirix 486. Refactor identify code to common setup
  for normal identify and ucode identify - which was missing a
  memset().
- The Intel and AMD docs (more or less) agree on how the cpuid
  'extended family' and 'extended model' bits are used to create
  larger values than the original 16bit value allowed for.
  Calculate and save these values 'up-front' and use them throughout.
  Untangle the (backwards) nested switch statement for amd 'model 15'
  cpus.
- Use full model number to index name strings - a lot of 256 element
  arrays don't matter in usespace.
- Add support for the xsave related data from cpuid 8.n.
  Reorder the output so that the 'brand' string - which actually
  identifies the cpu is output first.
- Only complain about binding if we have more than 1 cpu.
- Check cpuid leaf 4 for newer Intel CPU to know the cache information.
- Support prefetch size.
- Print the highest extended info level as the basic info level.
- Update URL of AMD's web page.
- Add code to detect hypervisor. The code was based from FreeBSD and
  ported by Kengo Nakahara.
- Add verbose flag.
- Add newline if ci_tsc_freq is 0 to not to break the output.
- Update Intel's processor family names and models.
- Print some more bits.
- Add shared TLB
- Add prototypes.
- Add comments.
- Make some functions static.
- Sort functions.
- KNF.


To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.8.2.1 src/usr.sbin/cpuctl/cpuctl.8
cvs rdiff -u -r1.20 -r1.20.2.1 src/usr.sbin/cpuctl/cpuctl.c
cvs rdiff -u -r1.2 -r1.2.10.1 src/usr.sbin/cpuctl/cpuctl.h
cvs rdiff -u -r1.1 -r1.1.24.1 src/usr.sbin/cpuctl/arch/i386-asm.S
cvs rdiff -u -r1.27.2.4 -r1.27.2.5 src/usr.sbin/cpuctl/arch/i386.c
cvs rdiff -u -r1.2 -r1.2.20.1 src/usr.sbin/cpuctl/arch/x86_64-asm.S

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.




Home | Main Index | Thread Index | Old Index