1 May 2008 20:34
HP-UX 11i porting challenges: sigcontext structure really different ...
Frank Goenninger <frgo <at> mac.com>
2008-05-01 18:34:31 GMT
2008-05-01 18:34:31 GMT
Hi again - (I am still trying to get SBCL to work on HP-UX(Continue reading)So I have been hacking and tweaking and ... got stuck with compiling hppa-linux-os.c (which I now named hppa-hpux-os.c). The linux version says: os_context_register_t * os_context_register_addr(os_context_t *context, int offset) { if (offset == 0) { /* KLUDGE: I'm not sure, but it's possible that Linux puts the contents of the Processor Status Word in the (wired-zero) slot in the mcontext. In any case, the following is unlikely to do any harm: */ static int zero; zero = 0; return &zero; } else { return &(((struct sigcontext *) &(context->uc_mcontext))- >sc_gr[offset]); } } Now, looking at the HP-UX include files (deep, very deep down inside the /usr/include hierarchy
I find: /usr/include/machine/sys/sigcontext.h
So I have been hacking and tweaking and ... got stuck with compiling
hppa-linux-os.c (which I now named hppa-hpux-os.c).
The linux version says:
os_context_register_t *
os_context_register_addr(os_context_t *context, int offset)
{
if (offset == 0) {
/* KLUDGE: I'm not sure, but it's possible that Linux puts the
contents of the Processor Status Word in the (wired-zero)
slot in the mcontext. In any case, the following is
unlikely to do any harm: */
static int zero;
zero = 0;
return &zero;
} else {
return &(((struct sigcontext *) &(context->uc_mcontext))-
>sc_gr[offset]);
}
}
Now, looking at the HP-UX include files (deep, very deep down inside
the /usr/include hierarchy
RSS Feed