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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [rtems/] [c/] [src/] [exec/] [score/] [macros/] [rtems/] [score/] [tqdata.inl] - Blame information for rev 173

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 30 unneback
/*  tqdata.inl
2
 *
3
 *  This file contains the macro implementation of the inlined
4
 *  routines needed to support the Thread Queue Data.
5
 *
6
 *  COPYRIGHT (c) 1989-1999.
7
 *  On-Line Applications Research Corporation (OAR).
8
 *
9
 *  The license and distribution terms for this file may be
10
 *  found in the file LICENSE in this distribution or at
11
 *  http://www.OARcorp.com/rtems/license.html.
12
 *
13
 *  $Id: tqdata.inl,v 1.2 2001-09-27 11:59:34 chris Exp $
14
 */
15
 
16
#ifndef __THREAD_QUEUE_DATA_inl
17
#define __THREAD_QUEUE_DATA_inl
18
 
19
/*PAGE
20
 *
21
 *  _Thread_queue_Header_number
22
 *
23
 */
24
 
25
#define _Thread_queue_Header_number( _the_priority ) \
26
    ((_the_priority) / TASK_QUEUE_DATA_PRIORITIES_PER_HEADER)
27
 
28
/*PAGE
29
 *
30
 *  _Thread_queue_Is_reverse_search
31
 *
32
 */
33
 
34
#define _Thread_queue_Is_reverse_search( _the_priority ) \
35
     ( (_the_priority) & TASK_QUEUE_DATA_REVERSE_SEARCH_MASK )
36
 
37
/*PAGE
38
 *
39
 *  _Thread_queue_Enter_critical_section
40
 *
41
 */
42
 
43
#define _Thread_queue_Enter_critical_section( _the_thread_queue ) \
44
  do { \
45
    (_the_thread_queue)->sync_state = THREAD_QUEUE_NOTHING_HAPPENED; \
46
  } while ( 0 )
47
 
48
#endif
49
/* end of include file */

powered by: WebSVN 2.1.0

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