From: "Erik J. Green" <erik@greendragon.org>
To: linux-mips@linux-mips.org
Subject: TLB mapping questions
Date: Sat, 19 Apr 2003 05:32:50 +0000 [thread overview]
Message-ID: <1050730370.3ea0df8263a21@my.visi.com> (raw)
Hello again, I have more newbie questions for you all.
I *think* I understand how the TLB translates addresses for ckseg2 in mips64.
Can someone tell me if my understanding is correct?
Given: Physical memory starts at 0x0000000020004000;
Therefore, an offset 0x2000 from the start of physical memory should be at
0x0000000020006000, or 0xa000000020006000 as a 64 bit xkphys address.
So if I construct a TLB entry such that cp0_entryhi is 0xffffffffc0002000, and
cp0_entrylo0 has a PFN address of 0x0000000020006, giving it the correct ASID
(0) and valid bitflags(VG), I should be able to access the physical memory
offset above using the ckseg2 virtual address 0xffffffffc0002000?
Again, if I understand this, the physical address to be referenced will be
constructed from the low order 12 bits of the ckseg2 address (in this case 000)
and the pfn address stored in the TLB entry giving 0x0000000020006000, which is
the physical RAM address. This is provided that I've constructed the TLB entry
correctly so that it's matched for the address reference given.
Of course, the reason I discuss all this is that the above doesn't work. =)
Erik
--
Erik J. Green
erik@greendragon.org
next reply other threads:[~2003-04-19 5:33 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-04-19 5:32 Erik J. Green [this message]
2003-04-19 14:48 ` TLB mapping questions Ralf Baechle
2003-04-20 2:30 ` Erik J. Green
2003-04-20 3:38 ` TLB mapping questions (followup q) Erik J. Green
2003-04-20 4:20 ` Erik J. Green
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=1050730370.3ea0df8263a21@my.visi.com \
--to=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