Changeset 893


Ignore:
Timestamp:
Oct 26, 2004, 10:22:40 PM (20 years ago)
Author:
Gary Byers
Message:

get_interrupt_tcr() takes a "create-p" argument, like some callers thought
it did.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ccl/lisp-kernel/thread_manager.c

    r871 r893  
    232232
    233233TCR *
    234 get_interrupt_tcr()
     234get_interrupt_tcr(Boolean create)
    235235{
    236236#ifndef LINUX
    237   return get_tcr(true);
     237  return get_tcr(create);
    238238#else
    239239  void* callers_r2 = current_r2;
    240240
    241241  if (callers_r2 == NULL) {     /* pre-glibc-2.3.2 Linux */
    242     return get_tcr(true);
     242    return get_tcr(create);
    243243  } else {
    244244    TCR  *head = (TCR *)lisp_global(INITIAL_TCR), *current = head;
     
    266266       struct pointer and that it's therefore safe to call get_tcr().
    267267    */
    268     return get_tcr(true);
     268    return get_tcr(create);
    269269  }
    270270#endif
     
    275275suspend_resume_handler(int signo, siginfo_t *info, ExceptionInformation *context)
    276276{
    277   TCR *tcr = get_interrupt_tcr(true);
     277  TCR *tcr = get_interrupt_tcr(false);
    278278
    279279  if (signo == thread_suspend_signal) {
Note: See TracChangeset for help on using the changeset viewer.