mips sig_atomic_t

Warner Losh imp at bsdimp.com
Sun Dec 12 17:44:17 UTC 2010


On 12/12/2010 06:17, Tijl Coosemans wrote:
> Hi Warner,
>
> In mips/include/signal.h sig_atomic_t is defined as int. Do you know if
> this can be 64 bit on the N64 ABI like on other 64 bit archs? How about
> N32? For reference, the POSIX definition of sig_atomic_t states: possibly
> volatile-qualified integer type of an object that can be accessed as an
> atomic entity, even in the presence of asynchronous interrupts.
LD and SD can be used to load/store an aligned 64-bit word in a 
mips64-like ISA.  For mips32 ISAs, a 64-bit quantity is loaded/stored 
with two LW/SW instructions.

N64 and N32 can load/store these.  However, N32 has an int set to 
32-bits.  I think this is OK.

Warner



More information about the freebsd-mips mailing list