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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [rtems-20020807/] [cpukit/] [itron/] [src/] [exd_tsk.c] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1026 ivang
/*
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
 *  exd_tsk.c,v 1.4 2001/01/24 14:15:04 joel Exp
10
 */
11
 
12
#if HAVE_CONFIG_H
13
#include "config.h"
14
#endif
15
 
16
#include <itron.h>
17
#include <assert.h>
18
 
19
#include <rtems/score/thread.h>
20
#include <rtems/score/userext.h>
21
#include <rtems/score/wkspace.h>
22
#include <rtems/score/apiext.h>
23
#include <rtems/score/sysstate.h>
24
 
25
#include <rtems/itron/task.h>
26
 
27
/*
28
 *  exd_tsk - Exit and Delete Task
29
 */
30
 
31
void exd_tsk( void )
32
{
33
  Objects_Information     *the_information;
34
 
35
  _Thread_Disable_dispatch();
36
 
37
  the_information = _Objects_Get_information( _Thread_Executing->Object.id );
38
 
39
  /* This should never happen if _Thread_Get() works right */
40
  assert( the_information );
41
 
42
  _Thread_Set_state( _Thread_Executing, STATES_DORMANT );
43
  _ITRON_Delete_task( _Thread_Executing );
44
 
45
  _Thread_Enable_dispatch();
46
}
47
 

powered by: WebSVN 2.1.0

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