SYS_abort
2-454
C Interface
Syntax
SYS_abort(format, [arg,] ...);
Parameters
String
format;
/* format specification string */
Arg
arg;
/* optional argument */
Return Value
Void
Description
SYS_abort aborts program execution by calling the function bound to the
configuration parameter Abort function, where vargs is of type va_list (a
void pointer which can be interpreted as an argument list) and represents
the sequence of arg parameters originally passed to SYS_abort.
(*(Abort_function))(format, vargs)
The function bound to Abort function can elect to pass the format and
vargs parameters directly to SYS_vprintf or SYS_vsprintf prior to
terminating program execution.
The default Abort function for the SYS manager is _UTL_doAbort, which
logs an error message and calls UTL _halt, which is defined in the boot.c
file. The UTL_halt function performs an infinite loop with all processor
interrupts disabled.
Constraints and
Calling Context
❏
If the function bound to Abort function is not reentrant, SYS_abort
must be called atomically.
See Also
SYS_abort
Abort program execution