From: Benjamin Herrenschmidt <benh@kernel.crashing.org>
To: sumedh tirodkar <sumedhtirodkar@gmail.com>
Cc: linuxppc-dev@ozlabs.org
Subject: Re: hash-table creation...
Date: Sun, 08 Feb 2009 08:17:00 +1100 [thread overview]
Message-ID: <1234041420.31963.66.camel@pasglop> (raw)
In-Reply-To: <d2b9ccd90902062213l48c063e1gd536a347f1fbe861@mail.gmail.com>
On Sat, 2009-02-07 at 11:43 +0530, sumedh tirodkar wrote:
> Hello,
>
> I wanted algorithm for creating hash tables used in paging mechanism..
> In the manual that i read i got algorithm to convert Effective Address
> to Real Address using these hash tables that are created..but i could
> not find how these hash tables are created in first place using the
> Real addresses.
> Is there any document available for the same?
There's one MMU hash table. It's allocated & cleared by the kernel
during early boot or by the hypervisor and pointed to by the SDR1
register.
It's populated by code in arch/powerpc/mm/hash_low_64.S or
hash_low_32.S, typically as the result of a hash miss exception.
Ben.
next prev parent reply other threads:[~2009-02-08 1:40 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-02-07 6:13 hash-table creation sumedh tirodkar
2009-02-07 21:17 ` Benjamin Herrenschmidt [this message]
2009-02-23 7:56 ` sumedh tirodkar
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=1234041420.31963.66.camel@pasglop \
--to=benh@kernel.crashing.org \
--cc=linuxppc-dev@ozlabs.org \
--cc=sumedhtirodkar@gmail.com \
/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).