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, 1990, 1991, 1992, 1993, 1994. |
---|
7 | * On-Line Applications Research Corporation (OAR). |
---|
8 | * All rights assigned to U.S. Government, 1994. |
---|
9 | * |
---|
10 | * This material may be reproduced by or for the U.S. Government pursuant |
---|
11 | * to the copyright license under the clause at DFARS 252.227-7013. This |
---|
12 | * notice must appear in all copies of this file and its derivatives. |
---|
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 | |
---|
32 | RTEMS_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 | |
---|
47 | RTEMS_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 | |
---|
65 | RTEMS_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 */ |
---|