Dear Tim Roberts,

         
>What???  PAGE_MASK should equal the size of a physical memory page in
>bytes, minus one.  It varies based on the processor, but on most of the
>systems where Linux runs, PAGE_MASK should be 0xfff (4095 decimal)
>
>-- 
>Tim Roberts, [EMAIL PROTECTED]
>Providenza & Boekelheide, Inc.
 

If I do not remember wrongly, PAGE_MASK is definded as ~(PAGE_SIZE-1). It's the 
high bits of memory that defines the page address and ignores offset in pages. 
So
in a 4k pagesize system as default, PAGE_MASK = ~0xfff, not 0xfff.


= = = = = = = = = = = = = = = = = = = =
                 
                                 
Daniel(解利军)
CESC Lab, Zhejiang University
2005-12-29


_______________________________________________
Devel mailing list
Devel@XFree86.Org
http://XFree86.Org/mailman/listinfo/devel

Reply via email to