Re: need help in 64-bit code

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

 



Hi Thomas,
sorry for the  late reply.
#ifdef CONFIG_64
*(SysAddr + num_items) = (0xaa55aa55aa000000 + num_items);
#else
*(SysAddr + num_items) = (0x11220000 + (num_items));
#endif
If it is 64 but system i should assign 64 bit or else 32 bit data.
Can i have any other option/method ?
    

If you need to do that, it's almost certain that something's wrong with
your code. You should not need to do that.
  
The above is a part of my  simple test application for an API. I need to write data 64/32 bit as per the 64/32 bit system to test the APIs . So assigning as above.

Thanks
Sudheer


[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