4.104.114.84.95
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_INL |
---|
20 | #define _RTEMS_SCORE_ISR_INL |
---|
21 | |
---|
22 | /** |
---|
23 | * @addtogroup ScoreISR |
---|
24 | * @{ |
---|
25 | */ |
---|
26 | |
---|
27 | /** |
---|
28 | * This function returns TRUE if the vector is a valid vector number |
---|
29 | * for this processor and FALSE otherwise. |
---|
30 | */ |
---|
31 | |
---|
32 | RTEMS_INLINE_ROUTINE boolean _ISR_Is_vector_number_valid ( |
---|
33 | uint32_t vector |
---|
34 | ) |
---|
35 | { |
---|
36 | return ( vector <= CPU_INTERRUPT_MAXIMUM_VECTOR_NUMBER ); |
---|
37 | } |
---|
38 | |
---|
39 | /** |
---|
40 | * This function returns TRUE if handler is the entry point of a valid |
---|
41 | * use interrupt service routine and FALSE otherwise. |
---|
42 | */ |
---|
43 | |
---|
44 | RTEMS_INLINE_ROUTINE boolean _ISR_Is_valid_user_handler ( |
---|
45 | void *handler |
---|
46 | ) |
---|
47 | { |
---|
48 | return ( handler != NULL); |
---|
49 | } |
---|
50 | |
---|
51 | /**@}*/ |
---|
52 | |
---|
53 | #endif |
---|
54 | /* end of include file */ |
---|
Note: See
TracBrowser
for help on using the repository browser.