Changeset 5288


Ignore:
Timestamp:
Oct 2, 2006, 7:13:07 AM (18 years ago)
Author:
Gary Byers
Message:

Darwin uses _sigtramp glue to call handlers, so we need to make handlers
do a sigreturn after switching off the signal stack, etc.

File:
1 edited

Legend:

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

    r5282 r5288  
    130130#define SIGNUM_FOR_INTN_TRAP SIGSEGV /* Not really, but our Mach handler fakes that */
    131131#define IS_MAYBE_INT_TRAP(info,xp) (info->si_code == EXC_I386_GPFLT)
    132 #define SIGRETURN(context)
     132/* The x86 version of sigreturn just needs the context argument; the
     133   hidden, magic "flavor" argument that sigtramp uses is ignored. */
     134#define SIGRETURN(context) syscall(SYS_sigreturn,context)
    133135#endif
    134136
Note: See TracChangeset for help on using the changeset viewer.