source: rtems/c/src/lib/libbsp/sparc/leon3/smp/getcpuid.c @ 67a7a2c

4.115
Last change on this file since 67a7a2c was 67a7a2c, checked in by Sebastian Huber <sebastian.huber@…>, on 04/14/14 at 06:09:54

sparc: Use leon multilib define

  • Property mode set to 100644
File size: 490 bytes
Line 
1/**
2 * @file
3 * @ingroup sparc_leon3
4 * @brief LEON3 SMP Obtain CPU Core Number
5 */
6
7/*
8 *  COPYRIGHT (c) 1989-2011.
9 *  On-Line Applications Research Corporation (OAR).
10 *
11 *  The license and distribution terms for this file may be
12 *  found in the file LICENSE in this distribution or at
13 *  http://www.rtems.org/license/LICENSE.
14 */
15
16#include <rtems/score/cpu.h>
17
18#if !defined(__leon__)
19uint32_t _CPU_SMP_Get_current_processor( void )
20{
21  return _LEON3_Get_current_processor();
22}
23#endif
Note: See TracBrowser for help on using the repository browser.