1 |
786 |
skrzyp |
#ifndef CYGONCE_HAL_CYGM_H
|
2 |
|
|
#define CYGONCE_HAL_CYGM_H
|
3 |
|
|
|
4 |
|
|
//=============================================================================
|
5 |
|
|
//
|
6 |
|
|
// hal_cygm.h
|
7 |
|
|
//
|
8 |
|
|
// HAL CygMon vector definitions
|
9 |
|
|
//
|
10 |
|
|
//=============================================================================
|
11 |
|
|
// ####ECOSGPLCOPYRIGHTBEGIN####
|
12 |
|
|
// -------------------------------------------
|
13 |
|
|
// This file is part of eCos, the Embedded Configurable Operating System.
|
14 |
|
|
// Copyright (C) 1998, 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
|
15 |
|
|
//
|
16 |
|
|
// eCos is free software; you can redistribute it and/or modify it under
|
17 |
|
|
// the terms of the GNU General Public License as published by the Free
|
18 |
|
|
// Software Foundation; either version 2 or (at your option) any later
|
19 |
|
|
// version.
|
20 |
|
|
//
|
21 |
|
|
// eCos is distributed in the hope that it will be useful, but WITHOUT
|
22 |
|
|
// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
23 |
|
|
// FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
24 |
|
|
// for more details.
|
25 |
|
|
//
|
26 |
|
|
// You should have received a copy of the GNU General Public License
|
27 |
|
|
// along with eCos; if not, write to the Free Software Foundation, Inc.,
|
28 |
|
|
// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
29 |
|
|
//
|
30 |
|
|
// As a special exception, if other files instantiate templates or use
|
31 |
|
|
// macros or inline functions from this file, or you compile this file
|
32 |
|
|
// and link it with other works to produce a work based on this file,
|
33 |
|
|
// this file does not by itself cause the resulting work to be covered by
|
34 |
|
|
// the GNU General Public License. However the source code for this file
|
35 |
|
|
// must still be made available in accordance with section (3) of the GNU
|
36 |
|
|
// General Public License v2.
|
37 |
|
|
//
|
38 |
|
|
// This exception does not invalidate any other reasons why a work based
|
39 |
|
|
// on this file might be covered by the GNU General Public License.
|
40 |
|
|
// -------------------------------------------
|
41 |
|
|
// ####ECOSGPLCOPYRIGHTEND####
|
42 |
|
|
//=============================================================================
|
43 |
|
|
//#####DESCRIPTIONBEGIN####
|
44 |
|
|
//
|
45 |
|
|
// Author(s): hmt
|
46 |
|
|
// Contributors: hmt
|
47 |
|
|
// Date: 1999-02-24
|
48 |
|
|
// Purpose: Define Interrupt vectors in CygMon
|
49 |
|
|
// Description:
|
50 |
|
|
//
|
51 |
|
|
// Usage:
|
52 |
|
|
// #include <cyg/hal/hal_cygm.h>
|
53 |
|
|
// ...
|
54 |
|
|
//
|
55 |
|
|
//
|
56 |
|
|
//####DESCRIPTIONEND####
|
57 |
|
|
//
|
58 |
|
|
//=============================================================================
|
59 |
|
|
|
60 |
|
|
#include <pkgconf/system.h>
|
61 |
|
|
#include <pkgconf/hal.h>
|
62 |
|
|
#include <pkgconf/hal_sparclite.h>
|
63 |
|
|
#include <pkgconf/hal_sparclite_sleb.h>
|
64 |
|
|
|
65 |
|
|
// *** THIS FILE IS ALSO USED IN ASSEMBLY SOURCE ***
|
66 |
|
|
// so it does not include eg. cyg_type.h ...
|
67 |
|
|
|
68 |
|
|
#ifdef CYG_HAL_USE_ROM_MONITOR_CYGMON
|
69 |
|
|
|
70 |
|
|
//-----------------------------------------------------------------------------
|
71 |
|
|
// SPARClite CygMon vector numbers and address
|
72 |
|
|
|
73 |
|
|
#define CYGMON_VECTOR_TABLE_BASE (0x04000000)
|
74 |
|
|
|
75 |
|
|
#define CYGMON_VECTOR_TABLE ((CYG_ADDRESS *)CYGMON_VECTOR_TABLE_BASE)
|
76 |
|
|
|
77 |
|
|
// The ROM vector table is located at 0x04000000 and has the
|
78 |
|
|
// following layout:
|
79 |
|
|
|
80 |
|
|
#define BSP_EXC_IACCESS 0 /* insn access */
|
81 |
|
|
#define BSP_EXC_ILL 1 /* illegal insn */
|
82 |
|
|
#define BSP_EXC_IPRIV 2 /* privileged insn */
|
83 |
|
|
#define BSP_EXC_FPDIS 3 /* FPU disabled */
|
84 |
|
|
#define BSP_EXC_WINOVF 4 /* window overflow */
|
85 |
|
|
#define BSP_EXC_WINUND 5 /* window underflow */
|
86 |
|
|
#define BSP_EXC_ALIGN 6 /* alignment */
|
87 |
|
|
#define BSP_EXC_DACCESS 7 /* data access */
|
88 |
|
|
#define BSP_EXC_TAGOVF 8 /* tag overflow */
|
89 |
|
|
#define BSP_EXC_INT1 9
|
90 |
|
|
#define BSP_EXC_INT2 10
|
91 |
|
|
#define BSP_EXC_INT3 11
|
92 |
|
|
#define BSP_EXC_INT4 12
|
93 |
|
|
#define BSP_EXC_INT5 13
|
94 |
|
|
#define BSP_EXC_INT6 14
|
95 |
|
|
#define BSP_EXC_INT7 15 /* serial Ch0 rxrdy */
|
96 |
|
|
#define BSP_EXC_INT8 16
|
97 |
|
|
#define BSP_EXC_INT9 17
|
98 |
|
|
#define BSP_EXC_INT10 18 /* serial Ch0 rxrdy */
|
99 |
|
|
#define BSP_EXC_INT11 19
|
100 |
|
|
#define BSP_EXC_INT12 20
|
101 |
|
|
#define BSP_EXC_INT13 21
|
102 |
|
|
#define BSP_EXC_INT14 22 /* ethernet interrupt */
|
103 |
|
|
#define BSP_EXC_INT15 23
|
104 |
|
|
#define BSP_EXC_CPDIS 24 /* CP disabled */
|
105 |
|
|
#define BSP_EXC_BREAK 25 /* breakpoint "ta 1" */
|
106 |
|
|
#define BSP_EXC_WINFLUSH 26 /* window flush "ta 3" */
|
107 |
|
|
#define BSP_EXC_SYSCALL 27 /* syscall "ta 8" */
|
108 |
|
|
#define BSP_EXC_DEBUG 28 /* DSU exception */
|
109 |
|
|
#define BSP_EXC_TRAP 29 /* all other traps */
|
110 |
|
|
#define BSP_VEC_MT_DEBUG 30 /* Multi-Threaded debugging */
|
111 |
|
|
#define BSP_VEC_STUB_ENTRY 31 /* low level stub entry, eg. ^C rx */
|
112 |
|
|
|
113 |
|
|
// These vectors should be called with:
|
114 |
|
|
//
|
115 |
|
|
// %l0 - PSR
|
116 |
|
|
// %l1 - PC
|
117 |
|
|
// %l2 - NPC
|
118 |
|
|
// [%l3 - TBR ; STUB_ENTRY only, TBR from original exception ]
|
119 |
|
|
|
120 |
|
|
#define BSP_NOTVEC_BSP_COMM_PROCS 32 /* pointer to structure for comms */
|
121 |
|
|
|
122 |
|
|
#endif // CYG_HAL_USE_ROM_MONITOR_CYGMON
|
123 |
|
|
|
124 |
|
|
//-----------------------------------------------------------------------------
|
125 |
|
|
#endif // ifndef CYGONCE_HAL_CYGM_H
|
126 |
|
|
// End of hal_cygm.h
|