I have a question about the SHMLBA alignment on shmat01 and shmat02.
At the end of setup():
/* some architectures (e.g. parisc) are strange, so better always align
to
* next SHMLBA address. */
base_addr =
(void *)(((unsigned long)(base_addr) + (SHMLBA - 1)) &
~(SHMLBA - 1));
This is what I think, please correct if I'm wrong.
Since shmget() creates the region of a multiple of PAGE_SIZE, the base_addr
after SHMLBA alignment does not guarantee to be available.
Furthermore, it should be kernel architecture code to take care of the D-cache
aliasing issue, just like SPARC, ARM, MIPS do.
Thanks.
Nobuhiro
------------------------------------------------------------------------------
Return on Information:
Google Enterprise Search pays you back
Get the facts.
http://p.sf.net/sfu/google-dev2dev
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list