[PATCH]: ARM SHMLBA
Paul Mundt
lethal at linux-sh.org
Tue Nov 20 08:12:25 UTC 2007
On Tue, Nov 20, 2007 at 08:30:04AM +0100, Carmelo AMOROSO wrote:
> Khem Raj wrote:
> > -----BEGIN PGP SIGNED MESSAGE-----
> > Hash: SHA1
> >
> > Hi
> >
> > ARM SHMLBA = (4 * PAGE_SIZE). Currently in uclibc arm used shm.h from
> > common directory where SHMLBA = __getpagesize()
> >
> > This patch fixes the issue.
> >
> > OK for trunk ?
> >
> Same issue as SH4 (solved in the past).
"Solved" is relative. What's there now works, but it's a pretty idiotic
hack, and is certainly not solved for the multiple page size cases. The
current implementation is certainly sub-optimal for 8kB (SH-X2 and later)
and 64kB PAGE_SIZE (SH-4, SH-5, SH-X2 and later, etc.), and we really do
need to take the L1 shape in to account for handling this properly.
So it does work, but it will spread things out far more than they need to
be. Most of the information needed for fixing this properly can be
extracted from the ELF auxvt, though I never quite got around to
finishing up the code for that.
The "easy" solution is of course just growing SHMLBA to the point where
there isn't a problem anymore, and I expect this will be the continued
approach favoured by vendors until a proper fix is put in place ;-)
More information about the uClibc
mailing list