source: rtems/testsuites/sptests/sp14/asr.c @ 60b791ad

4.104.114.84.95
Last change on this file since 60b791ad was 60b791ad, checked in by Joel Sherrill <joel.sherrill@…>, on 02/17/98 at 23:46:28

updated copyright to 1998

  • Property mode set to 100644
File size: 1.2 KB
Line 
1/*  Process_asr
2 *
3 *  This is the asynchronous signal routine (asr) for task 1.
4 *  It demonstrates that ASRs can block execute and block.
5 *
6 *  Input parameters:
7 *    the_signal_set - signal set
8 *
9 *  Output parameters:  NONE
10 *
11 *  COPYRIGHT (c) 1989-1998.
12 *  On-Line Applications Research Corporation (OAR).
13 *  Copyright assigned to U.S. Government, 1994.
14 *
15 *  The license and distribution terms for this file may be
16 *  found in the file LICENSE in this distribution or at
17 *  http://www.OARcorp.com/rtems/license.html.
18 *
19 *  $Id$
20 */
21
22#include "system.h"
23
24rtems_asr Process_asr(
25  rtems_signal_set the_signal_set
26)
27{
28  rtems_status_code status;
29
30  printf( "ASR - ENTRY - signal => %08x\n", the_signal_set );
31  switch( the_signal_set ) {
32    case RTEMS_SIGNAL_16:
33    case RTEMS_SIGNAL_17:
34    case RTEMS_SIGNAL_18 | RTEMS_SIGNAL_19:
35      break;
36    case RTEMS_SIGNAL_0:
37    case RTEMS_SIGNAL_1:
38      puts( "ASR - rtems_task_wake_after - yield processor" );
39      status = rtems_task_wake_after( RTEMS_YIELD_PROCESSOR );
40      directive_failed( status, "rtems_task_wake_after yield" );
41      break;
42    case RTEMS_SIGNAL_3:
43      Asr_fired = TRUE;
44      break;
45  }
46  printf( "ASR - EXIT  - signal => %08x\n", the_signal_set );
47}
Note: See TracBrowser for help on using the repository browser.