/* * Copyright (c) 2012 Deng Hengyi. * * This test case is to test atomic compare and exchange operation. * * 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. * */ #ifdef HAVE_CONFIG_H #include "config.h" #endif #define CONFIGURE_INIT #include "system.h" rtems_task Init( rtems_task_argument argument ) { int i; char ch; rtems_id id; rtems_status_code status; bool allDone; /* XXX - Delay a bit to allow debug messages from * startup to print. This may need to go away when * debug messages go away. */ locked_print_initialize(); /* Put start of test message */ locked_printf( "\n\n*** SMPatomic07 TEST ***\n" ); /* Initialize the TaskRan array */ for ( i=0; i