NAME | SYNOPSIS | FEATURES | DESCRIPTION | RETURN VALUE | RESTRICTIONS | ATTRIBUTES
#include <exec/chPanic.h>int svSysPanic(unsigned panicNo /* panic number */, void *args /* panic argument */, unsigned argsSize /* panic argument size */, char *mess /* panic message */, char *fileName /* file name */, int lineNumber /* line number */);
CORE
The svSysPanic system call allows Chorus applications to trigger the execution of the kernel panic handling sequence. When svSysPanic is invoked by an application, the kernel executes the panic handling strategy, just as if the panic had been detected by the kernel itself. If a panic handler has been connected by the BSP the kernel invokes this handler, passing the svSysPanic arguments unchanged. If no panic handler has been connected, the kernel performs default panic handling (usually by entering the kernel debugger).
The panicNo field identifies the panic. It should normally take a value not already assigned to Chorus components, except in the case of generic panics such as debug assertions, for which a single generic number has been assigned.
The panicArgs member is a pointer to a panic-specific data structure. The panicArgsSize member indicates the size of the panic-specific structure.
This kernel service is only available to supervisor threads.
The svSysPanic system call never returns.
This call is restricted to SUPERVISOR threads.
See attributes(5) for descriptions of the following attributes:
ATTRIBUTE TYPE | ATTRIBUTE VALUE |
---|---|
Interface Stability | Evolving |
NAME | SYNOPSIS | FEATURES | DESCRIPTION | RETURN VALUE | RESTRICTIONS | ATTRIBUTES