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/