lkml.org 
[lkml]   [1997]   [Jan]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subjectvirt_to_phys for ioremap pages
using i386 2.0.27
I'd like to be able to use virt_to_phys()
on a pointer that was returned from ioremap [nee vremap].

on the i386 architecture, this doesn't work because
virt_to_phys is basically a no-op. I end up keeping around
the original physical address and doing the math of

(board_virtual_ptr - board_virtual_base) + board_physical_base

to "implement" the virt_to_phys() myself.

I'm concerned what will happen when I port to other architectures.
Will I be able to continue to do the math wtih the above function.
Can I ever count on virt_to_phys to work with ioremapped addresses?

Bob

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