Changeset 5996


Ignore:
Timestamp:
Mar 7, 2007, 2:25:24 PM (13 years ago)
Author:
gb
Message:

Darwin signal return: logior in the el-bizarro syscall mask, pass the
magic number 0x1e as a second arg, just in case.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ccl/lisp-kernel/x86-exceptions.h

    r5615 r5996  
    3030#define DARWIN_USE_PSEUDO_SIGRETURN 1
    3131#include <sys/syscall.h>
    32 #define DarwinSigReturn(context) syscall(SYS_sigreturn,context)
     32#define DarwinSigReturn(context) syscall(0x2000000|SYS_sigreturn,context,0x1e)
    3333#ifdef X8664
    3434#define xpGPRvector(x) ((natural *)(&(UC_MCONTEXT(x)->__ss.__rax)))
     
    133133/* The x86 version of sigreturn just needs the context argument; the
    134134   hidden, magic "flavor" argument that sigtramp uses is ignored. */
    135 #define SIGRETURN(context) syscall(SYS_sigreturn,context)
     135#define SIGRETURN(context) DarwinSigReturn(context)
    136136#endif
    137137
Note: See TracChangeset for help on using the changeset viewer.