From: Andrei Warkentin <andrey.warkentin@gmail.com>
To: linuxppc-dev@ozlabs.org
Subject: Mac OpenFirmware 3.x questions.
Date: Mon, 19 Dec 2005 01:11:08 -0600 [thread overview]
Message-ID: <C8F35FC5-C2AC-496B-8062-DAD683ADBBC1@gmail.com> (raw)
Hello,
I was just wondering if I clearly understand the process of using the
client interface if I ever (in my kernel) decide to set up my own
virtual memory (or for that matter pretty much do anything that
involves modifying CPU state) -
1) Load saved OF-era SDR1, MSR, SPRGs, BATs, segment registers, SRR0,
SRR1, restore OF exception vectors.
2) Flush i/d caches.
3) Call client interface.
4) Load kernel SDR1, MSR, SPRGs, BATs, segment registers, SRR0, SRR1,
restore kernel exception vectors.
5) Flush i/d caches.
Does this seem reasonable? Do I need to save/restore anything else? I
understand that OF (3.x) lives in flash ROM, and only copies the
exception vectors from 0xfff----- down to 0x000----- - but where does
it store the page tables (as used by claim/release) and where is OF
physically/virtually? It would be pretty bad to wipe out OF's .bss or
whatever, or even worse... overwrite the flash itself. :)
Thanks and have a great day.
Andrei Warkentin
andrey.warkentin@gmail.com
Cell: (+1) (847) 321-15-55
Office: (+1) (312) 756-15-00 x614
reply other threads:[~2005-12-19 7:11 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=C8F35FC5-C2AC-496B-8062-DAD683ADBBC1@gmail.com \
--to=andrey.warkentin@gmail.com \
--cc=linuxppc-dev@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 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).