source: rtems/bsps/i386/pc386/start/getcpuid.c @ f99b1f0

5
Last change on this file since f99b1f0 was 7a8e71b, checked in by Sebastian Huber <sebastian.huber@…>, on 04/24/18 at 05:36:46

bsps/i386: Move shared files to bsps

This patch is a part of the BSP source reorganization.

Update #3285.

  • 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.