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

4.104.114.84.9
Last change on this file since acdb6558 was acdb6558, checked in by Joel Sherrill <joel.sherrill@…>, on Mar 14, 2001 at 12:49:17 AM

2001-03-13 Joel Sherrill <joel@…>

  • Added mongoose-v, mongoose-v/include, and mongoose-v/vectorisrs directories.
  • mongoosev/.cvsignore, mongoosev/Makefile.am, mongoosev/README, mongoosev/duart/.cvsignore, mongoosev/duart/Makefile.am, mongoosev/duart/README.mguart, mongoosev/duart/mg5uart.c, mongoosev/duart/mg5uart.h, mongoosev/duart/mg5uart_reg.c, mongoosev/include/.cvsignore, mongoosev/include/Makefile.am, mongoosev/include/mongoose-v.h, mongoosev/vectorisrs/.cvsignore, mongoosev/vectorisrs/Makefile.am, mongoosev/vectorisrs/vectorisrs.c: New files.
  • Makefile.am, configure.in, shared/interrupts/Makefile.am, shared/interrupts/maxvectors.c: Added support for mongoosev.
  • tx39/vectorisrs/vectorisrs.c: Corrected warning.
  • Property mode set to 100644
File size: 1.2 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
36#if defined(MONGOOSEV)
37#define MAX_VECTORS 37
38#endif
39
40#ifndef MAX_VECTORS
41#define MAX_VECTORS 8
42#endif
43
44unsigned int mips_interrupt_number_of_vectors = MAX_VECTORS;
Note: See TracBrowser for help on using the repository browser.