linux-mips
[Top] [All Lists]

Re: struct sigcontext for N32 userland

To: "Atsushi Nemoto" <anemo@mba.ocn.ne.jp>
Subject: Re: struct sigcontext for N32 userland
From: "Franck Bui-Huu" <vagabon.xyz@gmail.com>
Date: Tue, 13 Feb 2007 09:27:20 +0100
Cc: linux-mips@linux-mips.org
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=H2he077f/C63Emob5alCc2T3DWI4iycOEKTca4rNVrq1qi4dMFNHyGkt41B4vTw9YsoWQ/cLi9xxvVvVHSeYCExs7jX6apBMEWBqlaPrNkVenAptqWoBW9g3pfcpY7wtcZqf5F31RHDkM6s+KUGCHevNrFZRTc6dT4milY/B8Ds=
In-reply-to: <20070213.005113.89067116.anemo@mba.ocn.ne.jp>
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <20070213.005113.89067116.anemo@mba.ocn.ne.jp>
Sender: linux-mips-bounce@linux-mips.org
On 2/12/07, Atsushi Nemoto <anemo@mba.ocn.ne.jp> wrote:
If N32 userland refers asm-mips/sigcontext.h, struct sigcontext cause
some troubles.

#if _MIPS_SIM == _MIPS_SIM_ABI64 || _MIPS_SIM == _MIPS_SIM_NABI32

struct sigcontext {
        unsigned long   sc_regs[32];
...


The kernel use 64-bit for sc_regs[0], and both N32/N64 userland
expects it was 64-bit.  But size of 'long' on N32 is actually 32-bit.
So this definition make some confusion.

glibc has its own sigcontext.h and it uses 'unsigned long long' for
sc_regs, so no real problem with glibc.


Just out of curiosity, for what purpose does the glibc use sigcontext ?


--
              Franck

<Prev in Thread] Current Thread [Next in Thread>