Changeset 4838


Ignore:
Timestamp:
Jun 27, 2006, 3:47:12 AM (18 years ago)
Author:
Gary Byers
Message:

Some macros for FreeBSD changes.

File:
1 edited

Legend:

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

    r4474 r4838  
    9292  ID_clear_tcr_save_allocptr_tag_instruction
    9393} alloc_instruction_id;
     94
     95#ifdef LINUX
     96#define SIGNUM_FOR_INTN_TRAP SIGSEGV
     97#define IS_MAYBE_INT_TRAP(info,xp) ((info->si_code) &0x7f) == 0)
     98#define SIGRETURN(context)
     99#endif
     100
     101#ifdef FREEBSD
     102extern void freebsd_sigreturn(ExceptionInformation *);
     103#define SIGNUM_FOR_INTN_TRAP SIGBUS
     104#define IS_MAYBE_INT_TRAP(info,xp) (xp->uc_mcontext.mc_trapno == T_PROTFLT)
     105#define SIGRETURN(context) freebsd_sigreturn(context)
     106#endif
Note: See TracChangeset for help on using the changeset viewer.