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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [rtos/] [rtems/] [c/] [src/] [exec/] [posix/] [include/] [rtems/] [posix/] [priority.h] - Blame information for rev 173

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 30 unneback
/*
2
 *
3
 *
4
 *  $Id: priority.h,v 1.2 2001-09-27 11:59:14 chris Exp $
5
 */
6
 
7
#ifndef __RTEMS_POSIX_PRIORITY_h
8
#define __RTEMS_POSIX_PRIORITY_h
9
 
10
#include <rtems/score/priority.h>
11
 
12
/*
13
 *  1003.1b-1993,2.2.2.80 definition of priority, p. 19
14
 *
15
 *  "Numericallly higher values represent higher priorities."
16
 *
17
 *  Thus, RTEMS Core has priorities run in the opposite sense of the POSIX API.
18
 *
19
 *  There are only 254 posix priority levels since a task at priority level
20
 *  255 would never run because of the RTEMS idle task.  This is necessary
21
 *  because GNAT maps the lowest Ada task priority to the lowest thread
22
 *  priority.  The lowest priority Ada task should get to run, so there is
23
 *  a fundamental conflict with having 255 priorities.
24
 */
25
 
26
#define POSIX_SCHEDULER_MAXIMUM_PRIORITY (254)
27
 
28
#define POSIX_SCHEDULER_MINIMUM_PRIORITY (1)
29
 
30
RTEMS_INLINE_ROUTINE boolean _POSIX_Priority_Is_valid(
31
  int priority
32
);
33
 
34
RTEMS_INLINE_ROUTINE Priority_Control _POSIX_Priority_To_core(
35
  int priority
36
);
37
 
38
RTEMS_INLINE_ROUTINE int _POSIX_Priority_From_core(
39
  Priority_Control priority
40
);
41
 
42
#include <rtems/posix/priority.inl>
43
 
44
#endif

powered by: WebSVN 2.1.0

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