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

Subversion Repositories openrisc

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

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: exd_tsk.c,v 1.2 2001-09-27 11:59:13 chris Exp $
10
 */
11
 
12
#include <itron.h>
13
#include <assert.h>
14
 
15
#include <rtems/score/thread.h>
16
#include <rtems/score/userext.h>
17
#include <rtems/score/wkspace.h>
18
#include <rtems/score/apiext.h>
19
#include <rtems/score/sysstate.h>
20
 
21
#include <rtems/itron/task.h>
22
 
23
/*
24
 *  exd_tsk - Exit and Delete Task
25
 */
26
 
27
void exd_tsk( void )
28
{
29
  Objects_Information     *the_information;
30
 
31
  _Thread_Disable_dispatch();
32
 
33
  the_information = _Objects_Get_information( _Thread_Executing->Object.id );
34
 
35
  /* This should never happen if _Thread_Get() works right */
36
  assert( the_information );
37
 
38
  _Thread_Set_state( _Thread_Executing, STATES_DORMANT );
39
  _ITRON_Delete_task( _Thread_Executing );
40
 
41
  _Thread_Enable_dispatch();
42
}
43
 

powered by: WebSVN 2.1.0

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