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

4.104.114.84.95
Last change on this file since 0289674 was 0289674, checked in by Joel Sherrill <joel.sherrill@…>, on 12/13/00 at 22:10:07

2000-12-13 Joel Sherrill <joel@…>

  • configure.in: Added new directories.
  • shared/interrupts/Makefile.am: Added AM_CPPFLAGS to define TX39 when compiling for a TX3904.
  • shared/interrupts/maxvectors.c: Corrected conditional logic.
  • tx39/Makefile.am: Added vectorisrs.
  • tx39/vectorisrs/Makefile.am, tx39/vectorisrs/vectorisrs.c,
  • tx39/vectorisrs/.cvsignore: New files. This decodes the interrupt pending information on the TX3904 and vectors an interrupt.
  • Property mode set to 100644
File size: 773 bytes
RevLine 
[b4d0d18e]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 tx3904 attaches 4 of the eight interrupt bits to an on-CPU interrupt
18 *  controller so that these four bits map to 16 unique interrupts.
19 *  So you have: 2 software interrupts, an NMI, and 16 others.
20 */
[0289674]21#if defined(TX39)
[b4d0d18e]22#define MAX_VECTORS 19
23#endif
24
[0289674]25#ifndef MAX_VECTORS
[b4d0d18e]26#define MAX_VECTORS 8
27#endif
28
29unsigned int mips_interrupt_number_of_vectors = MAX_VECTORS;
Note: See TracBrowser for help on using the repository browser.