alpha div/rem and PAL/gentrap constants
Roland McGrath
roland@frob.com
Tue Jun 4 12:39:00 GMT 2002
> On Tue, Jun 04, 2002 at 02:56:13PM -0400, Roland McGrath wrote:
> > The files sysdeps/alpha/ldiv.S, sysdeps/alpha/div.S, sysdeps/alpha/divrem.h
> > use this and expect it to define the macros PAL_gentrap and GEN_INTDIV:
> >
> > #ifdef __linux__
> > # include <asm/gentrap.h>
> > # include <asm/pal.h>
> > #else
> > # include <machine/pal.h>
> > #endif
>
> Heh. This won't compile on OSF/1 either -- machine/pal.h contains
> only the PAL_code constants. There's a machine/gentrap.h that contains
> (modulo comments) exactly what's in the linux asm/gentrap.h.
That sounds reasonable.
> > Any opinions on which changes or new headers would be best to get libc to
> > compile for non-Linux on Alpha?
>
> I think it'd be nicer to add machine/gentrap.h for Hurd...
I can do that.
More information about the Libc-hacker
mailing list