source: rtems/cpukit/score/inline/rtems/score/isr.inl @ 98e4ebf5

4.104.114.84.95
Last change on this file since 98e4ebf5 was 98e4ebf5, checked in by Joel Sherrill <joel.sherrill@…>, on 10/08/97 at 15:45:54

Fixed typo in the pointer to the license terms.

  • Property mode set to 100644
File size: 1.6 KB
Line 
1/*  isr.inl
2 *
3 *  This include file contains the static implementation of all
4 *  inlined routines in the Interrupt Handler.
5 *
6 *  COPYRIGHT (c) 1989-1997.
7 *  On-Line Applications Research Corporation (OAR).
8 *  Copyright assigned to U.S. Government, 1994.
9 *
10 *  The license and distribution terms for this file may be
11 *  found in the file LICENSE in this distribution or at
12 *  http://www.OARcorp.com/rtems/license.html.
13 *
14 *  $Id$
15 */
16
17#ifndef __ISR_inl
18#define __ISR_inl
19
20/*PAGE
21 *
22 *  _ISR_Is_in_progress
23 *
24 *  DESCRIPTION:
25 *
26 *  This function returns TRUE if the processor is currently servicing
27 *  and interrupt and FALSE otherwise.   A return value of TRUE indicates
28 *  that the caller is an interrupt service routine, NOT a thread.  The
29 *  directives available to an interrupt service routine are restricted.
30 */
31
32RTEMS_INLINE_ROUTINE boolean _ISR_Is_in_progress( void )
33{
34  return (_ISR_Nest_level != 0);
35}
36
37/*PAGE
38 *
39 *  _ISR_Is_vector_number_valid
40 *
41 *  DESCRIPTION:
42 *
43 *  This function returns TRUE if the vector is a valid vector number
44 *  for this processor and FALSE otherwise.
45 */
46
47RTEMS_INLINE_ROUTINE boolean _ISR_Is_vector_number_valid (
48  unsigned32 vector
49)
50{
51  return ( vector <= CPU_INTERRUPT_MAXIMUM_VECTOR_NUMBER );
52}
53
54/*PAGE
55 *
56 *  _ISR_Is_valid_user_handler
57 *
58 *
59 *  DESCRIPTION:
60 *
61 *  This function returns TRUE if handler is the entry point of a valid
62 *  use interrupt service routine and FALSE otherwise.
63 */
64
65RTEMS_INLINE_ROUTINE boolean _ISR_Is_valid_user_handler (
66  void *handler
67)
68{
69  return ( handler != NULL);
70}
71
72#endif
73/* end of include file */
Note: See TracBrowser for help on using the repository browser.