source: rtems/c/src/lib/libcpu/mips/shared/interrupts/maxvectors.c @ 2e7ed911

4.104.114.84.95
Last change on this file since 2e7ed911 was 2e7ed911, checked in by Joel Sherrill <joel.sherrill@…>, on May 22, 2001 at 11:20:14 PM

2001-05-22 Greg Menke <gregory.menke@…>

  • Assisted in design and debug by Joel Sherrill <joel@…>.
  • mongoosev/duart/mg5uart.c, mongoosev/duart/mg5uart.h, mongoosev/include/mongoose-v.h, mongoosev/vectorisrs/vectorisrs.c, shared/interrupts/maxvectors.c: Now works. Significant rework of exceptions and interrupt vectoring to clean things up.
  • shared/interrupts/vectorexceptions.c: Removed.
  • shared/interrupts/Makefile.am: Reflects above.
  • Property mode set to 100644
File size: 1.3 KB
Line 
1/*
2 *  This file contains the maximum number of vectors.  This can not
3 *  be determined without knowing the RTEMS CPU model.
4 *
5 *  COPYRIGHT (c) 1989-2000.
6 *  On-Line Applications Research Corporation (OAR).
7 *
8 *  The license and distribution terms for this file may be
9 *  found in the file LICENSE in this distribution or at
10 *  http://www.OARcorp.com/rtems/license.html.
11 *
12 *  $Id$
13 */
14
15
16/*
17 *  The Toshiba TX3904 attaches 4 of the eight interrupt bits to an
18 *  on-CPU interrupt controller so that these four bits map to 16
19 *  unique interrupts.  So you have: 2 software interrupts, an NMI,
20 *  and 16 others.
21 */
22
23#if defined(TX39)
24#define MAX_VECTORS 19
25#endif
26
27/*
28 *  The Synova Mongoose-V attached one of the eight interrupt bits
29 *  to a Peripheral Function Interrupt Cause Register on-CPU.
30 *  This results in: 2 software interrupts, 5 interrupts
31 *  through the IP bits, and 32 more from the PFICR.  Some of
32 *  these are reserved but for simplicity in processing, we
33 *  reserve slots for those bits anyway.
34 *
35 * gdm, 5/14, added 15 more slots so exceptions can be vectored as well.
36 */
37
38#if defined(MONGOOSEV)
39#define MAX_VECTORS (38+10)
40#endif
41
42#ifndef MAX_VECTORS
43#define MAX_VECTORS 8
44#endif
45
46unsigned int mips_interrupt_number_of_vectors = MAX_VECTORS;
47
Note: See TracBrowser for help on using the repository browser.