source: rtems/c/src/lib/libbsp/i386/shared/smp/getcpuid.c @ c499856

4.115
Last change on this file since c499856 was c499856, checked in by Chris Johns <chrisj@…>, on 03/20/14 at 21:10:47

Change all references of rtems.com to rtems.org.

  • Property mode set to 100644
File size: 519 bytes
Line 
1/*
2 *  COPYRIGHT (c) 2011.
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.org/license/LICENSE.
8 */
9
10#include <rtems/score/cpu.h>
11
12#include <bsp/apic.h>
13#include <bsp/smp-imps.h>
14
15static int lapic_dummy = 0;
16unsigned imps_lapic_addr = ((unsigned)(&lapic_dummy)) - LAPIC_ID;
17
18uint32_t _CPU_SMP_Get_current_processor( void )
19{
20  return APIC_ID(IMPS_LAPIC_READ(LAPIC_ID));
21}
22
Note: See TracBrowser for help on using the repository browser.