source: rtems/cpukit/score/inline/rtems/score/isr.inl @ ef49476

4.104.114.95
Last change on this file since ef49476 was ef49476, checked in by Ralf Corsepius <ralf.corsepius@…>, on 08/19/08 at 08:32:59

Add header guard to force indirect inclusion.

  • Property mode set to 100644
File size: 1.2 KB
Line 
1/**
2 *  @file  rtems/score/isr.inl
3 *
4 *  This include file contains the static implementation of all
5 *  inlined routines in the Interrupt Handler.
6 */
7
8/*
9 *  COPYRIGHT (c) 1989-2004.
10 *  On-Line Applications Research Corporation (OAR).
11 *
12 *  The license and distribution terms for this file may be
13 *  found in the file LICENSE in this distribution or at
14 *  http://www.rtems.com/license/LICENSE.
15 *
16 *  $Id$
17 */
18
19#ifndef _RTEMS_SCORE_ISR_H
20# error "Never use <rtems/score/isr.inl> directly; include <rtems/score/isr.h> instead."
21#endif
22
23#ifndef _RTEMS_SCORE_ISR_INL
24#define _RTEMS_SCORE_ISR_INL
25
26/**
27 *  @addtogroup ScoreISR
28 *  @{
29 */
30
31/**
32 *  This function returns TRUE if the vector is a valid vector number
33 *  for this processor and FALSE otherwise.
34 */
35
36RTEMS_INLINE_ROUTINE boolean _ISR_Is_vector_number_valid (
37  uint32_t   vector
38)
39{
40  return ( vector <= CPU_INTERRUPT_MAXIMUM_VECTOR_NUMBER );
41}
42
43/**
44 *  This function returns TRUE if handler is the entry point of a valid
45 *  use interrupt service routine and FALSE otherwise.
46 */
47
48RTEMS_INLINE_ROUTINE boolean _ISR_Is_valid_user_handler (
49  void *handler
50)
51{
52  return (handler != NULL);
53}
54
55/**@}*/
56
57#endif
58/* end of include file */
Note: See TracBrowser for help on using the repository browser.