From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <38453959.F7D6F95D@fadata.bg> Date: Wed, 01 Dec 1999 17:06:01 +0200 From: Momchil Velikov MIME-Version: 1.0 To: Gabriel Paubert CC: Geert Uytterhoeven , Stephen Edie , linuxppc-dev@lists.linuxppc.org, yellowdog-devel@lists.yellowdoglinux.com Subject: Re: Frame buffer / mmap() weirdness References: Content-Type: text/plain; charset=us-ascii Sender: owner-linuxppc-dev@lists.linuxppc.org List-Id: Gabriel Paubert wrote: > > On Wed, 1 Dec 1999, Momchil Velikov wrote: > > [a & ~PAGE_MASK, (a + off + PAGE_SIZE - 1) & ~PAGE_SIZE) > > to > > [b & ~PAGE_MASK, (b + off + PAGE_SIZE - 1) & ~PAGE_SIZE) > > Some PAGE_SIZE are actually PAGE_MASK in this snippet... Oops, my PAGE fault. It should be [a & PAGE_MASK, (a + off + ~PAGE_MASK) & PAGE_MASK ) to [b & PAGE_MASK, (b + off + ~PAGE_MASK) & PAGE_MASK ) where PAGE_MASK == ~(PAGE_SIZE -1). Regards, -velco ** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/