lkml.org 
[lkml]   [2003]   [Jul]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subjectkernel 2.4x - getting physical address for pages in HIGHMEM
Date
Hi,

I am facing a lot of problems in trying to get the physical address(actually
bus address) from of page.

The most obvious answer, virt_to_bus(kmap(page)) seems to work for pages
that are NOT in high memory.

For pages in high memory, I have read up a lot of documentation, and mailing
list questions, but the only thing that seems to work for me is,
(page-mem_map)<<PAGE_SHIFT

Now, the mail i got this from says that this would work only when mem_map
[] starts at zero.

I am pretty confused here, this seems to be a obvious problem, why does
Linux not have a pretty macro or function that would work in all situations?

PS. please cc me in any answers, as I am not subscribed to this list.

Thanks
sumanesh

_________________________________________________________________
Protect your PC - get McAfee.com VirusScan Online
http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963

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

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