17 #ifdef POK_NEEDS_ARINC653_PROCESS
19 #include <arinc653/types.h>
24 #define MAX_NUMBER_OF_PROCESSES SYSTEM_LIMIT_NUMBER_OF_PROCESSES
25 #define MIN_PRIORITY_VALUE 1
26 #define MAX_PRIORITY_VALUE 63
27 #define MAX_LOCK_LEVEL 16
29 typedef NAME_TYPE PROCESS_NAME_TYPE;
31 typedef APEX_INTEGER PROCESS_ID_TYPE;
33 typedef APEX_INTEGER LOCK_LEVEL_TYPE;
35 typedef APEX_UNSIGNED STACK_SIZE_TYPE;
37 typedef APEX_INTEGER WAITING_RANGE_TYPE;
39 typedef APEX_INTEGER PRIORITY_TYPE;
56 SYSTEM_TIME_TYPE PERIOD;
57 SYSTEM_TIME_TYPE TIME_CAPACITY;
58 SYSTEM_ADDRESS_TYPE ENTRY_POINT;
59 STACK_SIZE_TYPE STACK_SIZE;
60 PRIORITY_TYPE BASE_PRIORITY;
61 DEADLINE_TYPE DEADLINE;
62 PROCESS_NAME_TYPE NAME;
66 SYSTEM_TIME_TYPE DEADLINE_TIME;
67 PRIORITY_TYPE CURRENT_PRIORITY;
68 PROCESS_STATE_TYPE PROCESS_STATE;
72 extern void CREATE_PROCESS (
74 PROCESS_ID_TYPE *PROCESS_ID,
75 RETURN_CODE_TYPE *RETURN_CODE );
77 extern void SET_PRIORITY (
78 PROCESS_ID_TYPE PROCESS_ID,
79 PRIORITY_TYPE PRIORITY,
80 RETURN_CODE_TYPE *RETURN_CODE );
82 extern void SUSPEND_SELF (
83 SYSTEM_TIME_TYPE TIME_OUT,
84 RETURN_CODE_TYPE *RETURN_CODE );
87 PROCESS_ID_TYPE PROCESS_ID,
88 RETURN_CODE_TYPE *RETURN_CODE );
91 PROCESS_ID_TYPE PROCESS_ID,
92 RETURN_CODE_TYPE *RETURN_CODE );
94 extern void STOP_SELF ();
97 PROCESS_ID_TYPE PROCESS_ID,
98 RETURN_CODE_TYPE *RETURN_CODE );
101 PROCESS_ID_TYPE PROCESS_ID,
102 RETURN_CODE_TYPE *RETURN_CODE );
104 extern void DELAYED_START (
105 PROCESS_ID_TYPE PROCESS_ID,
106 SYSTEM_TIME_TYPE DELAY_TIME,
107 RETURN_CODE_TYPE *RETURN_CODE );
109 extern void LOCK_PREEMPTION (
110 LOCK_LEVEL_TYPE *LOCK_LEVEL,
111 RETURN_CODE_TYPE *RETURN_CODE );
113 extern void UNLOCK_PREEMPTION (
114 LOCK_LEVEL_TYPE *LOCK_LEVEL,
115 RETURN_CODE_TYPE *RETURN_CODE );
117 extern void GET_MY_ID (
118 PROCESS_ID_TYPE *PROCESS_ID,
119 RETURN_CODE_TYPE *RETURN_CODE );
121 extern void GET_PROCESS_ID (
122 PROCESS_NAME_TYPE PROCESS_NAME[MAX_NAME_LENGTH],
123 PROCESS_ID_TYPE *PROCESS_ID,
124 RETURN_CODE_TYPE *RETURN_CODE );
126 extern void GET_PROCESS_STATUS (
127 PROCESS_ID_TYPE PROCESS_ID,
129 RETURN_CODE_TYPE *RETURN_CODE );