mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Ingo Oeser <ioe-lkml@rameria.de>
To: linux-kernel@vger.kernel.org
Cc: Vivek Kutal <vivek.kutal@gmail.com>
Subject: Re: Need for SHIFT and MASK
Date: Sun, 9 Oct 2005 14:23:10 +0200	[thread overview]
Message-ID: <200510091423.24660.ioe-lkml@rameria.de> (raw)
In-Reply-To: <b9a245c10510090502r4e87696fqe111c0071e7f2a03@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 665 bytes --]

Hi Vivek,

On Sunday 09 October 2005 14:02, Vivek Kutal wrote:
> While browsing through the code i came across macros like SHIFT , MASK
> , SIZE which are used in conversion from linear address to physical
> address
> but this is the job of the processor (address translation) then why do
> we have these macros
> can anyone please explain.

This is usally table driven and someone has to set up
this "Page Translation Tables". That's a job of the Linux kernel.

Just use sth. like Google to find out how it works 
or go to the library and read some books on OS design 
and virtual memory management.

Happy Studying!


Regards

Ingo Oeser


[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

  reply	other threads:[~2005-10-09 12:23 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 [this message]
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
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=200510091423.24660.ioe-lkml@rameria.de \
    --to=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®