source: rtems/cpukit/rtems/src/intrbody.c @ a29d2e7

4.104.114.84.95
Last change on this file since a29d2e7 was 1095ec1, checked in by Ralf Corsepius <ralf.corsepius@…>, on 01/18/05 at 09:03:45

Include config.h.

  • Property mode set to 100644
File size: 1.2 KB
Line 
1/*
2 *  Bodies for Inlined Interrupt Manager Routines
3 *
4 *
5 *  COPYRIGHT (c) 1989-1999.
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.rtems.com/license/LICENSE.
11 *
12 *  $Id$
13 */
14
15#if HAVE_CONFIG_H
16#include "config.h"
17#endif
18
19#include <rtems/system.h>
20#include <rtems/rtems/status.h>
21#include <rtems/score/isr.h>
22#include <rtems/rtems/intr.h>
23
24/*
25 *  Real body for rtems_interrupt_disable
26 */
27
28#undef rtems_interrupt_disable
29
30rtems_interrupt_level rtems_interrupt_disable( void )
31{
32  rtems_interrupt_level previous_level;
33
34  _ISR_Disable( previous_level );
35
36  return previous_level;
37}
38
39/*
40 *  Real body for rtems_interrupt_enable
41 */
42
43#undef rtems_interrupt_enable
44
45void rtems_interrupt_enable(
46  rtems_interrupt_level previous_level
47)
48{
49  _ISR_Enable( previous_level );
50}
51
52/*
53 *  Real body for rtems_interrupt_flash
54 */
55
56#undef rtems_interrupt_flash
57
58void rtems_interrupt_flash(
59  rtems_interrupt_level previous_level
60)
61{
62  _ISR_Flash( previous_level );
63}
64
65/*
66 *  Real body for rtems_interrupt_is_in_progress
67 */
68
69#undef rtems_interrupt_is_in_progress
70
71boolean rtems_interrupt_is_in_progress( void )
72{
73  return _ISR_Is_in_progress();
74}
Note: See TracBrowser for help on using the repository browser.