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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [rtems-20020807/] [cpukit/] [score/] [inline/] [rtems/] [score/] [isr.inl] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1026 ivang
/*  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-1999.
7
 *  On-Line Applications Research Corporation (OAR).
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
 *  isr.inl,v 1.13 2001/11/28 18:28:24 joel Exp
14
 */
15
 
16
#ifndef __ISR_inl
17
#define __ISR_inl
18
 
19
/*PAGE
20
 *
21
 *  _ISR_Is_vector_number_valid
22
 *
23
 *  DESCRIPTION:
24
 *
25
 *  This function returns TRUE if the vector is a valid vector number
26
 *  for this processor and FALSE otherwise.
27
 */
28
 
29
RTEMS_INLINE_ROUTINE boolean _ISR_Is_vector_number_valid (
30
  unsigned32 vector
31
)
32
{
33
  return ( vector <= CPU_INTERRUPT_MAXIMUM_VECTOR_NUMBER );
34
}
35
 
36
/*PAGE
37
 *
38
 *  _ISR_Is_valid_user_handler
39
 *
40
 *
41
 *  DESCRIPTION:
42
 *
43
 *  This function returns TRUE if handler is the entry point of a valid
44
 *  use interrupt service routine and FALSE otherwise.
45
 */
46
 
47
RTEMS_INLINE_ROUTINE boolean _ISR_Is_valid_user_handler (
48
  void *handler
49
)
50
{
51
  return ( handler != NULL);
52
}
53
 
54
#endif
55
/* end of include file */

powered by: WebSVN 2.1.0

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