lkml.org 
[lkml]   [2004]   [May]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subjectvirt_to_page() with ioremap_nocache -> Ooops
Hello,

I have implemented mmap with (nopage), the mmaping consists of normal
memory from __get_free_pages (set to RESERVED) and some registers/memory
that are on a PCI card (bar0), i mapped it with ioremap_nocache to to be
able to read and write it in kernelspace.

I tried to use virt_to_page(address_from_ioremap_nocache + some_offset)
and gave this back from the (nopage) function, but this leads to an
Oops. (with the other memory it works)

Where is here my error?


Regards
Christian Leber

--
"Omnis enim res, quae dando non deficit, dum habetur et non datur,
nondum habetur, quomodo habenda est." (Aurelius Augustinus)
Translation: <http://gnuhh.org/work/fsf-europe/augustinus.html>
-
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 14:02    [W:0.029 / U:0.476 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site