Re: x86_32 or x86_64?

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

 



On 8/9/05, NAHieu <nahieu@xxxxxxxxx> wrote:

> No, my question is a little different: I want to know how to determine
> the hardware architecture of the machine (x86_32 or x86_64?) from
> kernel code.

32 bit architecture allocates 32 bits for a pointer type. 64 bit uses
the LP64 model which allocates a 64 bit storage space for pointers.
This could be a way to find out which architecture you are currently
on.

./h
-- 
Operating Systems and Computer Architecture Research  - University of Cincinnati
http://www.ececs.uc.edu/~mohapth

--
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