lkml.org 
[lkml]   [1999]   [Jan]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Big Fix for 2.2.1
  From: alan@lxorguk.ukuu.org.uk (Alan Cox)
Date: Tue, 26 Jan 1999 23:38:07 +0000 (GMT)

> That identity makes no sense anyway. Not every "phys" address has a
> corresponding "virt" address. In my opinion, phys_to_virt should be
> removed, and the few drivers that use it changed to work properly.

phys_to_virt has uses in some cases. Consider the situation where a driver
posts you back the physical address of a kernel message buffer it has filled
in. But in general yes you are right.

Actually, it's bus_to_virt rather than phys_to_virt and in fact bus_to_virt is
used for precisely this reason in the BusLogic driver. The host adapter writes
CCB *bus* addresses into incoming mailboxes. I commented about the
phys_to_virt/virt_to_phys mapping issues since those are where the real work
takes place in the macros.

Leonard

-
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:50    [W:0.038 / U:0.192 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site