kernelnewbies.kernelnewbies.org archive mirror
 help / color / mirror / Atom feed
* Error reading /dev/mem
@ 2016-09-27 19:49 Paddie O'Brien
  2016-10-01 17:45 ` Mulyadi Santosa
  2016-10-03 13:00 ` Arun Sudhilal
  0 siblings, 2 replies; 5+ messages in thread
From: Paddie O'Brien @ 2016-09-27 19:49 UTC (permalink / raw)
  To: kernelnewbies

Hi,

I have a system call that maps virtual to physical addresses. I have
disabled CONFIG_STRICT_DEVMEM and am reading from /dev/mem to verify
that the contents of the syscall-returned physical address match the
contents of the virtual address. It works fine up to a point. Reading
beyond byte 935321597 in /dev/mem throws a "bad address" error. Not
sure it's relevant but I'm running on virtual box and specifying 1GB
of RAM. Tried with 2GB of RAM and hit the same problem.

Any idea why I can't read beyond the above point?

Thanks.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2016-10-10  6:55 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-09-27 19:49 Error reading /dev/mem Paddie O'Brien
2016-10-01 17:45 ` Mulyadi Santosa
2016-10-03 10:00   ` Paddie O'Brien
2016-10-10  6:55     ` Mulyadi Santosa
2016-10-03 13:00 ` Arun Sudhilal

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).