[Ilugc] need help in 64-bit code

  • From: urwithsudheer@xxxxxxxxx (sudheer)
  • Date: Fri May 5 18:03:07 2006

Hello All,

I am writing a driver and apis for it , these should  be compatible for 
32 bit and 64 bit system.

To have  the compatability i have used  the macro CONFIG_X86_64 in 
.config  .
But this macro is only working in driver.
 
Can any one tell me what should i do to make my user space files compatable.
At present i am using a user defined macro and changing it (define/ 
undef) every time i change the system.

Can i have common makefile for 2.4 and 2.6 driver module.
At present i am using 2 differnt makefiles and changing them when ever i 
cahnge the kernel.

Thanks
Sudheer

Other related posts: