[PATCH]: ARM SHMLBA
Carmelo Amoroso
carmelo73 at gmail.com
Fri Nov 30 23:52:45 PST 2007
Paul Mundt wrote:
> 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.
>
Hi Paul,
do you mean passing the shm_alignment value from kernel
to ld.so through the auxvt ? if so, I could try to provide
a patch for the kernel and then update th ld.so to take care of this.
Let me know.
Regards,
Carmelo
> 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 ;-)
> _______________________________________________
> uClibc mailing list
> uClibc at uclibc.org
> http://busybox.net/cgi-bin/mailman/listinfo/uclibc
>
More information about the uClibc
mailing list