On Fri, May 05, 2006 at 08:55:07PM +0530, sudheer wrote: > Hi Thomas, > > Thomas Petazzoni wrote: > > >Hi, > > > >Le Fri, 05 May 2006 18:02:48 +0530, > >sudheer <urwithsudheer@xxxxxxxxx> a ?crit : > > > > > > > >>To have the compatability i have used the macro CONFIG_X86_64 in > >>.config . > >> > >> > > > >Why do you need to differentiate code executed on 32 bits platforms > >from code executed on 64 bits platform ? Generally speaking, your code > >should be portable, and not rely on CONFIG_X86_64 or other options of > >the same kind. > > > > > > > I want to assign some data to a long pointer variable SysAdddr. > > #ifdef CONFIG_64 > *(SysAddr + num_items) = (0xaa55aa55aa000000 + num_items); > #else > *(SysAddr + num_items) = (0x11220000 + (num_items)); > #endif Why would you want to do that? What are you trying to do here? Do you have a link to your driver's source code? thanks, greg k-h -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/