lkml.org 
[lkml]   [2004]   [Oct]   [17]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
/
DateSun, 17 Oct 2004 02:30:18 -0700
FromWilliam Lee Irwin III <>
SubjectRe: rc4-mm1 and pwc-unofficial: kernel BUG and scheduling while atomic
On Sun, Oct 17, 2004 at 09:36:14AM +0200, Norbert Preining wrote:
> @@ -1618,7 +1618,7 @@
> pos = (unsigned long)pdev->image_data;
> while (size > 0) {
> page = kvirt_to_pa(pos);
> - if (remap_page_range(vma, start, page, PAGE_SIZE,
> PAGE_SHARED))
> + if (remap_pfn_range(vma, start, page, PAGE_SIZE, PAGE_SHARED))
> return -EAGAIN;
>
> start += PAGE_SIZE;
> the module compiled and loaded without problem, but when starting
> gnomemeeting I get the following kernel BUG and scheduling while atomic:

You need to right shift the argument by PAGE_SHIFT.


-- wli
-
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:07    [from the cache]
©2003-2009