OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [rtems-20020807/] [cpukit/] [rtems/] [src/] [intrbody.c] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1026 ivang
/*
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
 *  intrbody.c,v 1.4 1999/11/17 17:50:27 joel Exp
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
 
26
rtems_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
 
41
void 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
 
54
void 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
 
67
boolean rtems_interrupt_is_in_progress( void )
68
{
69
  return _ISR_Is_in_progress();
70
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.