From: Ralf Baechle <ralf@linux-mips.org>
To: "Erik J. Green" <erik@greendragon.org>
Cc: linux-mips@linux-mips.org
Subject: Re: Where does physical RAM start in kseg0?
Date: Sun, 13 Apr 2003 04:25:29 +0200 [thread overview]
Message-ID: <20030413042529.A20034@linux-mips.org> (raw)
In-Reply-To: <1050200031.3e98c7df2c227@my.visi.com>; from erik@greendragon.org on Sun, Apr 13, 2003 at 02:13:51AM +0000
On Sun, Apr 13, 2003 at 02:13:51AM +0000, Erik J. Green wrote:
>
> A question about kseg0: Do system designers usually set things up such that
> kseg0 begins at the start of physical memory, regardless of the xkphys
> offset at which RAM starts?
XKPHYS and KSEG0 map the same physical address space so the offsets is
the same. Keep also in mind that XKPHYS maps the physical address space
8 times due to the 3 bits of the address that encode a caching mode.
> Or is it necessary to add the offset at which RAM starts to the kseg0 base,
> making it possible that the system designers could start RAM addresses high
> enough (above 512M) to make kseg0 unusable? Does anyone have an
> implementation in which this is the case?
There is no requirement at all for a system to have physical memory in
KSEG0 - the Octane to my knowledge one example. What every sane system
needs to have in KSEG0 are exception handlers. Of course they could also
reside in a ROM but that's insane so you should expect at least a few kb
of RAM at physical address zero.
> If kseg0 provides a window beginning at physical address 0, that means
> I'm going to try using Ralf's mapped kernel option, or I'll have to get
> the kernel up and running in 64 bit only mode (I believe 32 bit compat
> binaries would still work, since kuseg can be mapped).
Due to the Octane's funky address space layout and the current tools
limitations the kernel will have to run in CKSEG2 instead of KSEG0 ...
Ralf
next prev parent reply other threads:[~2003-04-13 2:25 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-04-13 2:13 Where does physical RAM start in kseg0? Erik J. Green
2003-04-13 2:25 ` Ralf Baechle [this message]
2003-04-13 2:28 ` Erik J. Green
2003-04-14 12:31 ` Maciej W. Rozycki
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=20030413042529.A20034@linux-mips.org \
--to=ralf@linux-mips.org \
--cc=erik@greendragon.org \
--cc=linux-mips@linux-mips.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox