Xinu7/man/man3/disable.doc
DISABLE(3) Xinu Programmer's Manual DISABLE(3)
NAME
disable, enable, restore - change and restore processor
interrupt status
SYNOPSIS
disable(ps);
enable(ps);
restore(ps);
char ps;
DESCRIPTION
These routines change the processor interrupt status mode.
Normally, procedures use _d_i_s_a_b_l_e and _r_e_s_t_o_r_e to save the
interrupt status, mask interrupts off, and then restore the
saved status. _E_n_a_b_l_e explicitly enables interrupts; it is
used only at system startup.
SEE ALSO
cvt(1)
BUGS
In this implementation, _d_i_s_a_b_l_e and _r_e_s_t_o_r_e are macros that
must have local variable _p_s as an argument, and must use
CVT(1) to convert the assembler code they produce to legal
assembler.
Version 6b Printed 1/12/87 1