[Novalug] 64bit vs 32bit

DonJr djr1952 at hotpop.com
Tue Apr 8 13:37:51 EDT 2008


On Tue, 2008-04-08 at 11:46 -0400, Ivan wrote:

> According to this site, the docs are the source code:
> 
> http://www.linuxforums.org/forum/misc/59157-cpuinfo-flags.html
> 
> Specifically - '/usr/include/asm/cpufeature.h'
> 
> - Ivan

If that's the contents of your /usr/include/asm/cpufeature.h' file or
even close to it, you have an improper "include files" installation.

That file is suppose to contain something close to the following:
------- cut here ------
/* All asm/ files are generated and point to the corresponding
 * file in asm-i386 or asm-x86_64. To regenerate, run "generate-asm"
 */

#ifndef __i386STUB__CPUFEATURE_H__
#define __i386STUB__CPUFEATURE_H__

#ifdef __x86_64__
#include <asm-x86_64/cpufeature.h>
#else
#include <asm-i386/cpufeature.h>
#endif

#endif /* !__i386STUB__CPUFEATURE_H__ */
------- cut here --------

If the directory /usr/include/asm exists at all.

The file that defines the info itself is suppose to be located at:
  (kernel source code tree)include/asm-${CPUTYPE}/cpufeature.h

And "No '/usr/include/asm' isn't suppose to be a link into the kernel
source code tree."

For some more info on the 'lm' flag see:
<http://www.linuxquestions.org/questions/linux-general-1/proccpuinfo-flag-lm-358563/>

For information on the contents of /proc/cpuinfo see:
 <http://gentoo-wiki.com/Cpuinfo>

Or the comments in the file:
 (kernel source code tree)include/asm-${CPUTYPE}/cpufeature.h

Or if you only have the "kernel header" installed for your kernel then a
copy should be at:
 ls /usr/src/linux-headers*/include/asm-*/cpufeature.h


--  
-- 
 Don E. Groves, Jr. 

$ /usr/games/fortune : Domestic happiness and faithful friends.



More information about the Novalug mailing list