nn::os::ARM::SetUserExceptionHandler Function

Syntax

void SetUserExceptionHandler(
     UserExceptionHandler pHandler,
     uptr stackBottom
);

template <typename T>
void SetUserExceptionHandler(
     UserExceptionHandler pHandler,
     T * pStack
);

List of Overloaded Member Functions

SetUserExceptionHandler(UserExceptionHandler, uptr) Sets the exception handler.
SetUserExceptionHandler(UserExceptionHandler, T *) Sets the exception handler.

Description of SetUserExceptionHandler(UserExceptionHandler, uptr)

When an exception handler is specified and an exception occurs, the function specified by the pHandler parameter is called in the context of the thread where the exception occurred. The stack specified in stackBottom is used.

The instances of ExceptionInfo and ExceptionContent that are passed to pHandler are allocated from the stack specified by stackBottom. The minimum stack size, therefore, must be sizeof(ExceptionContext) + sizeof(ExceptionInfo).

Note that special processing, such as disabling interrupts, is not used when calling the exception handler. The exception handler stack breaks if an exception occurs during exception handling.

Note that the exception handler cannot be called in the debug environment.

Description of SetUserExceptionHandler(UserExceptionHandler, T *)

When an exception handler is specified and an exception occurs, the function specified by the pHandler parameter is called in the context of the thread where the exception occurred. The stack specified by pStack is used.

The instances of ExceptionInfo and ExceptionContent that are passed to pHandler are allocated from the stack specified by pStack. The minimum stack size, therefore, must be sizeof(ExceptionContext) + sizeof(ExceptionInfo).

Note that special processing, such as disabling interrupts, is not used when calling the exception handler. The exception handler stack breaks if an exception occurs during exception handling.

Note that the exception handler cannot be called in the debug environment.


CONFIDENTIAL