lkml.org 
[lkml]   [1999]   [Nov]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: new bootmem structure
Hi,

On Mon, 1 Nov 1999, Linus Torvalds wrote:

> > Second, I would like to get a final answer on the purpose of the __pa/__va
> > macros. So far I thought they could be used for fast address conversion
> > on kernel memory, but since they not widely used in the kernel, they
> > basically dummys in the m68k port. But bootmem.c uses them now quite often
> > and in the new pre-patch I see that the arm people did change these macros
> > and it makes no sense to me, except that it seems they want to get the
> > bootmem stuff working with virtual addresses (or better a faked continuous
> > physical address range).
>
> This is just Ingo being bad. He should have used virt_to_phys() and
> friends, not __pa().

That's not really a problem, if we could define that __pa()/__va() works
only specific memory areas and is completly undefined for others (except
for __va(), see other mail for that).

bye, Roman


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:54    [W:0.090 / U:1.472 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site