MicroBlaze Pseudo-asm Macros and Interrupt Handling APIs - 2021.1 English

Xilinx Standalone Library Documentation OS and Libraries Document Collection (UG643)

Document ID
UG643
Release Date
2021-06-16
Version
2021.1 English

The MicroBlaze BSP includes macros to provide convenient access to various registers in the MicroBlaze processor. Some of these macros are very useful within exception handlers for retrieving information about the exception. Also, the interrupt handling functions help manage interrupt handling on MicroBlaze processor devices. To use these functions, include the header file mb_interface.h in your source code.

Table 1. Quick Function Reference
Type Name Arguments
void microblaze_register_handler
  • XInterruptHandler Handler
  • void * DataPtr
void microblaze_register_exception_handler
  • u32 ExceptionId
  • Top
  • void * DataPtr