From: Hollis Blanchard <hollis@austin.ibm.com>
To: David Gibson <david@gibson.dropbear.id.au>
Cc: paulus@samba.org, devel list <linuxppc-dev@lists.linuxppc.org>
Subject: Re: get_pteptr prototype
Date: 08 Jan 2003 09:48:48 -0600 [thread overview]
Message-ID: <1042040929.1021.80.camel@granite.austin.ibm.com> (raw)
In-Reply-To: <20030107005751.GP22215@zax.zax>
On Mon, 2003-01-06 at 18:57, David Gibson wrote:
>
> On Mon, Jan 06, 2003 at 04:59:26PM -0600, Hollis Blanchard wrote:
> > Hi, I think the prototype for get_pteptr should be moved to
> > asm/pgtable.h . It currently is declared extern in mm/fault.c, and I
> > will need it for platforms/ibm405lp_pm.c .
> >
> > Please apply to _2_4_devel and -2.5, and probably _2_4 for that matter.
>
> Hrm... what are you actually intending to use get_pteptr() for.
I use it to acquire the PTE pointer for a page I need to mark writable
(see the init function in
http://penguinppc.org/~hollis/405LP-sleep.diff). It's sort of like
CONFIG_XMON mapping the whole kernel writable, except I only need one
page. If you know of a better way, please let me know!
> There
> are currently only two users, one of which needs to die (in 2.5, at
> least). My experience has been that the concept of get_pteptr() is a
> great deal less useful that one would, at first, think.
It's simply a wrapper around successive pte/pmd/pgd_offset calls, with
some error checking. Are you saying those calls are not the correct way
to get the PTE pointer for an address?
-Hollis
--
PowerPC Linux
IBM Linux Technology Center
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
next prev parent reply other threads:[~2003-01-08 15:48 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-01-06 22:59 get_pteptr prototype Hollis Blanchard
2003-01-07 0:57 ` David Gibson
2003-01-08 15:48 ` Hollis Blanchard [this message]
2003-01-08 23:49 ` David Gibson
2003-01-09 0:11 ` Hollis Blanchard
2003-01-09 2:33 ` David Gibson
2003-01-09 15:55 ` Hollis Blanchard
2003-01-10 0:42 ` David Gibson
[not found] ` <1042107732.567.2.camel@zion.wanadoo.fr>
2003-01-09 16:53 ` 405LP sleep, no PTEs (was: get_pteptr prototype) Hollis Blanchard
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=1042040929.1021.80.camel@granite.austin.ibm.com \
--to=hollis@austin.ibm.com \
--cc=david@gibson.dropbear.id.au \
--cc=linuxppc-dev@lists.linuxppc.org \
--cc=paulus@samba.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).