[Top] [All Lists]

Re: PATCH: Fix offset of mmap

To: "H . J . Lu" <>
Subject: Re: PATCH: Fix offset of mmap
From: James Simmons <>
Date: Fri, 14 Sep 2001 10:27:20 -0700 (PDT)
In-reply-to: <>
> > I believe this would break certain pieces of hardware. For example the
> > mq200 framebuffer in the sigmarion is not paged aligned. You have to
> > supply a offset to make it work.
> How do you mmap a memory whose offset is not page aligned? The code
> here is
> return do_mmap2(addr, len, prot, flags, fd, offset >> PAGE_SHIFT);
>                                           ^^^^^^^^^^^^^^^^^^^^
> It is up to the user code to make sure everything is ok.

Sorry. Mix up in the meaning of offset. 

<Prev in Thread] Current Thread [Next in Thread>