RTEMS  5.1
smp.h
Go to the documentation of this file.
1 
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 
46 #if defined(RTEMS_SMP)
47  extern const uint32_t _SMP_Processor_configured_maximum;
48 #else
49  #define _SMP_Processor_configured_maximum 1
50 #endif
51 
52 #if defined( RTEMS_SMP )
53  extern uint32_t _SMP_Processor_maximum;
54 
55  static inline uint32_t _SMP_Get_processor_maximum( void )
56  {
57  return _SMP_Processor_maximum;
58  }
59 #else
60  #define _SMP_Get_processor_maximum() UINT32_C(1)
61 #endif
62 
63 #if defined( RTEMS_SMP )
64  static inline uint32_t _SMP_Get_current_processor( void )
65  {
66  return _CPU_SMP_Get_current_processor();
67  }
68 #else
69  #define _SMP_Get_current_processor() UINT32_C(0)
70 #endif
71 
74 #ifdef __cplusplus
75 }
76 #endif
77 
78 #endif
79 /* end of include file */
#define _SMP_Processor_configured_maximum
The configured processor maximum.
Definition: smp.h:49