/* * 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. */ #ifdef HAVE_CONFIG_H #include "config.h" #endif #define CONFIGURE_INIT #include "system.h" #include const char rtems_test_name[] = "SMP 1"; void Loop() { volatile int i; for (i=0; i<300000; i++); } rtems_task Init( rtems_task_argument argument ) { uint32_t i; char ch; uint32_t cpu_self; rtems_id id; rtems_status_code status; bool allDone; cpu_self = rtems_scheduler_get_processor(); /* XXX - Delay a bit to allow debug messages from * startup to print. This may need to go away when * debug messages go away. */ Loop(); TEST_BEGIN(); locked_print_initialize(); /* Initialize the TaskRan array */ for ( i=0; i