9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: Ronald G Minnich <rminnich@lanl.gov>
To: <9fans@cse.psu.edu>
Subject: [9fans] Question on mapping 0xfff00000
Date: Mon, 19 Mar 2001 23:06:26 -0700	[thread overview]
Message-ID: <Pine.LNX.4.30.0103192301070.1331-100000@white.acl.lanl.gov> (raw)


I need to map FLASH at 0xfff00000 into my flash driver. I have tried a
number of variations, and keep coming back to:

flashbase = upamalloc(0xfff00000, 0x100000, 0);

Return value is 0xfff00000. But, any reference to this address provokes a
fault, which leaves me believing I've got this wrong, even though a walk
through that code also looks like it does set up the PTEs in the right
way. The southbridge chip (PIIX4E) also has the right bits set to enable
FLASH at these high addresses, and I've tested those settings in Linux.

The general problem is to map the last 2M of the 32-bit address space into
memory, since on many boards that is the "reserved for BIOS flash" area.

What am I doing wrong? What's the right way to do this. I'm new to this
kernel, needless to say. I'm also very happy it is now open source ...

ron



             reply	other threads:[~2001-03-20  6:06 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-03-20  6:06 Ronald G Minnich [this message]
2001-03-21  1:30 jmk
2001-03-24  1:43 ` Ronald G Minnich

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=Pine.LNX.4.30.0103192301070.1331-100000@white.acl.lanl.gov \
    --to=rminnich@lanl.gov \
    --cc=9fans@cse.psu.edu \
    /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).