summaryrefslogtreecommitdiffstats
path: root/schedsim/shell/schedsim_smpsimple
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@oarcorp.com>2014-05-26 12:15:11 -0500
committerJoel Sherrill <joel.sherrill@oarcorp.com>2014-05-26 12:15:11 -0500
commit87c69f3abbdbb987d664159629b39625e822252d (patch)
treee84d3e7445aa92e1644cd5c084e9d03e0ce73099 /schedsim/shell/schedsim_smpsimple
parentlookup*.c, main_semobtain.c: Link on uniprocessor again (diff)
downloadrtems-schedsim-87c69f3abbdbb987d664159629b39625e822252d.tar.bz2
shared/smp_stub.c: Only one shared version now
Diffstat (limited to 'schedsim/shell/schedsim_smpsimple')
-rw-r--r--schedsim/shell/schedsim_smpsimple/Makefile.am1
-rw-r--r--schedsim/shell/schedsim_smpsimple/smp_stub.c63
2 files changed, 0 insertions, 64 deletions
diff --git a/schedsim/shell/schedsim_smpsimple/Makefile.am b/schedsim/shell/schedsim_smpsimple/Makefile.am
index bc058fe..d85d554 100644
--- a/schedsim/shell/schedsim_smpsimple/Makefile.am
+++ b/schedsim/shell/schedsim_smpsimple/Makefile.am
@@ -6,7 +6,6 @@ schedsim_smpsimple_SOURCES += main_current_cpu.c
schedsim_smpsimple_SOURCES += main_dispatch.c
schedsim_smpsimple_SOURCES += main_dump_ready_tasks.c
schedsim_smpsimple_SOURCES += printheir_executing.c
-schedsim_smpsimple_SOURCES += smp_stub.c
schedsim_smpsimple_SOURCES += wrap_thread_dispatch.c
cpukitdir=@rtems_srcdir@/cpukit
diff --git a/schedsim/shell/schedsim_smpsimple/smp_stub.c b/schedsim/shell/schedsim_smpsimple/smp_stub.c
deleted file mode 100644
index 37befbd..0000000
--- a/schedsim/shell/schedsim_smpsimple/smp_stub.c
+++ /dev/null
@@ -1,63 +0,0 @@
-/*
- * RTEMS SMP Support for Single Core
- *
- * COPYRIGHT (c) 1989-2013.
- * 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.com/license/LICENSE.
- */
-
-#include <rtems.h>
-#include <rtems/bspIo.h>
-#include <stdlib.h>
-
-uint32_t Schedsim_Current_cpu;
-extern uint32_t Schedsim_Maximum_CPUs_From_Command_Line;
-
-uint32_t _CPU_SMP_Initialize( void )
-{
- /* return the number of CPUs */
- return Schedsim_Maximum_CPUs_From_Command_Line;
-}
-
-bool _CPU_SMP_Start_processor( uint32_t cpu_index )
-{
- return true;
-}
-
-void _CPU_SMP_Finalize_initialization( uint32_t cpu_count )
-{
-}
-
-void _CPU_SMP_Send_interrupt( uint32_t target_processor_index )
-{
-}
-
-void _CPU_SMP_Processor_event_broadcast( void )
-{
- Per_CPU_Control *cpu = _Per_CPU_Get();
- uint32_t cpu_count = _SMP_Get_processor_count();
- uint32_t cpu_index;
- Per_CPU_State state = cpu->state;
-
- if (state == PER_CPU_STATE_REQUEST_START_MULTITASKING) {
- for ( cpu_index = 0 ; cpu_index < cpu_count ; ++cpu_index ) {
- cpu = _Per_CPU_Get_by_index( cpu_index );
- state = cpu->state;
- if (state == PER_CPU_STATE_INITIAL )
- cpu->state = PER_CPU_STATE_READY_TO_START_MULTITASKING;
- }
- }
-}
-
-
-void _CPU_SMP_Processor_event_receive( void )
-{
-}
-
-uint32_t _CPU_SMP_Get_current_processor( void )
-{
- return Schedsim_Current_cpu;
-}