bsps: Use standard file name for BSP support

This commit is contained in:
Sebastian Huber
2014-05-12 08:53:11 +02:00
parent ca2dd1ef09
commit 64a04ac3c7
9 changed files with 13 additions and 28 deletions

View File

@@ -126,7 +126,7 @@ libbsp_a_LIBADD += ../../../libcpu/@RTEMS_CPU@/tsec.rel
endif
if HAS_SMP
libbsp_a_SOURCES += startup/smp.c
libbsp_a_SOURCES += startup/bspsmp.c
endif
include $(srcdir)/preinstall.am

View File

@@ -77,7 +77,8 @@ libbsp_a_SOURCES += \
../../shared/src/irq-shell.c
if HAS_SMP
libbsp_a_SOURCES += ../../shared/smp/getcpuid.c ../../shared/smp/smp_stub.c
libbsp_a_SOURCES += ../../shared/bspsmp.c
libbsp_a_SOURCES += ../../shared/bspsmpgetcurrentprocessor.c
endif
if HAS_NETWORKING

View File

@@ -129,7 +129,8 @@ libbsp_a_SOURCES += ../../sparc/shared/i2c/i2cmst.c
libbsp_a_SOURCES += timer/timer.c
if HAS_SMP
libbsp_a_SOURCES += ../../shared/smp/getcpuid.c ../../shared/smp/smp_stub.c
libbsp_a_SOURCES += ../../shared/bspsmp.c
libbsp_a_SOURCES += ../../shared/bspsmpgetcurrentprocessor.c
endif
if HAS_NETWORKING

View File

@@ -124,8 +124,7 @@ libbsp_a_SOURCES += include/cache_.h
libbsp_a_CPPFLAGS = -I$(srcdir)/include
if HAS_SMP
libbsp_a_SOURCES += smp/getcpuid.c
libbsp_a_SOURCES += smp/smp_leon3.c
libbsp_a_SOURCES += startup/bspsmp.c
endif
if HAS_NETWORKING

View File

@@ -1,23 +0,0 @@
/**
* @file
* @ingroup sparc_leon3
* @brief LEON3 SMP Obtain CPU Core Number
*/
/*
* COPYRIGHT (c) 1989-2011.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
* found in the file LICENSE in this distribution or at
* http://www.rtems.org/license/LICENSE.
*/
#include <rtems/score/cpu.h>
#if !defined(__leon__)
uint32_t _CPU_SMP_Get_current_processor( void )
{
return _LEON3_Get_current_processor();
}
#endif

View File

@@ -19,6 +19,13 @@
#include <rtems/score/smpimpl.h>
#include <stdlib.h>
#if !defined(__leon__)
uint32_t _CPU_SMP_Get_current_processor( void )
{
return _LEON3_Get_current_processor();
}
#endif
static rtems_isr bsp_inter_processor_interrupt(
rtems_vector_number vector
)