From: Fawad Lateef <fawadlateef@gmail.com>
To: Vivek Kutal <vivek.kutal@gmail.com>
Cc: Ingo Oeser <ioe-lkml@rameria.de>, linux-kernel@vger.kernel.org
Subject: Re: Need for SHIFT and MASK
Date: Mon, 10 Oct 2005 21:49:38 +0500 [thread overview]
Message-ID: <1e62d1370510100949j774bf639k7bb65b347145ecfe@mail.gmail.com> (raw)
In-Reply-To: <b9a245c10510100613m442d93f4gbbec00799dc3b1b9@mail.gmail.com>
On 10/10/05, Vivek Kutal <vivek.kutal@gmail.com> wrote:
> > And as far as SHIFT, MASK, SIZE macros are concerned they are used in
> > creating Page Translation Tables and also used to get the translation
> > from linear to physical
>
> how are these macros used to create page translation tables (functions
> like pgd_alloc(), pmd_alloc() & pte_alloc() are used for this
> purpose)and the translation (virtual/linear to physical)is done by
> the processor and not by the OS.
>
>
Actually I don't mean by mentioning "SHIFT, MASK, SZIE macros are used
in creating Page Translation Table" that you will see them in
pgd_alloc() etc but they are used in many memory initialization
fucntions at the boot time ...... and for example look
http://lxr.linux.no/source/arch/i386/mm/init.c#L207 !!!!!! These
Macros are might be there for the compatibility reasons tooo as you
can see the PAGE_SIZE can be changed but if you use PAGE_SIZE in every
module/place you won't be concerned about the actual size of the page
at that moment or in Architecture ...........
--
Fawad Lateef
next prev parent reply other threads:[~2005-10-10 16:49 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-10-09 12:02 Vivek Kutal
2005-10-09 12:23 ` Ingo Oeser
2005-10-09 18:40 ` Vivek Kutal
2005-10-10 0:21 ` Fawad Lateef
2005-10-10 13:13 ` Vivek Kutal
2005-10-10 16:49 ` Fawad Lateef [this message]
2005-10-10 14:37 ` Denis Vlasenko
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=1e62d1370510100949j774bf639k7bb65b347145ecfe@mail.gmail.com \
--to=fawadlateef@gmail.com \
--cc=ioe-lkml@rameria.de \
--cc=linux-kernel@vger.kernel.org \
--cc=vivek.kutal@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
all inboxes | Powered by JetHome®