Re: Re: xfree86 4.5 cross compilation

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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, timr@xxxxxxxxx
>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@xxxxxxxxxxx
http://XFree86.Org/mailman/listinfo/devel

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [X Forum]     [XFree86]     [XFree86 Newbie]     [X.Org]     [IETF Annouce]     [Security]     [Fontconfig]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]

  Powered by Linux