Xinu7/man/man2/panic.doc




PANIC(2)            Xinu Programmer's Manual             PANIC(2)



NAME
     panic - abort processing due to severe error

SYNOPSIS
     int panic(message)
     char *message;

DESCRIPTION
     _P_a_n_i_c will print the character string _m_e_s_s_a_g_e on the con-
     sole, dump the machine registers and top few stack loca-
     tions, and halt the processor.  It uses _k_p_r_i_n_t_f rather than
     _p_r_i_n_t_f, so it may be called anywhere in the kernel (e.g.,
     from an interrupt routine that may be executed by the null
     process).  Typing P after the processor halts will cause
     panic to restore the machine state and continue, so it is
     possible to examine locations with ODT after the processor
     halts, and still restart processing.

     There are alternate entry points to _p_a_n_i_c that are invoked
     by branch to location zero, illegal interrupts, or processor
     exceptions (traps).

SEE ALSO
     kprintf(3), printf(3)































Version 6b               Printed 1/12/87                        1