4.104.115
Last change
on this file since 749d64a was
ee3b1c13,
checked in by Joel Sherrill <joel.sherrill@…>, on 09/16/09 at 22:15:58
|
2009-09-16 Joel Sherrill <joel.sherrill@…>
- score/src/userextaddapiset.c: Disable code that is only used when
ITRON or POSIX is enabled.
|
-
Property mode set to
100644
|
File size:
1.1 KB
|
Line | |
---|
1 | /* |
---|
2 | * COPYRIGHT (c) 1989-2009. |
---|
3 | * On-Line Applications Research Corporation (OAR). |
---|
4 | * |
---|
5 | * The license and distribution terms for this file may be |
---|
6 | * found in the file LICENSE in this distribution or at |
---|
7 | * http://www.rtems.com/license/LICENSE. |
---|
8 | * |
---|
9 | * $Id$ |
---|
10 | */ |
---|
11 | |
---|
12 | #if HAVE_CONFIG_H |
---|
13 | #include "config.h" |
---|
14 | #endif |
---|
15 | |
---|
16 | #include <rtems/system.h> |
---|
17 | #include <rtems/score/userext.h> |
---|
18 | |
---|
19 | /** |
---|
20 | * This routine is used to add an API extension set to the active list. |
---|
21 | */ |
---|
22 | void _User_extensions_Add_API_set ( |
---|
23 | User_extensions_Control *the_extension |
---|
24 | ) |
---|
25 | { |
---|
26 | _Chain_Append( &_User_extensions_List, &the_extension->Node ); |
---|
27 | |
---|
28 | /* |
---|
29 | * If a switch handler is present, append it to the switch chain. |
---|
30 | * |
---|
31 | * NOTE: The Classic API has an extension. Neither POSIX nor ITRON do. |
---|
32 | * So if they are not configured, then do not check for NULL. |
---|
33 | */ |
---|
34 | #if defined(RTEMS_POSIX_API) || defined(RTEMS_ITRON_API) |
---|
35 | if ( the_extension->Callouts.thread_switch != NULL ) |
---|
36 | #endif |
---|
37 | { |
---|
38 | the_extension->Switch.thread_switch = the_extension->Callouts.thread_switch; |
---|
39 | _Chain_Append( |
---|
40 | &_User_extensions_Switches_list, &the_extension->Switch.Node ); |
---|
41 | } |
---|
42 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.