source: rtems/testsuites/mptests/mp14/exit.c @ bb3484c9

5
Last change on this file since bb3484c9 was c499856, checked in by Chris Johns <chrisj@…>, on 03/20/14 at 21:10:47

Change all references of rtems.com to rtems.org.

  • Property mode set to 100644
File size: 891 bytes
Line 
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 *
9 *  COPYRIGHT (c) 1989-1999.
10 *  On-Line Applications Research Corporation (OAR).
11 *
12 *  The license and distribution terms for this file may be
13 *  found in the file LICENSE in this distribution or at
14 *  http://www.rtems.org/license/LICENSE.
15 */
16
17#ifdef HAVE_CONFIG_H
18#include "config.h"
19#endif
20
21#include "system.h"
22
23void Exit_test( void )
24{
25  rtems_status_code status;
26  rtems_mode        old_mode;
27
28  /*
29   * Wait a bit before shutting down so we don't screw up the other node
30   * when our MPCI shuts down
31   */
32
33  rtems_task_wake_after(20);
34
35  status = rtems_task_mode( RTEMS_NO_PREEMPT, RTEMS_PREEMPT_MASK, &old_mode );
36  directive_failed( status, "rtems_task_mode" );
37
38  MPCI_Print_statistics();
39
40  rtems_shutdown_executive( 0 );
41}
Note: See TracBrowser for help on using the repository browser.