From: Matt Porter <mporter@kernel.crashing.org>
To: Oliver King-Smith <oliver.king-smith@nuvation.com>
Cc: "'linuxppc-embedded@lists.linuxppc.org'"
<linuxppc-embedded@lists.linuxppc.org>
Subject: Re: Problem trying to address custom hardware
Date: Wed, 25 Aug 2004 10:40:59 -0700 [thread overview]
Message-ID: <20040825104059.B9986@home.com> (raw)
In-Reply-To: <FC3C0DD86B79DF4FA423AF0379A547610155436D@mailguy2.nuvation.com>; from oliver.king-smith@nuvation.com on Tue, Aug 24, 2004 at 04:10:15PM -0700
[your mailer is really bad and should be fixed, this required heavy editing]
On Tue, Aug 24, 2004 at 04:10:15PM -0700, Oliver King-Smith wrote:
> memfd = open("/dev/mem", O_RDWR);
> if (memfd){
> pCPLD = (CPLD_REGISTERS *) mmap(0,
> CPLD_SIZE, PROT_READ | PROT_WRITE, MAP_PRIVATE,
> memfd, CPLD_OFFSET);
Others addressed your core problem, but you should know that this
mmap request won't produce the desired result. You need MAP_SHARED
since MAP_PRIVATE will result in a COW when you attempt to modify
your register.
-Matt
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
next prev parent reply other threads:[~2004-08-25 17:40 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-08-24 23:10 Problem trying to address custom hardware Oliver King-Smith
2004-08-25 5:56 ` Eugene Surovegin
2004-08-25 17:40 ` Matt Porter [this message]
-- strict thread matches above, loose matches on Subject: below --
2004-08-25 7:50 Rupesh S
2004-08-25 22:29 Oliver King-Smith
2004-08-25 23:05 ` Matt Porter
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=20040825104059.B9986@home.com \
--to=mporter@kernel.crashing.org \
--cc=linuxppc-embedded@lists.linuxppc.org \
--cc=oliver.king-smith@nuvation.com \
/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).