1 |
5 |
quickwayne |
////////////////////////////////////////////////////////////////////////////////
|
2 |
|
|
// Copyright (c) 2004 Xilinx, Inc. All rights reserved.
|
3 |
|
|
//
|
4 |
|
|
// Xilinx, Inc.
|
5 |
|
|
// XILINX IS PROVIDING THIS DESIGN, CODE, OR INFORMATION "AS IS" AS A
|
6 |
|
|
// COURTESY TO YOU. BY PROVIDING THIS DESIGN, CODE, OR INFORMATION AS
|
7 |
|
|
// ONE POSSIBLE IMPLEMENTATION OF THIS FEATURE, APPLICATION OR
|
8 |
|
|
// STANDARD, XILINX IS MAKING NO REPRESENTATION THAT THIS IMPLEMENTATION
|
9 |
|
|
// IS FREE FROM ANY CLAIMS OF INFRINGEMENT, AND YOU ARE RESPONSIBLE
|
10 |
|
|
// FOR OBTAINING ANY RIGHTS YOU MAY REQUIRE FOR YOUR IMPLEMENTATION.
|
11 |
|
|
// XILINX EXPRESSLY DISCLAIMS ANY WARRANTY WHATSOEVER WITH RESPECT TO
|
12 |
|
|
// THE ADEQUACY OF THE IMPLEMENTATION, INCLUDING BUT NOT LIMITED TO
|
13 |
|
|
// ANY WARRANTIES OR REPRESENTATIONS THAT THIS IMPLEMENTATION IS FREE
|
14 |
|
|
// FROM CLAIMS OF INFRINGEMENT, IMPLIED WARRANTIES OF MERCHANTABILITY
|
15 |
|
|
// AND FITNESS FOR A PARTICULAR PURPOSE.
|
16 |
|
|
//
|
17 |
|
|
// $Id: microblaze_exceptions_i.h,v 1.1 2006-06-23 18:59:00 quickwayne Exp $
|
18 |
|
|
////////////////////////////////////////////////////////////////////////////////
|
19 |
|
|
|
20 |
|
|
/*****************************************************************************/
|
21 |
|
|
/**
|
22 |
|
|
*
|
23 |
|
|
* @file microblaze_exceptions_i.h
|
24 |
|
|
*
|
25 |
|
|
* This header file contains defines for structures used by the microblaze
|
26 |
|
|
* hardware exception handler.
|
27 |
|
|
*
|
28 |
|
|
* <pre>
|
29 |
|
|
* MODIFICATION HISTORY:
|
30 |
|
|
*
|
31 |
|
|
* Ver Date Changes
|
32 |
|
|
* ----- -------- -----------------------------------------------
|
33 |
|
|
* 1.00a 06/24/04 First release
|
34 |
|
|
* </pre>
|
35 |
|
|
*
|
36 |
|
|
******************************************************************************/
|
37 |
|
|
|
38 |
|
|
#ifndef MICROBLAZE_EXCEPTIONS_I_H /* prevent circular inclusions */
|
39 |
|
|
#define MICROBLAZE_EXCEPTIONS_I_H /* by using protection macros */
|
40 |
|
|
|
41 |
|
|
/***************************** Include Files *********************************/
|
42 |
|
|
|
43 |
|
|
#include "xbasic_types.h"
|
44 |
|
|
|
45 |
|
|
typedef struct
|
46 |
|
|
{
|
47 |
|
|
XExceptionHandler Handler;
|
48 |
|
|
void *CallBackRef;
|
49 |
|
|
} MB_ExceptionVectorTableEntry;
|
50 |
|
|
|
51 |
|
|
/* Exception IDs */
|
52 |
|
|
#define XEXC_ID_UNALIGNED_ACCESS 1
|
53 |
|
|
#define XEXC_ID_ILLEGAL_OPCODE 2
|
54 |
|
|
#define XEXC_ID_IOPB_EXCEPTION 3
|
55 |
|
|
#define XEXC_ID_DOPB_EXCEPTION 4
|
56 |
|
|
#define XEXC_ID_DIV_BY_ZERO 5
|
57 |
|
|
#define XEXC_ID_FPU 6
|
58 |
|
|
|
59 |
|
|
void microblaze_register_exception_handler(Xuint8 ExceptionId, XExceptionHandler Handler, void *DataPtr);
|
60 |
|
|
|
61 |
|
|
#endif /* end of protection macro */
|