mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Paul Mackerras <paulus@samba.org>
To: tom_gall@vnet.ibm.com
Cc: linux-kernel@vger.kernel.org
Subject: Re: pmd_alloc, pte_alloc, Was Re: 2.4.3 and Alpha
Date: Fri, 20 Apr 2001 22:26:58 +1000 (EST)	[thread overview]
Message-ID: <15072.11026.385642.667425@argo.ozlabs.ibm.com.au> (raw)
In-Reply-To: <3AD77FBF.874F8305@vnet.ibm.com>
In-Reply-To: <E14oBht-0003dd-00@the-village.bc.nu> <3AD77FBF.874F8305@vnet.ibm.com>

tom_gall@vnet.ibm.com writes:

>   Basically in the pmd, it would seem that the current design in 2.4.3 forces
> you to have pointers in there. Currently in our source we're using offsets
> instead of a 64 bit pointer... this of course saved us from having to alloc 2
> contiguous pages in memory. 

Nope, the representation of the pgd/pmd/pte entries is entirely up to
you (us :).  The pmd entries for example are accessed through pmd_none,
pmd_present, pte_offset, etc., and are set with pmd_populate.  Those
functions are all defined in asm/pgtable.h and asm/pgalloc.c.  So you
can make the representation whatever you like as long as those
functions all do the right thing.  Same goes for the pgd and pte
levels.

Paul.

      parent reply	other threads:[~2001-04-20 12:26 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-04-13 21:12 Steffen Persvold
2001-04-13 22:06 ` Alan Cox
2001-04-13 22:37   ` pmd_alloc, pte_alloc, Was " tom_gall
2001-04-20 12:26   ` Paul Mackerras [this message]

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=15072.11026.385642.667425@argo.ozlabs.ibm.com.au \
    --to=paulus@samba.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=tom_gall@vnet.ibm.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

all inboxes | Powered by JetHome®