From: Ralf Baechle <ralf@linux-mips.org>
To: Rishabh@soc-soft.com
Cc: linux-mips@linux-mips.org
Subject: Re: Memory Management HAndling
Date: Fri, 11 Mar 2005 15:58:23 +0000 [thread overview]
Message-ID: <20050311155823.GC5958@linux-mips.org> (raw)
In-Reply-To: <4BF47D56A0DD2346A1B8D622C5C5902C61E22B@soc-mail.soc-soft.com>
On Fri, Mar 11, 2005 at 10:55:43AM +0530, Rishabh@soc-soft.com wrote:
> I have been working on MMU of Linux Port of 2.4.20 kernel for MIPS Port.
You may want to change to a kernel that has less than 52 months worth of
bugs and security holes.
> I have found that MACROS like
>
> #define __pa(x) ((unsigned long) (x) - PAGE_OFFSET)
> #define __va(x) ((void *)((unsigned long) (x) + PAGE_OFFSET))
> #define virt_to_page(kaddr) (mem_map + (__pa(kaddr) >> PAGE_SHIFT))
>
>
> These macros can handle memory pages in KSEG0. Any suggestions on how
> can they be changed for addressing memory present in HIGHMEM. Since VA
> will not be in linear relation with mem_map.
That's normal for highmem. These macros will only work for lowmem.
Ralf
prev parent reply other threads:[~2005-03-11 15:58 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-03-11 5:25 Memory Management HAndling Rishabh
2005-03-11 5:25 ` Rishabh
2005-03-11 13:36 ` Alan Cox
2005-03-11 15:59 ` Ralf Baechle
2005-03-11 17:06 ` Manish Lachwani
2005-03-11 17:22 ` Ralf Baechle
2005-03-11 15:58 ` Ralf Baechle [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=20050311155823.GC5958@linux-mips.org \
--to=ralf@linux-mips.org \
--cc=Rishabh@soc-soft.com \
--cc=linux-mips@linux-mips.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.