OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [rtems/] [c/] [src/] [tests/] [mptests/] [mp14/] [exit.c] - Blame information for rev 30

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 30 unneback
/*  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.OARcorp.com/rtems/license.html.
15
 *
16
 *  $Id: exit.c,v 1.2 2001-09-27 12:02:23 chris Exp $
17
 */
18
 
19
#include "system.h"
20
 
21
void Exit_test( void )
22
{
23
  rtems_status_code status;
24
  rtems_mode        old_mode;
25
 
26
  /*
27
   * Wait a bit before shutting down so we don't screw up the other node
28
   * when our MPCI shuts down
29
   */
30
 
31
  rtems_task_wake_after(20);
32
 
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
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.