RFC: pagesize generalization patch

Paul Mundt lethal at linux-sh.org
Wed Aug 23 02:36:21 UTC 2006


On Wed, Aug 23, 2006 at 11:30:09AM +0900, Paul Mundt wrote:
> As far as cleaning this up once and for all, we could technically use
> AT_DCACHEBSIZE and AT_L1D_CACHESHAPE (masking off the lower 4 bits for
> the cache ways) to do run-time calculation for the mask if we're more
> interested in keeping SHMLBA tightly packed. At least for all of the
> architectures that need it, the > PAGE_SIZE case is limited to a few
> processors that have this problem. Having it hardcoded for a size that
> gaurantees alias avoidance is obviously the simple solution, though I'm
> fine with just stuffing the details into the ELF auxvt and setting a
> run-time mask as well.
> 
On a closer look, AT_L1D_CACHESHAPE by itself will suffice for this, no
need to bother with AT_DCACHEBSIZE..



More information about the uClibc mailing list