| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
| |
When using the specific Cyrix call to determine the model, if the model
is unknown, let's consider the generic call was right.
This insure a better display of the model id.
|
|
|
|
|
| |
This code add the specific detection code for Cyrix/NSC processor.
Code came from the Linux kernel.
|
|
|
|
|
| |
It's safe to manage the unknown cpu as a regular one. This will avoid
weird behavior when CPU isn't well detected.
|
|
|
|
|
|
| |
Without this, cpu_detect(), and set_generic_info() would take 416
seconds on a soekris 4801 and hdt would report ?????????? as the
processor vendor.
|
|
|
|
| |
Let's zeroify everything and then init what is different from 0;
|
|
|
|
| |
The init code was nearly incorrect. Fixed regarding Shao's comments.
|
|
|
|
|
|
|
|
| |
This patch allow a program to parse the list of the cpu flags and
retrieve its values, name & comments.
I'd like to thank Shao Miller for helping me doing this code. He was
really helpful and a good support. Thx Shao !
|
|
|
|
| |
Let's zeroify it at init time.
|
|
|
|
|
| |
As reported by hpa, strlcpy is safer and could prevent some bugs.
So I replaced all strncpy by strlcpy calls.
|
|
|
|
|
|
|
| |
Only call CPUID function 4 if cpuid_level indicates its availability.
Signed-off-by: Sebastian Herbszt <herbszt@gmx.de>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
|
|
|
|
|
|
| |
Impact: Adding L1 & L2 cache detection
Adding L1 & L2 cache detection
|
|
|
|
|
|
| |
Impact: we are now able to detect the number of cpu cores
We can detect the number of cores using cpuid(4) or cpuid_ecx(0x80000008)
|
|
|
|
|
|
|
| |
Impact: sync with linux kernel
cpu flags are now in sync with the linux kernel. Too many flags were
missing.
|
|
|
|
|
|
| |
Impact: Hardware virtualization is now detected
Minor update to detect vmx & svm cpu flags
|
|
|
|
|
|
|
|
|
| |
Automatically reformat com32/gpllib/cpuid.c using Nindent.
Do this for all files except HDT, gPXE and externally maintained
libraries (zlib, tinyjpeg, libpng).
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
|
|
Fixing copyrights
Moving dmi includes to gplinclude/dmi
Moving dmi code to gpllib/dmi/
Moving cpuid includes to gplinclude/
Moving cpuid code to gpllib/
Fixing Makefiles accordingly
|