Re: How do we find out the bus width of a processor ?

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

 



Hi,

I just want to confirm this:

In cpufeatures.h (http://lxr.linux.no/source/include/asm-i386/cpufeature.h#L1)
the NCAPSINTS is the Number of Words (32-bits) of CPU info that we have.
It is defined to be 7, but we are using 6?

Secondly, How do we obtain these features from the Hardware ??
A comment there says:
/* Intel-defined CPU features, CPUID level 0x00000001 (ecx), word 4 */

  1. What does CPUID Level mean here?
  2. What is the role of ECX here.. ?
         * Does ECX contain this info at a particular point after boot
           time or something similar ?


About data bus width: I looked at the identify_cpu() and generic_identify() they all talk about the CPU features mentioned in the cpufeatures.h which I think doesn't talk about the bus width (or does it?). Hence still no info regarding Data Bus Width!

Thanks for your time,
-Manav

Gaurav Dhiman wrote:
> In kernel mode, you can detect the type of processor. For details on
> this see the kernel function at following link:
> http://lxr.linux.no/source/arch/i386/kernel/cpu/common.c#L320
>
> regrds,
> -Gaurav
>
>
> On 2/21/06, Manav Kataria <manav@xxxxxxxxxxxxx> wrote:
>>
>> How do we find out the bus width of a processor ?
>>
>> Is there anything other than
>>     > uname -a
>> that might be able to hint this ?
>>
>> MK.
>


--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux