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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [rtems/] [c/] [src/] [exec/] [itron/] [src/] [ext_tsk.c] - Blame information for rev 216

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

Line No. Rev Author Line
1 30 unneback
/*
2
 *  COPYRIGHT (c) 1989-1999.
3
 *  On-Line Applications Research Corporation (OAR).
4
 *
5
 *  The license and distribution terms for this file may be
6
 *  found in the file LICENSE in this distribution or at
7
 *  http://www.OARcorp.com/rtems/license.html.
8
 *
9
 *  $Id: ext_tsk.c,v 1.2 2001-09-27 11:59:13 chris Exp $
10
 */
11
 
12
#include <itron.h>
13
 
14
#include <rtems/score/thread.h>
15
#include <rtems/score/userext.h>
16
#include <rtems/score/wkspace.h>
17
#include <rtems/score/apiext.h>
18
#include <rtems/score/sysstate.h>
19
 
20
#include <rtems/itron/task.h>
21
 
22
 
23
/*
24
 *  ext_tsk - Exit Issuing Task
25
 */
26
 
27
void ext_tsk( void )
28
{
29
  /*
30
   *  Figure out what to do if this happens.
31
   *  We can not return regardless
32
      if ( _ITRON_Is_in_non_task_state() )
33
        return E_CTX;
34
  */
35
 
36
  _Thread_Disable_dispatch();
37
 
38
  _Thread_Set_state( _Thread_Executing, STATES_DORMANT );
39
  _Thread_Reset( _Thread_Executing, NULL, 0 );
40
 
41
  _Thread_Enable_dispatch();
42
}

powered by: WebSVN 2.1.0

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