Skip to content
Snippets Groups Projects
Commit da8224b7 authored by wlott's avatar wlott
Browse files

On machines other than the mips, use PSEUDO_ATOMIC_ATOMIC and

PSEUDO_ATOMIC_INTERRUPTED for implementing pseudo atomic.
parent eedfec51
No related branches found
No related tags found
No related merge requests found
/* $Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/ldb/Attic/interrupt.c,v 1.17 1990/11/28 17:14:26 wlott Exp $ */
/* $Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/ldb/Attic/interrupt.c,v 1.18 1990/12/01 22:48:11 wlott Exp $ */
/* Interrupt handing magic. */
......@@ -169,6 +169,8 @@ struct sigcontext *context;
} else if ((!foreign_function_call_active)
#ifdef mips
&& (context->sc_regs[FLAGS] & (1<<flag_Atomic))
#else
&& (SymbolValue(PSEUDO_ATOMIC_ATOMIC))
#endif
) {
pending_signal = signal;
......@@ -177,6 +179,8 @@ struct sigcontext *context;
context->sc_mask |= BLOCKABLE;
#ifdef mips
context->sc_regs[FLAGS] |= (1<<flag_Interrupted);
#else
SetSymbolValue(PSEUDO_ATOMIC_INTERRUPTED, T);
#endif
} else
handle_now(signal, code, context);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment