From: Gerhard Jaeger <g.jaeger@sysgo.com>
To: linuxppc-embedded@ozlabs.org
Subject: Re: mmap bug (all archs) w/ fix
Date: Wed, 31 Jan 2007 14:34:10 +0100 [thread overview]
Message-ID: <200701311434.10906.g.jaeger@sysgo.com> (raw)
In-Reply-To: <200701310254.l0V2sh3L053534@penguin.ncube.com>
On Mittwoch, 31. Januar 2007, Michael Galassi wrote:
[SNIPSNAP]
> This clearly applies to all architectures and all versions (at least 2.4
> onward), could someone point me at some document which describes how to
> submit patches to "the right place" please? I really do not want to
> support any fixes myself so getting fixes to obvious bugs merged into
> the mailine code would be a good thing (tm).
>
IIRC, the problem is not the code that you try to fix, the problem is
the mmap call, which uses a signed 32 bit integer value for the offset
argument. And this one bites you when having addresses to map >
0x80000000 (I assume that you try to mmap an area somewhere @
0xF8000000-0xFFFFFFFF).
Try to use mmap2 call which overcomes this problem by using the page
size as unit of the offset argument instead of bytes.
So no patch is needed and you should be able ti map the flash.
HTH
Gerhard
--
Gerhard Jaeger <gjaeger@sysgo.com>
SYSGO AG Embedded and Real-Time Software
www.sysgo.com | www.elinos.com | www.pikeos.com | www.osek.de
prev parent reply other threads:[~2007-01-31 13:53 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-01-31 2:54 mmap bug (all archs) w/ fix Michael Galassi
2007-01-31 3:02 ` Dan Malek
2007-01-31 3:33 ` Michael Galassi
2007-01-31 13:34 ` Gerhard Jaeger [this message]
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=200701311434.10906.g.jaeger@sysgo.com \
--to=g.jaeger@sysgo.com \
--cc=linuxppc-embedded@ozlabs.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.