Changeset 8506


Ignore:
Timestamp:
Feb 17, 2008, 10:40:19 PM (12 years ago)
Author:
gb
Message:

Don't need a SIG_RESUME_THREAD anymore, so don't try to steal a
presumably unused hardware signal (SIGEMT) for
SIGNAL_FOR_PROCESS_INTERRUPT on Darwin; use non-hardware signals
(SIGUSR1, SIGUSR2) for interrupt, suspend. Observe DARWIN_GS_HACK in
quit_handler.

Location:
branches/1.1/ccl/lisp-kernel
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/1.1/ccl/lisp-kernel/Threads.h

    r6260 r8506  
    167167#define SIG_RESUME_THREAD (SIG_SUSPEND_THREAD+1)
    168168#else
    169 #define SIG_SUSPEND_THREAD SIGUSR1
    170 #define SIG_RESUME_THREAD SIGUSR2
     169#define SIG_SUSPEND_THREAD SIGUSR2
    171170#endif
    172171
  • branches/1.1/ccl/lisp-kernel/x86-exceptions.c

    r7806 r8506  
    14431443quit_handler(int signum, siginfo_t *info, ExceptionInformation *xp)
    14441444{
     1445#ifdef DARWIN_GS_HACK
     1446  Boolean unused = ensure_gs_pthread();
     1447#endif
    14451448  TCR *tcr = get_tcr(false);
    14461449  area *a;
     
    15381541{
    15391542  thread_suspend_signal = SIG_SUSPEND_THREAD;
     1543#if 0
    15401544  thread_resume_signal = SIG_RESUME_THREAD;
    1541 
     1545#endif
    15421546  install_signal_handler(thread_suspend_signal, (void *)SUSPEND_RESUME_HANDLER);
     1547#if 0
    15431548  install_signal_handler(thread_resume_signal, (void *)SUSPEND_RESUME_HANDLER);
     1549#endif
    15441550  install_signal_handler(SIGQUIT, (void *)QUIT_HANDLER);
    15451551}
  • branches/1.1/ccl/lisp-kernel/x86-exceptions.h

    r7282 r8506  
    7272
    7373#ifdef DARWIN
    74 #define SIGNAL_FOR_PROCESS_INTERRUPT SIGEMT
     74#define SIGNAL_FOR_PROCESS_INTERRUPT SIGUSR1
    7575#endif
    7676#ifdef LINUX
Note: See TracChangeset for help on using the changeset viewer.