From: Dan Malek <dan@netx4.com>
To: Pavel Roskin <proski@gnu.org>
Cc: Dan Malek <dan@netx4.com>, "Mark S. Mathews" <mark@absoval.com>,
linuxppc-embedded@lists.linuxppc.org
Subject: Re: Can't mmap the top 1MB of /dev/mem?
Date: Thu, 22 Jun 2000 14:54:29 -0400 [thread overview]
Message-ID: <395260E5.C7592DE3@embeddededge.com> (raw)
In-Reply-To: Pine.LNX.4.21.0006221435370.3102-100000@sunapee.transcept.com
Pavel Roskin wrote:
> I know that program. FLASH_MEM_SIZE is a small number used only in the
> first mmap() to determine the size of the flash.
Yes, but then it re-maps based upon the flash devices found....but I'll
bet I don't map the top boot sector.......
> ..... If you make it so big
> that (int)(FLASH_MEM_ADDR+FLASH_MEM_SIZE)==0 then mmap() fails.
So, this should be a pretty obvious boundary condition bug in
drivers/char/mem.c or one of the Linux MM functions. You want to
learn about MMUs? Go check some of those files for inspiration......
-- Dan
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
next prev parent reply other threads:[~2000-06-22 18:54 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-06-22 17:15 Can't mmap the top 1MB of /dev/mem? Mark S. Mathews
2000-06-22 17:43 ` Dan Malek
2000-06-22 18:47 ` Pavel Roskin
2000-06-22 18:54 ` Dan Malek [this message]
2000-06-22 19:58 ` Pavel Roskin
2000-06-22 21:46 ` Dan Malek
2000-06-22 19:00 ` Mark S. Mathews
2000-06-22 19:37 ` Pavel Roskin
2000-06-22 19:50 ` Mark S. Mathews
2000-06-22 20:24 ` Pavel Roskin
2000-06-22 17:50 ` Pavel Roskin
2000-06-22 18:14 ` Frank Smith
2000-06-22 18:37 ` Dan Malek
2000-06-22 19:06 ` Frank Smith
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=395260E5.C7592DE3@embeddededge.com \
--to=dan@netx4.com \
--cc=linuxppc-embedded@lists.linuxppc.org \
--cc=mark@absoval.com \
--cc=proski@gnu.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.