| 1 | /* handlers.c -- Setup default handlers. |
|---|
| 2 | * |
|---|
| 3 | * Copyright (c) 2004 Red Hat, Inc. All rights reserved. |
|---|
| 4 | * |
|---|
| 5 | * This copyrighted material is made available to anyone wishing to use, modify, |
|---|
| 6 | * copy, or redistribute it subject to the terms and conditions of the BSD |
|---|
| 7 | * License. This program is distributed in the hope that it will be useful, |
|---|
| 8 | * but WITHOUT ANY WARRANTY expressed or implied, including the implied |
|---|
| 9 | * warranties of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. A copy |
|---|
| 10 | * of this license is available at http://www.opensource.org/licenses. Any |
|---|
| 11 | * Red Hat trademarks that are incorporated in the source code or documentation |
|---|
| 12 | * are not subject to the BSD License and may only be used or replicated with |
|---|
| 13 | * the express permission of Red Hat, Inc. |
|---|
| 14 | */ |
|---|
| 15 | |
|---|
| 16 | #pragma weak _handler_NMI |
|---|
| 17 | |
|---|
| 18 | void __interrupt |
|---|
| 19 | _handler_NMI () |
|---|
| 20 | { |
|---|
| 21 | } |
|---|
| 22 | |
|---|
| 23 | #pragma weak _handler_RI |
|---|
| 24 | |
|---|
| 25 | void __interrupt |
|---|
| 26 | _handler_RI () |
|---|
| 27 | { |
|---|
| 28 | } |
|---|
| 29 | |
|---|
| 30 | #pragma weak _handler_ZDIV |
|---|
| 31 | |
|---|
| 32 | void __interrupt |
|---|
| 33 | _handler_ZDIV () |
|---|
| 34 | { |
|---|
| 35 | } |
|---|
| 36 | |
|---|
| 37 | #pragma weak _handler_BRK |
|---|
| 38 | |
|---|
| 39 | void __interrupt |
|---|
| 40 | _handler_BRK () |
|---|
| 41 | { |
|---|
| 42 | } |
|---|
| 43 | |
|---|
| 44 | #pragma weak _handler_SWI |
|---|
| 45 | |
|---|
| 46 | void __interrupt |
|---|
| 47 | _handler_SWI () |
|---|
| 48 | { |
|---|
| 49 | } |
|---|
| 50 | |
|---|
| 51 | #pragma weak _handler_DEBUG |
|---|
| 52 | |
|---|
| 53 | void __interrupt |
|---|
| 54 | _handler_DEBUG () |
|---|
| 55 | { |
|---|
| 56 | } |
|---|
| 57 | |
|---|
| 58 | #pragma weak _handler_DSP |
|---|
| 59 | |
|---|
| 60 | void __interrupt |
|---|
| 61 | _handler_DSP () |
|---|
| 62 | { |
|---|
| 63 | } |
|---|
| 64 | |
|---|
| 65 | #pragma weak _handler_COP |
|---|
| 66 | |
|---|
| 67 | void __interrupt |
|---|
| 68 | _handler_COP () |
|---|
| 69 | { |
|---|
| 70 | } |
|---|
| 71 | |
|---|
| 72 | /* hardware interrupt */ |
|---|
| 73 | |
|---|
| 74 | |
|---|
| 75 | #pragma weak _handler_INT0 |
|---|
| 76 | |
|---|
| 77 | void __interrupt |
|---|
| 78 | _handler_INT0 () |
|---|
| 79 | { |
|---|
| 80 | } |
|---|
| 81 | |
|---|
| 82 | #pragma weak _handler_INT1 |
|---|
| 83 | |
|---|
| 84 | void __interrupt |
|---|
| 85 | _handler_INT1 () |
|---|
| 86 | { |
|---|
| 87 | } |
|---|
| 88 | |
|---|
| 89 | #pragma weak _handler_INT2 |
|---|
| 90 | |
|---|
| 91 | void __interrupt |
|---|
| 92 | _handler_INT2 () |
|---|
| 93 | { |
|---|
| 94 | } |
|---|
| 95 | |
|---|
| 96 | #pragma weak _handler_INT3 |
|---|
| 97 | |
|---|
| 98 | void __interrupt |
|---|
| 99 | _handler_INT3 () |
|---|
| 100 | { |
|---|
| 101 | } |
|---|
| 102 | |
|---|
| 103 | #pragma weak _handler_INT4 |
|---|
| 104 | |
|---|
| 105 | void __interrupt |
|---|
| 106 | _handler_INT4 () |
|---|
| 107 | { |
|---|
| 108 | } |
|---|
| 109 | |
|---|
| 110 | #pragma weak _handler_INT5 |
|---|
| 111 | |
|---|
| 112 | void __interrupt |
|---|
| 113 | _handler_INT5 () |
|---|
| 114 | { |
|---|
| 115 | } |
|---|
| 116 | |
|---|
| 117 | #pragma weak _handler_INT6 |
|---|
| 118 | |
|---|
| 119 | void __interrupt |
|---|
| 120 | _handler_INT6 () |
|---|
| 121 | { |
|---|
| 122 | } |
|---|
| 123 | |
|---|
| 124 | #pragma weak _handler_INT7 |
|---|
| 125 | |
|---|
| 126 | void __interrupt |
|---|
| 127 | _handler_INT7 () |
|---|
| 128 | { |
|---|
| 129 | } |
|---|
| 130 | |
|---|
| 131 | #pragma weak _handler_INT8 |
|---|
| 132 | |
|---|
| 133 | void __interrupt |
|---|
| 134 | _handler_INT8 () |
|---|
| 135 | { |
|---|
| 136 | } |
|---|
| 137 | |
|---|
| 138 | #pragma weak _handler_INT9 |
|---|
| 139 | |
|---|
| 140 | void __interrupt |
|---|
| 141 | _handler_INT9 () |
|---|
| 142 | { |
|---|
| 143 | } |
|---|
| 144 | |
|---|
| 145 | #pragma weak _handler_INT10 |
|---|
| 146 | |
|---|
| 147 | void __interrupt |
|---|
| 148 | _handler_INT10 () |
|---|
| 149 | { |
|---|
| 150 | } |
|---|
| 151 | |
|---|
| 152 | #pragma weak _handler_INT11 |
|---|
| 153 | |
|---|
| 154 | void __interrupt |
|---|
| 155 | _handler_INT11 () |
|---|
| 156 | { |
|---|
| 157 | } |
|---|
| 158 | |
|---|
| 159 | #pragma weak _handler_INT12 |
|---|
| 160 | |
|---|
| 161 | void __interrupt |
|---|
| 162 | _handler_INT12 () |
|---|
| 163 | { |
|---|
| 164 | } |
|---|
| 165 | |
|---|
| 166 | #pragma weak _handler_INT13 |
|---|
| 167 | |
|---|
| 168 | void __interrupt |
|---|
| 169 | _handler_INT13 () |
|---|
| 170 | { |
|---|
| 171 | } |
|---|
| 172 | |
|---|
| 173 | #pragma weak _handler_INT14 |
|---|
| 174 | |
|---|
| 175 | void __interrupt |
|---|
| 176 | _handler_INT14 () |
|---|
| 177 | { |
|---|
| 178 | } |
|---|
| 179 | |
|---|
| 180 | #pragma weak _handler_INT15 |
|---|
| 181 | |
|---|
| 182 | void __interrupt |
|---|
| 183 | _handler_INT15 () |
|---|
| 184 | { |
|---|
| 185 | } |
|---|
| 186 | |
|---|
| 187 | #pragma weak _handler_INT16 |
|---|
| 188 | |
|---|
| 189 | void __interrupt |
|---|
| 190 | _handler_INT16 () |
|---|
| 191 | { |
|---|
| 192 | } |
|---|
| 193 | |
|---|
| 194 | #pragma weak _handler_INT17 |
|---|
| 195 | |
|---|
| 196 | void __interrupt |
|---|
| 197 | _handler_INT17 () |
|---|
| 198 | { |
|---|
| 199 | } |
|---|
| 200 | |
|---|
| 201 | #pragma weak _handler_INT18 |
|---|
| 202 | |
|---|
| 203 | void __interrupt |
|---|
| 204 | _handler_INT18 () |
|---|
| 205 | { |
|---|
| 206 | } |
|---|
| 207 | |
|---|
| 208 | #pragma weak _handler_INT19 |
|---|
| 209 | |
|---|
| 210 | void __interrupt |
|---|
| 211 | _handler_INT19 () |
|---|
| 212 | { |
|---|
| 213 | } |
|---|
| 214 | |
|---|
| 215 | #pragma weak _handler_INT20 |
|---|
| 216 | |
|---|
| 217 | void __interrupt |
|---|
| 218 | _handler_INT20 () |
|---|
| 219 | { |
|---|
| 220 | } |
|---|
| 221 | |
|---|
| 222 | #pragma weak _handler_INT21 |
|---|
| 223 | |
|---|
| 224 | void __interrupt |
|---|
| 225 | _handler_INT21 () |
|---|
| 226 | { |
|---|
| 227 | } |
|---|
| 228 | |
|---|
| 229 | #pragma weak _handler_INT22 |
|---|
| 230 | |
|---|
| 231 | void __interrupt |
|---|
| 232 | _handler_INT22 () |
|---|
| 233 | { |
|---|
| 234 | } |
|---|
| 235 | |
|---|
| 236 | #pragma weak _handler_INT23 |
|---|
| 237 | |
|---|
| 238 | void __interrupt |
|---|
| 239 | _handler_INT23 () |
|---|
| 240 | { |
|---|
| 241 | } |
|---|
| 242 | |
|---|
| 243 | #pragma weak _handler_INT24 |
|---|
| 244 | |
|---|
| 245 | void __interrupt |
|---|
| 246 | _handler_INT24 () |
|---|
| 247 | { |
|---|
| 248 | } |
|---|
| 249 | |
|---|
| 250 | #pragma weak _handler_INT25 |
|---|
| 251 | |
|---|
| 252 | void __interrupt |
|---|
| 253 | _handler_INT25 () |
|---|
| 254 | { |
|---|
| 255 | } |
|---|
| 256 | |
|---|
| 257 | #pragma weak _handler_INT26 |
|---|
| 258 | |
|---|
| 259 | void __interrupt |
|---|
| 260 | _handler_INT26 () |
|---|
| 261 | { |
|---|
| 262 | } |
|---|
| 263 | |
|---|
| 264 | #pragma weak _handler_INT27 |
|---|
| 265 | |
|---|
| 266 | void __interrupt |
|---|
| 267 | _handler_INT27 () |
|---|
| 268 | { |
|---|
| 269 | } |
|---|
| 270 | |
|---|
| 271 | #pragma weak _handler_INT28 |
|---|
| 272 | |
|---|
| 273 | void __interrupt |
|---|
| 274 | _handler_INT28 () |
|---|
| 275 | { |
|---|
| 276 | } |
|---|
| 277 | |
|---|
| 278 | #pragma weak _handler_INT29 |
|---|
| 279 | |
|---|
| 280 | void __interrupt |
|---|
| 281 | _handler_INT29 () |
|---|
| 282 | { |
|---|
| 283 | } |
|---|
| 284 | |
|---|
| 285 | #pragma weak _handler_INT30 |
|---|
| 286 | |
|---|
| 287 | void __interrupt |
|---|
| 288 | _handler_INT30 () |
|---|
| 289 | { |
|---|
| 290 | } |
|---|
| 291 | |
|---|
| 292 | #pragma weak _handler_INT31 |
|---|
| 293 | |
|---|
| 294 | void __interrupt |
|---|
| 295 | _handler_INT31 () |
|---|
| 296 | { |
|---|
| 297 | } |
|---|