4.104.114.84.95
Rev | Line | |
---|
[ac7d5ef0] | 1 | /* Exit_test |
---|
| 2 | * |
---|
| 3 | * This routine safely stops the test and prints some information |
---|
| 4 | * |
---|
| 5 | * Input parameters: NONE |
---|
| 6 | * |
---|
| 7 | * Output parameters: NONE |
---|
| 8 | * |
---|
[08311cc3] | 9 | * COPYRIGHT (c) 1989-1999. |
---|
[ac7d5ef0] | 10 | * On-Line Applications Research Corporation (OAR). |
---|
| 11 | * |
---|
[98e4ebf5] | 12 | * The license and distribution terms for this file may be |
---|
| 13 | * found in the file LICENSE in this distribution or at |
---|
[d7a0857] | 14 | * http://www.rtems.com/license/LICENSE. |
---|
[ac7d5ef0] | 15 | * |
---|
| 16 | * $Id$ |
---|
| 17 | */ |
---|
| 18 | |
---|
| 19 | #include "system.h" |
---|
| 20 | |
---|
| 21 | void Exit_test( void ) |
---|
| 22 | { |
---|
| 23 | rtems_status_code status; |
---|
| 24 | rtems_mode old_mode; |
---|
| 25 | |
---|
[8b2ecf85] | 26 | /* |
---|
| 27 | * Wait a bit before shutting down so we don't screw up the other node |
---|
| 28 | * when our MPCI shuts down |
---|
| 29 | */ |
---|
[8f71a36] | 30 | |
---|
[8b2ecf85] | 31 | rtems_task_wake_after(20); |
---|
[8f71a36] | 32 | |
---|
[ac7d5ef0] | 33 | status = rtems_task_mode( RTEMS_NO_PREEMPT, RTEMS_PREEMPT_MASK, &old_mode ); |
---|
| 34 | directive_failed( status, "rtems_task_mode" ); |
---|
| 35 | |
---|
| 36 | MPCI_Print_statistics(); |
---|
| 37 | |
---|
| 38 | rtems_shutdown_executive( 0 ); |
---|
| 39 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.