RE: using /dev/mem to access memory above 4GB

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

 



> I wrote a simple program to access physical memory or memory mapped devices. In x86 systems which support 36 bit addressing, it is possible to IO devices to have 
> memory mapped above the 4GB >address range. I used the mmap64 call to try and access the range of addresses above 4GB but is seems that the bits above 31 in the 
> offset field is being ignored. I am using a modified 2.6.9 kernel which comes in the Red Hat enterprise distribution. 
 
Are you using a 64-bit OS? If yes, mmap will default to mmap64. If you are not on a 64-bit complaint OS, you'd need to open /dev/mem with open64. Could you post the relevant parts of the code here so that we may have a look at what might be going wrong?

./h


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