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 | |
---|
27 | rtems_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 | |
---|
42 | void 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 | |
---|
55 | void 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 | |
---|
68 | boolean rtems_interrupt_is_in_progress( void ) |
---|
69 | { |
---|
70 | return _ISR_Is_in_progress(); |
---|
71 | } |
---|