source: rtems/cpukit/include/rtems/score/smp.h @ f49618d

5
Last change on this file since f49618d 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
RevLine 
[0d5a9f1]1/**
[edde99b]2 * @file
[0d5a9f1]3 *
[4c20da4b]4 * @ingroup RTEMSScoreSMP
[319cb20]5 *
[edde99b]6 * @brief SuperCore SMP Support API
[0d5a9f1]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
[c499856]15 *  http://www.rtems.org/license/LICENSE.
[0d5a9f1]16 */
17
18#ifndef _RTEMS_SCORE_SMP_H
19#define _RTEMS_SCORE_SMP_H
20
[edde99b]21#include <rtems/score/cpu.h>
22
23#ifdef __cplusplus
24extern "C" {
25#endif
[0d5a9f1]26
27/**
[4c20da4b]28 * @defgroup RTEMSScoreSMP SMP Support
[edde99b]29 *
[4c20da4b]30 * @ingroup RTEMSScore
[0d5a9f1]31 *
[3238c162]32 * @brief SMP Support
33 *
[edde99b]34 * This defines the interface of the SuperCore SMP support.
[d8cd045c]35 *
[edde99b]36 * @{
[0d5a9f1]37 */
38
[edde99b]39#if defined( RTEMS_SMP )
[cfcd6dc9]40  extern uint32_t _SMP_Processor_maximum;
[edde99b]41
[ad87de4]42  static inline uint32_t _SMP_Get_processor_maximum( void )
[edde99b]43  {
[cfcd6dc9]44    return _SMP_Processor_maximum;
[edde99b]45  }
46#else
[ad87de4]47  #define _SMP_Get_processor_maximum() UINT32_C(1)
[edde99b]48#endif
49
[39e51758]50#if defined( RTEMS_SMP )
[47d60134]51  static inline uint32_t _SMP_Get_current_processor( void )
[39e51758]52  {
53    return _CPU_SMP_Get_current_processor();
54  }
55#else
[2cb95b5f]56  #define _SMP_Get_current_processor() UINT32_C(0)
[39e51758]57#endif
58
[6ca4f6a]59/** @} */
60
[0d5a9f1]61#ifdef __cplusplus
62}
63#endif
64
65#endif
[a15eaaf]66/* end of include file */
Note: See TracBrowser for help on using the repository browser.