Subject: Re: 64-bit-clean userland on mips
To: Castor Fu <castor@geocast.net>
From: Jonathan Stone <jonathan@DSG.Stanford.EDU>
List: port-mips
Date: 01/19/1999 16:13:09
Castor Fu writes:

>This sounds good to me.  To make it more concrete,
>we could use the variable which I'd already defined in mips/include/types.h
>and have something like:

>#if defined(_MIPS_BSD_SIM) && _MIPS_BSD_SIM == _MIPS_SIM_ABIX32
>#define _JBLEN 120
>#define _JBOFFSETOF_SC_REGS     16
>#define _JBOFFSETOF_SC_FPREGS   292
>#define _JBOFFSETOF_SC_MASK     460
>#else
>#define _JBLEN 84
>#define _JBOFFSETOF_SC_REGS 12
>#define _JBOFFSETOF_SC_FPREGS 152
>#define _JBOFFSETOF_SC_MASK 320
>#endif

Hm.  I noticed this implicitly assumes sizeof(long) == 4.
Is it worth making this LP64-clean whilst we're in here?