Re: sizeof (siginfo_t) problem

Jakub Jelinek (jakub@redhat.com)
Mon, 14 Jul 2003 13:14:01 -0400


On Tue, Jul 15, 2003 at 03:11:23AM +1000, Stephen Rothwell wrote:
> > This is not correct for the merged header.
> > It needs to be:
> > #ifdef __s390x__
> > #define __ARCH_SI_PREAMBLE_SIZE (4 * sizeof(int))
> > #endif
>
> OK, I can see that (although is __s390x__ defined when building a
> 32 (31?) bit kernel on a 64bit s390?).

__s390x__ is defined when doing 64-bit compile targetted to s390.
Ie. gcc -m64 defines it, gcc -m31 does not.

> > Furthermore, there needs to be a pad inserted fo arch/s390x/kernel/signal.c
> ^^^^^
> s390? (there is no arch/s390x in 2.6.0-test1)

Then that pad needs to be #ifdef __s390x__ as well.
>
> > (rt_sigframe right after info member) to keep binary compatibility.

Jakub
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/