RTEMS 6.1-rc2
Loading...
Searching...
No Matches
xil_exception.h
Go to the documentation of this file.
1/******************************************************************************
2* Copyright (c) 2009 - 2021 Xilinx, Inc. All rights reserved.
3* SPDX-License-Identifier: MIT
4******************************************************************************/
5
6/*****************************************************************************/
36#ifndef XIL_EXCEPTION_H /* prevent circular inclusions */
37#define XIL_EXCEPTION_H /* by using protection macros */
38
39#include "xil_types.h"
40
41#ifdef __cplusplus
42extern "C" {
43#endif
44
45/************************** Constant Definitions *****************************/
46
47/*
48 * These constants are specific to Microblaze processor.
49 */
50
51#define XIL_EXCEPTION_ID_FIRST 0U
52#define XIL_EXCEPTION_ID_FSL 0U
53#define XIL_EXCEPTION_ID_UNALIGNED_ACCESS 1U
54#define XIL_EXCEPTION_ID_ILLEGAL_OPCODE 2U
55#define XIL_EXCEPTION_ID_M_AXI_I_EXCEPTION 3U
56#define XIL_EXCEPTION_ID_IPLB_EXCEPTION 3U
57#define XIL_EXCEPTION_ID_M_AXI_D_EXCEPTION 4U
58#define XIL_EXCEPTION_ID_DPLB_EXCEPTION 4U
59#define XIL_EXCEPTION_ID_DIV_BY_ZERO 5U
60#define XIL_EXCEPTION_ID_FPU 6U
61#define XIL_EXCEPTION_ID_STACK_VIOLATION 7U
62#define XIL_EXCEPTION_ID_MMU 7U
63#define XIL_EXCEPTION_ID_LAST XIL_EXCEPTION_ID_MMU
64
65/*
66 * XIL_EXCEPTION_ID_INT is defined for all processors, but with different value.
67 */
68#define XIL_EXCEPTION_ID_INT 16U
72/**************************** Type Definitions *******************************/
73
77typedef void (*Xil_ExceptionHandler)(void *Data);
78
83typedef void (*XInterruptHandler) (void *InstancePtr);
84
85/***************** Macros (Inline Functions) Definitions *********************/
86
87
88/************************** Function Prototypes ******************************/
89
90extern void Xil_ExceptionRegisterHandler(u32 Id,
91 Xil_ExceptionHandler Handler,
92 void *Data);
93
94extern void Xil_ExceptionRemoveHandler(u32 Id);
95
96extern void Xil_ExceptionInit(void);
97extern void Xil_ExceptionEnable(void);
98extern void Xil_ExceptionDisable(void);
99
100#ifdef __cplusplus
101}
102#endif
103
104#endif
105
#define Xil_ExceptionDisable()
Definition: xil_exception.h:215
#define Xil_ExceptionEnable()
Enable the IRQ exception.
Definition: xil_exception.h:172
void(* XInterruptHandler)(void *InstancePtr)
Definition: xil_types.h:144