linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: Dan Malek <dan@embeddededge.com>
To: Richard Williams <richard_williams@stratexnet.com>
Cc: Steven Scholz <steven.scholz@imc-berlin.de>,
	LinuxPPC <linuxppc-embedded@lists.linuxppc.org>
Subject: Re: uncached user space mapping with mmap() ???
Date: Thu, 04 Mar 2004 18:17:27 -0500	[thread overview]
Message-ID: <4047B907.5070902@embeddededge.com> (raw)
In-Reply-To: A3240F62EF3C2749B1A25D3BC9548F4103EED2@ExchWENZ02.wenz.global.vpn


Richard Williams wrote:

> I just tried this using pread....

No, no.

Open /dev/mem and use mmap() to map your physical address:

   mmap(NULL, <page_size_bytes>, (PROT_READ|PROT_WRITE), MAP_SHARED, mem_fd, phys_addr);


Then, use the pointer returned from mmap() as the base of your
registers.


	-- Dan


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

  reply	other threads:[~2004-03-04 23:17 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-03-04 23:02 uncached user space mapping with mmap() ??? Richard Williams
2004-03-04 23:17 ` Dan Malek [this message]
  -- strict thread matches above, loose matches on Subject: below --
2004-03-09 12:49 Fillod Stephane
2004-03-12 12:07 ` Jon Masters
2004-03-08 10:25 Fillod Stephane
2004-03-09 10:55 ` Jon Masters
2004-03-04 14:47 Fillod Stephane
2004-03-04 14:51 ` Steven Scholz
2004-03-04 14:15 Fillod Stephane
2004-03-04 14:35 ` Steven Scholz
2004-03-04 17:28   ` Eugene Surovegin
2004-03-04 13:51 Steven Scholz
2004-03-04 17:00 ` Dan Malek
2004-03-05  8:18 ` Steven Scholz
2004-03-05 11:35   ` Jon Masters
2004-03-05 11:41     ` Steven Scholz
2004-03-05 13:21       ` Jon Masters

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4047B907.5070902@embeddededge.com \
    --to=dan@embeddededge.com \
    --cc=linuxppc-embedded@lists.linuxppc.org \
    --cc=richard_williams@stratexnet.com \
    --cc=steven.scholz@imc-berlin.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).