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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [freertos-6.1.1/] [Demo/] [HCS12_GCC_banked/] [sys/] [interrupts.h] - Blame information for rev 588

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 588 jeremybenn
/* Interrupt Vectors
2
   Copyright (C) 2000, 2002, 2003 Free Software Foundation, Inc.
3
   Written by Stephane Carrez (stcarrez@nerim.fr)
4
 
5
This file is free software; you can redistribute it and/or modify it
6
under the terms of the GNU General Public License as published by the
7
Free Software Foundation; either version 2, or (at your option) any
8
later version.
9
 
10
In addition to the permissions in the GNU General Public License, the
11
Free Software Foundation gives you unlimited permission to link the
12
compiled version of this file with other programs, and to distribute
13
those programs without any restriction coming from the use of this
14
file.  (The General Public License restrictions do apply in other
15
respects; for example, they cover modification of the file, and
16
distribution when not linked into another program.)
17
 
18
This file is distributed in the hope that it will be useful, but
19
WITHOUT ANY WARRANTY; without even the implied warranty of
20
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
21
General Public License for more details.
22
 
23
You should have received a copy of the GNU General Public License
24
along with this program; see the file COPYING.  If not, write to
25
the Free Software Foundation, 59 Temple Place - Suite 330,
26
Boston, MA 02111-1307, USA.  */
27
 
28
#ifndef _SYS_INTERRUPTS_H
29
#define _SYS_INTERRUPTS_H
30
 
31
#include <sys/param.h>
32
 
33
#ifdef mc6811
34
//# include <asm-m68hc11/interrupts.h>
35
#endif
36
 
37
#ifdef mc68hcs12
38
# include <asm-m68hcs12/interrupts.h>
39
#elif defined(mc6812)
40
//# include <asm-m68hc12/interrupts.h>
41
#endif
42
 
43
/*! Install an interrupt handler.
44
 
45
    Install the interrupt handler for an exception.  The handler
46
    is installed for \b bootstrap mode and also for \b normal operating
47
    mode.
48
 
49
    @param id the interrupt number to be installed
50
    @param handler the interrupt handler entry point
51
*/
52
extern void
53
set_interrupt_handler (interrupt_vector_id id, interrupt_t handler);
54
 
55
/*! Default and fatal interrupt handler.
56
 
57
    This function is an interrupt handler intended to be used to
58
    handle all interrupt not used by a program.  Since it is an
59
    error to have an interrupt when it is not handled, the default
60
    behavior is to print a message and stop.  */
61
extern void __attribute__((interrupt, noreturn))
62
fatal_interrupt (void);
63
 
64
#include <arch/interrupts.h>
65
 
66
/*! Entry point of any program.
67
 
68
    This function should never be called by itself.  It represents the
69
    entry point of any program.  It is intended to be used in an
70
    interrupt table to specify the function to jump to after reset.  */
71
extern void _start (void);
72
 
73
#endif

powered by: WebSVN 2.1.0

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