linux-mips
[Top] [All Lists]

Re: [PATCH] cleanup hardcoding __pa/__va macros etc. (take-2)

To: girishvg@gmail.com
Subject: Re: [PATCH] cleanup hardcoding __pa/__va macros etc. (take-2)
From: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
Date: Tue, 26 Sep 2006 18:02:40 +0900 (JST)
Cc: linux-mips@linux-mips.org
In-reply-to: <C13EBDF2.724C%girishvg@gmail.com>
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <20060926.004318.68160600.anemo@mba.ocn.ne.jp> <C13EBDF2.724C%girishvg@gmail.com>
Sender: linux-mips-bounce@linux-mips.org
On Tue, 26 Sep 2006 11:22:26 +0900, girish <girishvg@gmail.com> wrote:
> The idea is to differentiate the Kseg0/Kseg1 segments in the physical area.
> Beyond these areas lies the mapped area (or the HIGHMEM). What complicates
> this matter further is their overlapping nature. The __pa()/__va() treated
> all addresses mapped into PAGE_OFFSET (8000_0000) area. The effort is to
> correctly differentiate these areas.

Yes, __va() and __pa() are used to convert an physical address from/to
an kernel logical address (i.e. low unmapped virtual address).

I think passing another sort of addresses to them is simply wrong.

P.S.
Please do not reply to git-commits@linux-mips.org.
---
Atsushi Nemoto

<Prev in Thread] Current Thread [Next in Thread>