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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [rtos/] [rtems/] [c/] [src/] [tests/] [sptests/] [sp17/] [task2.c] - Blame information for rev 173

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 30 unneback
/*  Task_2
2
 *
3
 *  This task initializes the signal catcher, sends the first signal
4
 *  if running on the first node, and loops while waiting for signals.
5
 *
6
 *  NOTE: The signal catcher is not reentrant and hence RTEMS_NO_ASR must
7
 *        be a part of its execution mode.
8
 *
9
 *  Input parameters:
10
 *    argument - task argument
11
 *
12
 *  Output parameters:  NONE
13
 *
14
 *  COPYRIGHT (c) 1989-1999.
15
 *  On-Line Applications Research Corporation (OAR).
16
 *
17
 *  The license and distribution terms for this file may be
18
 *  found in the file LICENSE in this distribution or at
19
 *  http://www.OARcorp.com/rtems/license.html.
20
 *
21
 *  $Id: task2.c,v 1.2 2001-09-27 12:02:33 chris Exp $
22
 */
23
 
24
#include "system.h"
25
 
26
rtems_task Task_2(
27
  rtems_task_argument argument
28
)
29
{
30
  rtems_status_code status;
31
 
32
  Task_2_preempted = FALSE;
33
 
34
  puts( "TA2 - Suspending self" );
35
  status = rtems_task_suspend( RTEMS_SELF );
36
  directive_failed( status, "rtems_task_suspend of TA2" );
37
 
38
  puts( "TA2 - signal_return preempted correctly" );
39
 
40
  Task_2_preempted = TRUE;
41
 
42
  status = rtems_task_suspend( RTEMS_SELF );
43
  directive_failed( status, "rtems_task_suspend of TA2" );
44
}

powered by: WebSVN 2.1.0

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