mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-12-21 04:14:26 +08:00
updates from Tony Bennett
This commit is contained in:
@@ -72,7 +72,7 @@ rtems_task Test_task(
|
||||
directive_failed( status, "rtems_timer_fire_after" );
|
||||
|
||||
while ( Stop_Test == FALSE ) {
|
||||
for ( count=DOT_COUNT ; count ; count-- ) {
|
||||
for ( count=DOT_COUNT ; count && (Stop_Test == FALSE) ; count-- ) {
|
||||
status = rtems_event_receive(
|
||||
RTEMS_EVENT_16,
|
||||
RTEMS_DEFAULT_OPTIONS,
|
||||
@@ -90,6 +90,14 @@ rtems_task Test_task(
|
||||
}
|
||||
put_dot('.');
|
||||
}
|
||||
|
||||
/*
|
||||
* Wait a bit before shutting down so we don't screw up the other node
|
||||
* when our MPCI shuts down
|
||||
*/
|
||||
|
||||
rtems_task_wake_after(10);
|
||||
|
||||
puts( "\n*** END OF TEST 7 ***" );
|
||||
exit( 0 );
|
||||
}
|
||||
|
||||
@@ -24,6 +24,13 @@ void Exit_test( void )
|
||||
rtems_status_code status;
|
||||
rtems_mode old_mode;
|
||||
|
||||
/*
|
||||
* Wait a bit before shutting down so we don't screw up the other node
|
||||
* when our MPCI shuts down
|
||||
*/
|
||||
|
||||
rtems_task_wake_after(20);
|
||||
|
||||
status = rtems_task_mode( RTEMS_NO_PREEMPT, RTEMS_PREEMPT_MASK, &old_mode );
|
||||
directive_failed( status, "rtems_task_mode" );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user