Xinu7/man/man3/halt.doc




HALT(3)             Xinu Programmer's Manual              HALT(3)



NAME
     halt, pause - pause or halt the processor

SYNOPSIS
     #include <kernel.h>

     halt();
     pause();

DESCRIPTION
     _H_a_l_t stops the processor immediately without affecting dev-
     ices or direct-memory-access (DMA) operations on the bus.
     Once halted, the processor will not respond to interrupts.
     _H_a_l_t is useful for debugging the operating system.

     _P_a_u_s_e stops the processor until an interrupt occurs, allow-
     ing it to continue at the instruction following the _p_a_u_s_e
     when the interrupt returns.  _P_a_u_s_e is used in the null pro-
     cess instead of an infinite loop to avoid taking bus
     bandwidth needlessly.

     In the current implementation, both _h_a_l_t and _p_a_u_s_e are mac-
     ros that expand to the assembler language _h_a_l_t and _p_a_u_s_e
     instructions.  Thus, they can only be executed in kernel
     mode.

SEE ALSO
     disable(3), wait(2)



























Version 6b               Printed 1/12/87                        1