OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [ecos-3.0/] [packages/] [hal/] [fr30/] [mb91301/] [current/] [src/] [variant.S] - Blame information for rev 786

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 786 skrzyp
##=============================================================================
2
##
3
##      variant.S
4
##
5
##      FR30 MB91301 variant code
6
##
7
##=============================================================================
8
## ####ECOSGPLCOPYRIGHTBEGIN####
9
## -------------------------------------------
10
## This file is part of eCos, the Embedded Configurable Operating System.
11
## Copyright (C) 1998, 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
12
##
13
## eCos is free software; you can redistribute it and/or modify it under
14
## the terms of the GNU General Public License as published by the Free
15
## Software Foundation; either version 2 or (at your option) any later
16
## version.
17
##
18
## eCos is distributed in the hope that it will be useful, but WITHOUT
19
## ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
20
## FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
21
## for more details.
22
##
23
## You should have received a copy of the GNU General Public License
24
## along with eCos; if not, write to the Free Software Foundation, Inc.,
25
## 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
26
##
27
## As a special exception, if other files instantiate templates or use
28
## macros or inline functions from this file, or you compile this file
29
## and link it with other works to produce a work based on this file,
30
## this file does not by itself cause the resulting work to be covered by
31
## the GNU General Public License. However the source code for this file
32
## must still be made available in accordance with section (3) of the GNU
33
## General Public License v2.
34
##
35
## This exception does not invalidate any other reasons why a work based
36
## on this file might be covered by the GNU General Public License.
37
## -------------------------------------------
38
## ####ECOSGPLCOPYRIGHTEND####
39
##=============================================================================
40
#######DESCRIPTIONBEGIN####
41
##
42
## Author(s):   larsi
43
## Contributors:larsi
44
## Date:        2006-07-22
45
## Purpose:     FR30 MB91301 variant code
46
## Description: Variant specific code for MB91301 processor family.
47
##
48
##
49
##
50
##
51
######DESCRIPTIONEND####
52
##
53
##=============================================================================
54
 
55
#include 
56
#include 
57
 
58
#ifdef CYGPKG_KERNEL
59
# include 
60
#endif
61
 
62
#include 
63
 
64
#==============================================================================
65
# Vector table for storage in flash
66
# base address is 0x000FFC00, which stores the vector address for number 255
67
# address 0x000FFFFC is the last vector, the reset vector, which is not
68
# alterable. Vectors 255 to 80 are used by the INT instruction and set to 0
69
# here for now ...
70
 
71
#ifndef CYGPKG_HAL_FR30_ROM_VECTORS_DEFINED
72
#define CYGPKG_HAL_FR30_ROM_VECTORS_DEFINED
73
 
74
#if defined(CYG_HAL_STARTUP_ROM) || defined(CYG_HAL_STARTUP_ROMRAM)
75
 
76
     .section ".rom_vectors","ax"
77
 
78
    .balign 4
79
    .global hal_fr30_vector_table
80
hal_fr30_vector_table:
81
    .rept   255-80 + 1
82
    .long   0x0
83
    .endr
84
    .rept   79-67 + 1
85
    .long   0x0
86
    .endr
87
 
88
    .long   0x0
89
    .long   0x0
90
    .long   0x0
91
# number 63 first interrupt source
92
    .long   hal_fr30_irq_63
93
    .long   hal_fr30_irq_62
94
    .long   hal_fr30_irq_61
95
    .long   hal_fr30_irq_60
96
    .long   hal_fr30_irq_59
97
    .long   hal_fr30_irq_58
98
    .long   hal_fr30_irq_57
99
    .long   hal_fr30_irq_56
100
    .long   hal_fr30_irq_55
101
    .long   hal_fr30_irq_54
102
    .long   hal_fr30_irq_53
103
    .long   hal_fr30_irq_52
104
    .long   hal_fr30_irq_51
105
    .long   hal_fr30_irq_50
106
    .long   hal_fr30_irq_49
107
    .long   hal_fr30_irq_48
108
    .long   hal_fr30_irq_47
109
    .long   hal_fr30_irq_46
110
    .long   hal_fr30_irq_45
111
    .long   hal_fr30_irq_44
112
    .long   hal_fr30_irq_43
113
    .long   hal_fr30_irq_42
114
    .long   hal_fr30_irq_41
115
    .long   hal_fr30_irq_40
116
    .long   hal_fr30_irq_39
117
    .long   hal_fr30_irq_38
118
    .long   hal_fr30_irq_37
119
    .long   hal_fr30_irq_36
120
    .long   hal_fr30_irq_35
121
    .long   hal_fr30_irq_34
122
    .long   hal_fr30_irq_33
123
    .long   hal_fr30_irq_32
124
    .long   hal_fr30_irq_31
125
    .long   hal_fr30_irq_30
126
    .long   hal_fr30_irq_29
127
    .long   hal_fr30_irq_28
128
    .long   hal_fr30_irq_27
129
    .long   hal_fr30_irq_26
130
    .long   hal_fr30_irq_25
131
    .long   hal_fr30_irq_24
132
    .long   hal_fr30_irq_23
133
    .long   hal_fr30_irq_22
134
    .long   hal_fr30_irq_21
135
    .long   hal_fr30_irq_20
136
    .long   hal_fr30_irq_19
137
    .long   hal_fr30_irq_18
138
    .long   hal_fr30_irq_17
139
    .long   hal_fr30_irq_16
140
    .long   hal_fr30_irq_15
141
    .long   hal_fr30_exception_noerr_14
142
    .long   hal_fr30_exception_noerr_13
143
    .long   hal_fr30_exception_noerr_12
144
    .long   hal_fr30_exception_noerr_11
145
    .long   hal_fr30_exception_noerr_10
146
    .long   hal_fr30_exception_noerr_9
147
    .long   hal_fr30_exception_noerr_8
148
    .long   hal_fr30_exception_noerr_7
149
    .long   hal_fr30_exception_noerr_6
150
    .long   hal_fr30_exception_noerr_5
151
    .long   hal_fr30_exception_noerr_4
152
    .long   hal_fr30_exception_noerr_3
153
    .long   hal_fr30_exception_noerr_2
154
 
155
# mode vector (only the first of the four byte is relevant)
156
    .byte   0x1
157
    .byte   0
158
    .byte   0
159
    .byte   0
160
 
161
# reset vector
162
    .long   _start
163
 
164
#endif /*CYG_HAL_STARTUP_ROM || CYG_HAL_STARTUP_ROMRAM*/
165
#endif /*CYGPKG_HAL_FR30_ROM_VECTORS_DEFINED*/
166
 
167
##-----------------------------------------------------------------------------
168
# Interrupt vector tables.
169
# These tables contain the isr, data and object pointers used to deliver
170
# interrupts to user code.
171
 
172
    .extern hal_default_isr
173
 
174
    .data
175
    .balign 4
176
 
177
    .globl  hal_interrupt_handlers
178
hal_interrupt_handlers:
179
    .rept  CYGNUM_HAL_ISR_COUNT
180
    .long   hal_default_isr
181
    .endr
182
 
183
    .globl  hal_interrupt_data
184
hal_interrupt_data:
185
    .rept   CYGNUM_HAL_ISR_COUNT
186
    .long   0
187
    .endr
188
 
189
    .globl  hal_interrupt_objects
190
hal_interrupt_objects:
191
    .rept   CYGNUM_HAL_ISR_COUNT
192
    .long   0
193
    .endr
194
 
195
##-----------------------------------------------------------------------------
196
## end of variant.S
197
 

powered by: WebSVN 2.1.0

© copyright 1999-2025 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.