Andi Kleen <[EMAIL PROTECTED]> wrote on 09.02.2005 11:31:39:

> > As you mention sys_shmget, I'm currently trying to find out why the
> > second argument of sys_ipc for ppc64, s390-64 and sparc64 has been
> > changed from "long" to "int". This limits the maximum size of a shared
> > memory segment to 2GB for the three archs. A cast to unsigned would
> > allow 4GB, still not enough for a 64 bit architecture in the long run.
> > Before I submit a patch to replace "int" with "long" again I'd like
> > to understand the reason for the change.
>
> I don't know. Look up the Cset at linux.bkbits.net and if it's not clear
> from the description ask the submitter?

Wasn't that easy because arch/s390x/.. isn't under revision control anymore.
Everything in arch/s390x and include/asm-s390x has been removed with 2.5.68.
This is at the same time the revision the shmget bug has been introduced to
s390-64. The second parameter of sys_ipc has been a "long" in the s390x version
of sys_s390.c until s390x got merged into s390 with the step from 2.5.67
to 2.5.68.
That explains it for s390-64 and I'll fix this by changing "int second" to
"unsigned long second" and adding a few casts. While I'm at it I'll fix this
for ppc64 and sparc64 as well.

blue skies,
   Martin

Martin Schwidefsky
Linux for zSeries Development & Services
IBM Deutschland Entwicklung GmbH

Reply via email to