Subject: Re: Frame buffer / mmap() weirdness
From: Momchil Velikov (velco@fadata.bg)
Date: Wed Dec 01 1999 - 08:06:01 MST
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
This archive was generated by hypermail 2a24 : Fri Dec 03 1999 - 19:07:46 MST