public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: William Lee Irwin III <wli@holomorphy.com>
To: "Martin Schlemmer [c]" <azarah@nosferatu.za.org>
Cc: Norbert Preining <preining@logic.at>,
	linux-kernel@vger.kernel.org, luc@saillard.org,
	Andrew Morton <akpm@osdl.org>
Subject: Re: rc4-mm1 and pwc-unofficial: kernel BUG and scheduling while atomic [u]
Date: Sun, 17 Oct 2004 13:13:35 -0700	[thread overview]
Message-ID: <20041017201335.GC5607@holomorphy.com> (raw)
In-Reply-To: <1098043065.15115.13.camel@nosferatu.lan>

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

      reply	other threads:[~2004-10-17 20:15 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-10-17  7:36 rc4-mm1 and pwc-unofficial: kernel BUG and scheduling while atomic Norbert Preining
2004-10-17  9:30 ` William Lee Irwin III
2004-10-17 18:22   ` William Lee Irwin III
2004-10-17 18:35   ` rc4-mm1 and pwc-unofficial: kernel BUG and scheduling while atomic [u] Martin Schlemmer [c]
2004-10-17 19:00     ` William Lee Irwin III
2004-10-17 19:57       ` Martin Schlemmer [c]
2004-10-17 20:13         ` William Lee Irwin III [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20041017201335.GC5607@holomorphy.com \
    --to=wli@holomorphy.com \
    --cc=akpm@osdl.org \
    --cc=azarah@nosferatu.za.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=luc@saillard.org \
    --cc=preining@logic.at \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox