Re: rc4-mm1 and pwc-unofficial: kernel BUG and scheduling while atomic [u]

From: William Lee Irwin III
Date: Sun Oct 17 2004 - 15:18:44 EST


On Sun, 2004-10-17 at 12:00 -0700, William Lee Irwin III wrote:
>> Only the third argument changed, from a physical address to a pfn.

On Sun, Oct 17, 2004 at 09:57:45PM +0200, Martin Schlemmer [c] wrote:
> Its the vesafb-tng patch
> (http://dev.gentoo.org/~spock/projects/vesafb-tng/)
> I did it as:
>
> ----
> vma.vm_mm = current->active_mm;
> vma.vm_page_prot.pgprot = PROT_READ | PROT_EXEC | PROT_WRITE;
>
> ret = remap_pfn_range(&vma, 0x000000, __pa(mem) >> PAGE_SHIFT, REAL_MEM_SIZE, vma.vm_page_prot);
> ret += remap_pfn_range(&vma, 0x0a0000, 0x0a0000, 0x100000 - 0x0a0000, vma.vm_page_prot);

You probably have to shift the physical address in the second call also.


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