Xil_ExceptionRegisterHandler - 2023.2 English

Standalone Library Documentation: BSP and Libraries Document Collection (UG643)

Document ID
UG643
Release Date
2023-12-13
Version
2023.2 English

Registers a handler for a specific exception. This handler is being called when the processor encounters the specified exception.

Prototype

void Xil_ExceptionRegisterHandler(u32 Exception_id, Xil_ExceptionHandler Handler, void *Data);

Parameters

The following table lists the Xil_ExceptionRegisterHandler function arguments.

Table 1. Xil_ExceptionRegisterHandler Arguments
Name Description
Exception_id Contains the ID of the exception source and should be in the range of 0 to XIL_EXCEPTION_ID_LAST. See xil_exception.h for further information.
Handler Handler for the exception.
Data Reference to the data that is passed to the Handler when it gets called.

Returns

None.