forked from Imagelibrary/rtems
bsps: Use standard file name for BSP support
This commit is contained in:
@@ -126,7 +126,7 @@ libbsp_a_LIBADD += ../../../libcpu/@RTEMS_CPU@/tsec.rel
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
if HAS_SMP
|
if HAS_SMP
|
||||||
libbsp_a_SOURCES += startup/smp.c
|
libbsp_a_SOURCES += startup/bspsmp.c
|
||||||
endif
|
endif
|
||||||
|
|
||||||
include $(srcdir)/preinstall.am
|
include $(srcdir)/preinstall.am
|
||||||
|
|||||||
@@ -77,7 +77,8 @@ libbsp_a_SOURCES += \
|
|||||||
../../shared/src/irq-shell.c
|
../../shared/src/irq-shell.c
|
||||||
|
|
||||||
if HAS_SMP
|
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
|
endif
|
||||||
|
|
||||||
if HAS_NETWORKING
|
if HAS_NETWORKING
|
||||||
|
|||||||
@@ -129,7 +129,8 @@ libbsp_a_SOURCES += ../../sparc/shared/i2c/i2cmst.c
|
|||||||
libbsp_a_SOURCES += timer/timer.c
|
libbsp_a_SOURCES += timer/timer.c
|
||||||
|
|
||||||
if HAS_SMP
|
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
|
endif
|
||||||
|
|
||||||
if HAS_NETWORKING
|
if HAS_NETWORKING
|
||||||
|
|||||||
@@ -124,8 +124,7 @@ libbsp_a_SOURCES += include/cache_.h
|
|||||||
libbsp_a_CPPFLAGS = -I$(srcdir)/include
|
libbsp_a_CPPFLAGS = -I$(srcdir)/include
|
||||||
|
|
||||||
if HAS_SMP
|
if HAS_SMP
|
||||||
libbsp_a_SOURCES += smp/getcpuid.c
|
libbsp_a_SOURCES += startup/bspsmp.c
|
||||||
libbsp_a_SOURCES += smp/smp_leon3.c
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if HAS_NETWORKING
|
if HAS_NETWORKING
|
||||||
|
|||||||
@@ -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
|
|
||||||
@@ -19,6 +19,13 @@
|
|||||||
#include <rtems/score/smpimpl.h>
|
#include <rtems/score/smpimpl.h>
|
||||||
#include <stdlib.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(
|
static rtems_isr bsp_inter_processor_interrupt(
|
||||||
rtems_vector_number vector
|
rtems_vector_number vector
|
||||||
)
|
)
|
||||||
Reference in New Issue
Block a user