#include <stdio.h>
#include <sys/param.h>
#include <sys/file.h>
+#include "sbcl.h"
#include "./signal.h"
#include "os.h"
#include "arch.h"
#include "interrupt.h"
#include "interr.h"
#include "lispregs.h"
-#include "sbcl.h"
#include <sys/socket.h>
#include <sys/utsname.h>
#if defined(GLIBC231_STYLE_UCONTEXT)
return &((context->uc_mcontext.regs)->gpr[offset]);
#elif defined(GLIBC232_STYLE_UCONTEXT)
- return &((context->uc_regs->gregs)[offset]);
+ return &((context->uc_mcontext.uc_regs->gregs)[offset]);
#endif
}
#if defined(GLIBC231_STYLE_UCONTEXT)
return &((context->uc_mcontext.regs)->nip);
#elif defined(GLIBC232_STYLE_UCONTEXT)
- return &((context->uc_regs->gregs)[PT_NIP]);
+ return &((context->uc_mcontext.uc_regs->gregs)[PT_NIP]);
#endif
}
#if defined(GLIBC231_STYLE_UCONTEXT)
return &((context->uc_mcontext.regs)->link);
#elif defined(GLIBC232_STYLE_UCONTEXT)
- return &((context->uc_regs->gregs)[PT_LNK]);
+ return &((context->uc_mcontext.uc_regs->gregs)[PT_LNK]);
#endif
}
#if defined(GLIBC231_STYLE_UCONTEXT)
return &context->uc_sigmask;
#elif defined(GLIBC232_STYLE_UCONTEXT)
- return &context->uc_oldsigmask;
+ return &context->uc_sigmask;
#endif
}
#if defined(GLIBC231_STYLE_UCONTEXT)
return context->uc_mcontext.regs->gpr[PT_FPSCR];
#elif defined(GLIBC232_STYLE_UCONTEXT)
- return context->uc_regs->gregs[PT_FPSCR];
+ return context->uc_mcontext.uc_regs->gregs[PT_FPSCR];
#endif
}