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

William Lee Irwin III
2004-10-17T20:15:03Z

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