source: rtems/cpukit/score/cpu/nios2/nios2-isr-install-vector.c @ 43e0599

4.115
Last change on this file since 43e0599 was 43e0599, checked in by Mathew Kallada <matkallada@…>, on 12/02/12 at 21:23:57

score misc: Clean up Doxygen #13 (GCI 2012)

This patch is a task from GCI 2012 which improves the Doxygen
comments in the RTEMS source.

http://www.google-melange.com/gci/task/view/google/gci2012/8013205

  • Property mode set to 100644
File size: 1.5 KB
Line 
1/**
2 * @file
3 *
4 * @brief NIOS2 CPU ISR Install Vector
5 */
6
7/*
8 * Copyright (c) 2006 Kolja Waschk (rtemsdev/ixo.de)
9 *
10 * COPYRIGHT (c) 1989-2006
11 * On-Line Applications Research Corporation (OAR).
12 *
13 * The license and distribution terms for this file may be
14 * found in the file LICENSE in this distribution or at
15 * http://www.rtems.com/license/LICENSE.
16 */
17
18#ifdef HAVE_CONFIG_H
19  #include "config.h"
20#endif
21
22#include <rtems/score/isr.h>
23
24/*
25 *  _CPU_ISR_install_vector
26 *
27 *  This kernel routine installs the RTEMS handler for the
28 *  specified vector.
29 *
30 *  Input parameters:
31 *    vector      - interrupt vector number
32 *    old_handler - former ISR for this vector number
33 *    new_handler - replacement ISR for this vector number
34 *
35 *  Output parameters:  NONE
36 *
37 *
38 *  NO_CPU Specific Information:
39 *
40 *  XXX document implementation including references if appropriate
41 */
42
43void _CPU_ISR_install_vector(
44  uint32_t    vector,
45  proc_ptr    new_handler,
46  proc_ptr   *old_handler
47)
48{
49   *old_handler = _ISR_Vector_table[ vector ];
50
51   /*
52    *  If the interrupt vector table is a table of pointer to isr entry
53    *  points, then we need to install the appropriate RTEMS interrupt
54    *  handler for this vector number.
55    */
56
57   _CPU_ISR_install_raw_handler( vector, new_handler, old_handler );
58
59   /*
60    *  We put the actual user ISR address in '_ISR_vector_table'.  This will
61    *  be used by the _ISR_Handler so the user gets control.
62    */
63
64    _ISR_Vector_table[ vector ] = new_handler;
65}
Note: See TracBrowser for help on using the repository browser.