source: rtems/cpukit/rtems/src/intrbody.c @ 60b791ad

4.104.114.84.95
Last change on this file since 60b791ad was 60b791ad, checked in by Joel Sherrill <joel.sherrill@…>, on 02/17/98 at 23:46:28

updated copyright to 1998

  • Property mode set to 100644
File size: 1.3 KB
Line 
1/*
2 *  Bodies for Inlined Interrupt Manager Routines
3 *
4 *
5 *  COPYRIGHT (c) 1989-1998.
6 *  On-Line Applications Research Corporation (OAR).
7 *  Copyright assigned to U.S. Government, 1994.
8 *
9 *  The license and distribution terms for this file may be
10 *  found in the file LICENSE in this distribution or at
11 *  http://www.OARcorp.com/rtems/license.html.
12 *
13 *  $Id$
14 */
15
16#include <rtems/system.h>
17#include <rtems/rtems/status.h>
18#include <rtems/score/isr.h>
19#include <rtems/rtems/intr.h>
20
21/*
22 *  Real body for rtems_interrupt_disable
23 */
24
25#undef rtems_interrupt_disable
26
27rtems_interrupt_level rtems_interrupt_disable( void )
28{
29  rtems_interrupt_level previous_level;
30
31  _ISR_Disable( previous_level );
32
33  return previous_level;
34}
35
36/*
37 *  Real body for rtems_interrupt_enable
38 */
39
40#undef rtems_interrupt_enable
41
42void rtems_interrupt_enable(
43  rtems_interrupt_level previous_level
44)
45{
46  _ISR_Enable( previous_level );
47}
48
49/*
50 *  Real body for rtems_interrupt_flash
51 */
52
53#undef rtems_interrupt_flash
54
55void rtems_interrupt_flash(
56  rtems_interrupt_level previous_level
57)
58{
59  _ISR_Flash( previous_level );
60}
61
62/*
63 *  Real body for rtems_interrupt_is_in_progress
64 */
65
66#undef rtems_interrupt_is_in_progress
67
68boolean rtems_interrupt_is_in_progress( void )
69{
70  return _ISR_Is_in_progress();
71}
Note: See TracBrowser for help on using the repository browser.