5
Last change
on this file since 5803f37 was
3238c162,
checked in by Andreas Dachsberger <andreas.dachsberger@…>, on 04/18/19 at 08:13:25
|
doxygen: score: adjust doc in smp.h to doxygen guidelines
Update #3706.
|
-
Property mode set to
100644
|
File size:
1.1 KB
|
Line | |
---|
1 | /** |
---|
2 | * @file |
---|
3 | * |
---|
4 | * @ingroup RTEMSScoreSMP |
---|
5 | * |
---|
6 | * @brief SuperCore SMP Support API |
---|
7 | */ |
---|
8 | |
---|
9 | /* |
---|
10 | * COPYRIGHT (c) 1989-2011. |
---|
11 | * On-Line Applications Research Corporation (OAR). |
---|
12 | * |
---|
13 | * The license and distribution terms for this file may be |
---|
14 | * found in the file LICENSE in this distribution or at |
---|
15 | * http://www.rtems.org/license/LICENSE. |
---|
16 | */ |
---|
17 | |
---|
18 | #ifndef _RTEMS_SCORE_SMP_H |
---|
19 | #define _RTEMS_SCORE_SMP_H |
---|
20 | |
---|
21 | #include <rtems/score/cpu.h> |
---|
22 | |
---|
23 | #ifdef __cplusplus |
---|
24 | extern "C" { |
---|
25 | #endif |
---|
26 | |
---|
27 | /** |
---|
28 | * @defgroup RTEMSScoreSMP SMP Support |
---|
29 | * |
---|
30 | * @ingroup RTEMSScore |
---|
31 | * |
---|
32 | * @brief SMP Support |
---|
33 | * |
---|
34 | * This defines the interface of the SuperCore SMP support. |
---|
35 | * |
---|
36 | * @{ |
---|
37 | */ |
---|
38 | |
---|
39 | #if defined( RTEMS_SMP ) |
---|
40 | extern uint32_t _SMP_Processor_maximum; |
---|
41 | |
---|
42 | static inline uint32_t _SMP_Get_processor_maximum( void ) |
---|
43 | { |
---|
44 | return _SMP_Processor_maximum; |
---|
45 | } |
---|
46 | #else |
---|
47 | #define _SMP_Get_processor_maximum() UINT32_C(1) |
---|
48 | #endif |
---|
49 | |
---|
50 | #if defined( RTEMS_SMP ) |
---|
51 | static inline uint32_t _SMP_Get_current_processor( void ) |
---|
52 | { |
---|
53 | return _CPU_SMP_Get_current_processor(); |
---|
54 | } |
---|
55 | #else |
---|
56 | #define _SMP_Get_current_processor() UINT32_C(0) |
---|
57 | #endif |
---|
58 | |
---|
59 | /** @} */ |
---|
60 | |
---|
61 | #ifdef __cplusplus |
---|
62 | } |
---|
63 | #endif |
---|
64 | |
---|
65 | #endif |
---|
66 | /* end of include file */ |
---|
Note: See
TracBrowser
for help on using the repository browser.