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

4.104.114.84.95
Last change on this file since d66ca67 was 08311cc3, checked in by Joel Sherrill <joel.sherrill@…>, on 11/17/99 at 17:51:34

Updated copyright notice.

  • 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.OARcorp.com/rtems/license.html.
11 *
12 *  $Id$
13 */
14
15#include <rtems/system.h>
16#include <rtems/rtems/status.h>
17#include <rtems/score/isr.h>
18#include <rtems/rtems/intr.h>
19
20/*
21 *  Real body for rtems_interrupt_disable
22 */
23
24#undef rtems_interrupt_disable
25
26rtems_interrupt_level rtems_interrupt_disable( void )
27{
28  rtems_interrupt_level previous_level;
29
30  _ISR_Disable( previous_level );
31
32  return previous_level;
33}
34
35/*
36 *  Real body for rtems_interrupt_enable
37 */
38
39#undef rtems_interrupt_enable
40
41void rtems_interrupt_enable(
42  rtems_interrupt_level previous_level
43)
44{
45  _ISR_Enable( previous_level );
46}
47
48/*
49 *  Real body for rtems_interrupt_flash
50 */
51
52#undef rtems_interrupt_flash
53
54void rtems_interrupt_flash(
55  rtems_interrupt_level previous_level
56)
57{
58  _ISR_Flash( previous_level );
59}
60
61/*
62 *  Real body for rtems_interrupt_is_in_progress
63 */
64
65#undef rtems_interrupt_is_in_progress
66
67boolean rtems_interrupt_is_in_progress( void )
68{
69  return _ISR_Is_in_progress();
70}
Note: See TracBrowser for help on using the repository browser.