4.104.114.84.95
Last change
on this file since 89ee0b6 was
89ee0b6,
checked in by Joel Sherrill <joel.sherrill@…>, on 11/28/01 at 18:28:24
|
2001-11-28 Joel Sherrill <joel@…>,
This was tracked as PR91.
- include/rtems/score/isr.h, inline/rtems/score/isr.inl,
macros/rtems/score/isr.inl: Modified to allow any port to provide
its own implementation of the macro _ISR_Is_in_progress. If the
port overrides this macro, it must provide a non-inlined function
implementation.
|
-
Property mode set to
100644
|
File size:
1.1 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-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 | * $Id$ |
---|
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 */ |
---|
Note: See
TracBrowser
for help on using the repository browser.