8717687f3e8c69bb78dc8bacde883eeb89af9046
[ghc.git] / includes / stg / MiscClosures.h
1 /* ----------------------------------------------------------------------------
2 *
3 * (c) The GHC Team, 1998-2009
4 *
5 * Declarations for various symbols exported by the RTS.
6 *
7 * ToDo: many of the symbols in here don't need to be exported, but
8 * our Cmm code generator doesn't know how to generate local symbols
9 * for the RTS bits (it assumes all RTS symbols are external).
10 *
11 * See wiki:Commentary/Compiler/Backends/PprC#Prototypes
12 *
13 * Do not #include this file directly: #include "Rts.h" instead.
14 *
15 * To understand the structure of the RTS headers, see the wiki:
16 * http://hackage.haskell.org/trac/ghc/wiki/Commentary/SourceTree/Includes
17 *
18 * --------------------------------------------------------------------------*/
19
20 #ifndef STGMISCCLOSURES_H
21 #define STGMISCCLOSURES_H
22
23 #if IN_STG_CODE
24 # define RTS_RET_INFO(i) extern W_(i)[]
25 # define RTS_FUN_INFO(i) extern W_(i)[]
26 # define RTS_THUNK_INFO(i) extern W_(i)[]
27 # define RTS_INFO(i) extern W_(i)[]
28 # define RTS_CLOSURE(i) extern W_(i)[]
29 # define RTS_FUN_DECL(f) extern DLL_IMPORT_RTS StgFunPtr f(void)
30 #else
31 # define RTS_RET_INFO(i) extern DLL_IMPORT_RTS const StgRetInfoTable i
32 # define RTS_FUN_INFO(i) extern DLL_IMPORT_RTS const StgFunInfoTable i
33 # define RTS_THUNK_INFO(i) extern DLL_IMPORT_RTS const StgThunkInfoTable i
34 # define RTS_INFO(i) extern DLL_IMPORT_RTS const StgInfoTable i
35 # define RTS_CLOSURE(i) extern DLL_IMPORT_RTS StgClosure i
36 # define RTS_FUN_DECL(f) extern DLL_IMPORT_RTS StgFunPtr f(void)
37 #endif
38
39 #ifdef TABLES_NEXT_TO_CODE
40 # define RTS_RET(f) RTS_INFO(f##_info)
41 # define RTS_ENTRY(f) RTS_INFO(f##_info)
42 # define RTS_FUN(f) RTS_FUN_INFO(f##_info)
43 # define RTS_THUNK(f) RTS_THUNK_INFO(f##_info)
44 #else
45 # define RTS_RET(f) RTS_INFO(f##_info); RTS_FUN_DECL(f##_ret)
46 # define RTS_ENTRY(f) RTS_INFO(f##_info); RTS_FUN_DECL(f##_entry)
47 # define RTS_FUN(f) RTS_FUN_INFO(f##_info); RTS_FUN_DECL(f##_entry)
48 # define RTS_THUNK(f) RTS_THUNK_INFO(f##_info); RTS_FUN_DECL(f##_entry)
49 #endif
50
51 /* Stack frames */
52 RTS_RET(stg_upd_frame);
53 RTS_RET(stg_bh_upd_frame);
54 RTS_RET(stg_marked_upd_frame);
55 RTS_RET(stg_noupd_frame);
56 RTS_RET(stg_catch_frame);
57 RTS_RET(stg_catch_retry_frame);
58 RTS_RET(stg_atomically_frame);
59 RTS_RET(stg_atomically_waiting_frame);
60 RTS_RET(stg_catch_stm_frame);
61 RTS_RET(stg_unmaskAsyncExceptionszh_ret);
62 RTS_RET(stg_maskUninterruptiblezh_ret);
63 RTS_RET(stg_maskAsyncExceptionszh_ret);
64 RTS_RET(stg_stack_underflow_frame);
65 RTS_RET(stg_restore_cccs);
66
67 // RTS_FUN(stg_interp_constr_entry);
68 //
69 // This is referenced using the FFI in the compiler (ByteCodeItbls),
70 // so we can't give it the correct type here because the prototypes
71 // would clash (FFI references are always declared with type StgWord[]
72 // in the generated C code).
73
74 /* Magic glue code for when compiled code returns a value in R1/F1/D1
75 or a VoidRep to the interpreter. */
76 RTS_RET(stg_ctoi_R1p);
77 RTS_RET(stg_ctoi_R1unpt);
78 RTS_RET(stg_ctoi_R1n);
79 RTS_RET(stg_ctoi_F1);
80 RTS_RET(stg_ctoi_D1);
81 RTS_RET(stg_ctoi_L1);
82 RTS_RET(stg_ctoi_V);
83
84 RTS_RET(stg_apply_interp);
85
86 RTS_ENTRY(stg_IND);
87 RTS_ENTRY(stg_IND_direct);
88 RTS_ENTRY(stg_IND_STATIC);
89 RTS_ENTRY(stg_IND_PERM);
90 RTS_ENTRY(stg_BLACKHOLE);
91 RTS_ENTRY(stg_CAF_BLACKHOLE);
92 RTS_ENTRY(__stg_EAGER_BLACKHOLE);
93 RTS_ENTRY(stg_WHITEHOLE);
94 RTS_ENTRY(stg_BLOCKING_QUEUE_CLEAN);
95 RTS_ENTRY(stg_BLOCKING_QUEUE_DIRTY);
96
97 RTS_FUN(stg_BCO);
98 RTS_ENTRY(stg_EVACUATED);
99 RTS_ENTRY(stg_WEAK);
100 RTS_ENTRY(stg_DEAD_WEAK);
101 RTS_ENTRY(stg_C_FINALIZER_LIST);
102 RTS_ENTRY(stg_STABLE_NAME);
103 RTS_ENTRY(stg_MVAR_CLEAN);
104 RTS_ENTRY(stg_MVAR_DIRTY);
105 RTS_ENTRY(stg_TVAR_CLEAN);
106 RTS_ENTRY(stg_TVAR_DIRTY);
107 RTS_ENTRY(stg_TSO);
108 RTS_ENTRY(stg_STACK);
109 RTS_ENTRY(stg_ARR_WORDS);
110 RTS_ENTRY(stg_MUT_ARR_WORDS);
111 RTS_ENTRY(stg_MUT_ARR_PTRS_CLEAN);
112 RTS_ENTRY(stg_MUT_ARR_PTRS_DIRTY);
113 RTS_ENTRY(stg_MUT_ARR_PTRS_FROZEN);
114 RTS_ENTRY(stg_MUT_ARR_PTRS_FROZEN0);
115 RTS_ENTRY(stg_MUT_VAR_CLEAN);
116 RTS_ENTRY(stg_MUT_VAR_DIRTY);
117 RTS_ENTRY(stg_END_TSO_QUEUE);
118 RTS_ENTRY(stg_STM_AWOKEN);
119 RTS_ENTRY(stg_MSG_TRY_WAKEUP);
120 RTS_ENTRY(stg_MSG_THROWTO);
121 RTS_ENTRY(stg_MSG_BLACKHOLE);
122 RTS_ENTRY(stg_MSG_NULL);
123 RTS_ENTRY(stg_MVAR_TSO_QUEUE);
124 RTS_ENTRY(stg_catch);
125 RTS_ENTRY(stg_PAP);
126 RTS_ENTRY(stg_AP);
127 RTS_ENTRY(stg_AP_NOUPD);
128 RTS_ENTRY(stg_AP_STACK);
129 RTS_ENTRY(stg_AP_STACK_NOUPD);
130 RTS_ENTRY(stg_dummy_ret);
131 RTS_ENTRY(stg_raise);
132 RTS_ENTRY(stg_raise_ret);
133 RTS_ENTRY(stg_atomically);
134 RTS_ENTRY(stg_TVAR_WATCH_QUEUE);
135 RTS_ENTRY(stg_INVARIANT_CHECK_QUEUE);
136 RTS_ENTRY(stg_ATOMIC_INVARIANT);
137 RTS_ENTRY(stg_TREC_CHUNK);
138 RTS_ENTRY(stg_TREC_HEADER);
139 RTS_ENTRY(stg_END_STM_WATCH_QUEUE);
140 RTS_ENTRY(stg_END_INVARIANT_CHECK_QUEUE);
141 RTS_ENTRY(stg_END_STM_CHUNK_LIST);
142 RTS_ENTRY(stg_NO_TREC);
143
144 /* closures */
145
146 RTS_CLOSURE(stg_END_TSO_QUEUE_closure);
147 RTS_CLOSURE(stg_STM_AWOKEN_closure);
148 RTS_CLOSURE(stg_NO_FINALIZER_closure);
149 RTS_CLOSURE(stg_dummy_ret_closure);
150 RTS_CLOSURE(stg_forceIO_closure);
151
152 RTS_CLOSURE(stg_END_STM_WATCH_QUEUE_closure);
153 RTS_CLOSURE(stg_END_INVARIANT_CHECK_QUEUE_closure);
154 RTS_CLOSURE(stg_END_STM_CHUNK_LIST_closure);
155 RTS_CLOSURE(stg_NO_TREC_closure);
156
157 RTS_ENTRY(stg_NO_FINALIZER_entry);
158
159 #if IN_STG_CODE
160 extern DLL_IMPORT_RTS StgWordArray stg_CHARLIKE_closure;
161 extern DLL_IMPORT_RTS StgWordArray stg_INTLIKE_closure;
162 #else
163 extern DLL_IMPORT_RTS StgIntCharlikeClosure stg_CHARLIKE_closure[];
164 extern DLL_IMPORT_RTS StgIntCharlikeClosure stg_INTLIKE_closure[];
165 #endif
166
167 /* StgStartup */
168
169 RTS_RET(stg_forceIO);
170 RTS_RET(stg_noforceIO);
171
172 /* standard entry points */
173
174 /* standard selector thunks */
175
176 RTS_ENTRY(stg_sel_0_upd);
177 RTS_ENTRY(stg_sel_1_upd);
178 RTS_ENTRY(stg_sel_2_upd);
179 RTS_ENTRY(stg_sel_3_upd);
180 RTS_ENTRY(stg_sel_4_upd);
181 RTS_ENTRY(stg_sel_5_upd);
182 RTS_ENTRY(stg_sel_6_upd);
183 RTS_ENTRY(stg_sel_7_upd);
184 RTS_ENTRY(stg_sel_8_upd);
185 RTS_ENTRY(stg_sel_9_upd);
186 RTS_ENTRY(stg_sel_10_upd);
187 RTS_ENTRY(stg_sel_11_upd);
188 RTS_ENTRY(stg_sel_12_upd);
189 RTS_ENTRY(stg_sel_13_upd);
190 RTS_ENTRY(stg_sel_14_upd);
191 RTS_ENTRY(stg_sel_15_upd);
192
193 RTS_ENTRY(stg_sel_0_noupd);
194 RTS_ENTRY(stg_sel_1_noupd);
195 RTS_ENTRY(stg_sel_2_noupd);
196 RTS_ENTRY(stg_sel_3_noupd);
197 RTS_ENTRY(stg_sel_4_noupd);
198 RTS_ENTRY(stg_sel_5_noupd);
199 RTS_ENTRY(stg_sel_6_noupd);
200 RTS_ENTRY(stg_sel_7_noupd);
201 RTS_ENTRY(stg_sel_8_noupd);
202 RTS_ENTRY(stg_sel_9_noupd);
203 RTS_ENTRY(stg_sel_10_noupd);
204 RTS_ENTRY(stg_sel_11_noupd);
205 RTS_ENTRY(stg_sel_12_noupd);
206 RTS_ENTRY(stg_sel_13_noupd);
207 RTS_ENTRY(stg_sel_14_noupd);
208 RTS_ENTRY(stg_sel_15_noupd);
209
210 /* standard ap thunks */
211
212 RTS_THUNK(stg_ap_1_upd);
213 RTS_THUNK(stg_ap_2_upd);
214 RTS_THUNK(stg_ap_3_upd);
215 RTS_THUNK(stg_ap_4_upd);
216 RTS_THUNK(stg_ap_5_upd);
217 RTS_THUNK(stg_ap_6_upd);
218 RTS_THUNK(stg_ap_7_upd);
219
220 /* standard application routines (see also utils/genapply,
221 * and compiler/codeGen/CgStackery.lhs).
222 */
223 RTS_RET(stg_ap_v);
224 RTS_RET(stg_ap_f);
225 RTS_RET(stg_ap_d);
226 RTS_RET(stg_ap_l);
227 RTS_RET(stg_ap_v16);
228 RTS_RET(stg_ap_n);
229 RTS_RET(stg_ap_p);
230 RTS_RET(stg_ap_pv);
231 RTS_RET(stg_ap_pp);
232 RTS_RET(stg_ap_ppv);
233 RTS_RET(stg_ap_ppp);
234 RTS_RET(stg_ap_pppv);
235 RTS_RET(stg_ap_pppp);
236 RTS_RET(stg_ap_ppppp);
237 RTS_RET(stg_ap_pppppp);
238
239 RTS_FUN_DECL(stg_ap_0_fast);
240 RTS_FUN_DECL(stg_ap_v_fast);
241 RTS_FUN_DECL(stg_ap_f_fast);
242 RTS_FUN_DECL(stg_ap_d_fast);
243 RTS_FUN_DECL(stg_ap_l_fast);
244 RTS_FUN_DECL(stg_ap_v16_fast);
245 RTS_FUN_DECL(stg_ap_n_fast);
246 RTS_FUN_DECL(stg_ap_p_fast);
247 RTS_FUN_DECL(stg_ap_pv_fast);
248 RTS_FUN_DECL(stg_ap_pp_fast);
249 RTS_FUN_DECL(stg_ap_ppv_fast);
250 RTS_FUN_DECL(stg_ap_ppp_fast);
251 RTS_FUN_DECL(stg_ap_pppv_fast);
252 RTS_FUN_DECL(stg_ap_pppp_fast);
253 RTS_FUN_DECL(stg_ap_ppppp_fast);
254 RTS_FUN_DECL(stg_ap_pppppp_fast);
255 RTS_FUN_DECL(stg_PAP_apply);
256
257 /* standard GC & stack check entry points, all defined in HeapStackCheck.hc */
258
259 RTS_FUN_DECL(stg_gc_noregs);
260
261 RTS_RET(stg_enter_checkbh);
262
263 RTS_RET(stg_ret_v);
264 RTS_RET(stg_ret_p);
265 RTS_RET(stg_ret_n);
266 RTS_RET(stg_ret_f);
267 RTS_RET(stg_ret_d);
268 RTS_RET(stg_ret_l);
269
270 RTS_FUN_DECL(stg_gc_prim);
271 RTS_FUN_DECL(stg_gc_prim_p);
272 RTS_FUN_DECL(stg_gc_prim_pp);
273 RTS_FUN_DECL(stg_gc_prim_n);
274
275 RTS_RET(stg_enter);
276 RTS_FUN_DECL(__stg_gc_enter_1);
277
278 RTS_FUN_DECL(stg_gc_unpt_r1);
279 RTS_FUN_DECL(stg_gc_unbx_r1);
280 RTS_FUN_DECL(stg_gc_f1);
281 RTS_FUN_DECL(stg_gc_d1);
282 RTS_FUN_DECL(stg_gc_l1);
283 RTS_FUN_DECL(stg_gc_pp);
284 RTS_FUN_DECL(stg_gc_ppp);
285 RTS_FUN_DECL(stg_gc_pppp);
286
287 RTS_RET(stg_gc_fun);
288 RTS_FUN_DECL(__stg_gc_fun);
289
290 RTS_FUN_DECL(stg_yield_noregs);
291 RTS_FUN_DECL(stg_yield_to_interpreter);
292 RTS_FUN_DECL(stg_block_noregs);
293 RTS_FUN_DECL(stg_block_blackhole);
294 RTS_FUN_DECL(stg_block_blackhole_finally);
295 RTS_FUN_DECL(stg_block_takemvar);
296 RTS_RET(stg_block_takemvar);
297 RTS_FUN_DECL(stg_block_putmvar);
298 RTS_RET(stg_block_putmvar);
299 #ifdef mingw32_HOST_OS
300 RTS_FUN_DECL(stg_block_async);
301 RTS_RET(stg_block_async);
302 RTS_FUN_DECL(stg_block_async_void);
303 RTS_RET(stg_block_async_void);
304 #endif
305 RTS_FUN_DECL(stg_block_stmwait);
306 RTS_FUN_DECL(stg_block_throwto);
307 RTS_RET(stg_block_throwto);
308
309 /* Entry/exit points from StgStartup.cmm */
310
311 RTS_RET(stg_stop_thread);
312
313 RTS_FUN_DECL(stg_returnToStackTop);
314 RTS_FUN_DECL(stg_returnToSched);
315 RTS_FUN_DECL(stg_returnToSchedNotPaused);
316 RTS_FUN_DECL(stg_returnToSchedButFirst);
317 RTS_FUN_DECL(stg_threadFinished);
318
319 RTS_FUN_DECL(stg_init_finish);
320 RTS_FUN_DECL(stg_init);
321
322 RTS_FUN_DECL(StgReturn);
323
324 /* -----------------------------------------------------------------------------
325 PrimOps
326 -------------------------------------------------------------------------- */
327
328 RTS_FUN_DECL(stg_plusIntegerzh);
329 RTS_FUN_DECL(stg_minusIntegerzh);
330 RTS_FUN_DECL(stg_timesIntegerzh);
331 RTS_FUN_DECL(stg_gcdIntegerzh);
332 RTS_FUN_DECL(stg_quotRemIntegerzh);
333 RTS_FUN_DECL(stg_quotIntegerzh);
334 RTS_FUN_DECL(stg_remIntegerzh);
335 RTS_FUN_DECL(stg_divExactIntegerzh);
336 RTS_FUN_DECL(stg_divModIntegerzh);
337
338 RTS_FUN_DECL(stg_cmpIntegerIntzh);
339 RTS_FUN_DECL(stg_cmpIntegerzh);
340 RTS_FUN_DECL(stg_integer2Intzh);
341 RTS_FUN_DECL(stg_integer2Wordzh);
342 RTS_FUN_DECL(stg_gcdIntegerIntzh);
343 RTS_FUN_DECL(stg_gcdIntzh);
344
345 RTS_FUN_DECL(stg_int2Integerzh);
346 RTS_FUN_DECL(stg_word2Integerzh);
347
348 RTS_FUN_DECL(stg_decodeFloatzuIntzh);
349 RTS_FUN_DECL(stg_decodeDoublezh);
350 RTS_FUN_DECL(stg_decodeDoublezu2Intzh);
351
352 RTS_FUN_DECL(stg_andIntegerzh);
353 RTS_FUN_DECL(stg_orIntegerzh);
354 RTS_FUN_DECL(stg_xorIntegerzh);
355 RTS_FUN_DECL(stg_complementIntegerzh);
356
357 #if SIZEOF_HSINT == 4
358
359 RTS_FUN_DECL(stg_int64ToIntegerzh);
360 RTS_FUN_DECL(stg_word64ToIntegerzh);
361
362 #endif
363
364 RTS_FUN_DECL(stg_unsafeThawArrayzh);
365 RTS_FUN_DECL(stg_newByteArrayzh);
366 RTS_FUN_DECL(stg_newPinnedByteArrayzh);
367 RTS_FUN_DECL(stg_newAlignedPinnedByteArrayzh);
368 RTS_FUN_DECL(stg_newArrayzh);
369 RTS_FUN_DECL(stg_newArrayArrayzh);
370
371 RTS_FUN_DECL(stg_newMutVarzh);
372 RTS_FUN_DECL(stg_atomicModifyMutVarzh);
373 RTS_FUN_DECL(stg_casMutVarzh);
374
375 RTS_FUN_DECL(stg_isEmptyMVarzh);
376 RTS_FUN_DECL(stg_newMVarzh);
377 RTS_FUN_DECL(stg_takeMVarzh);
378 RTS_FUN_DECL(stg_putMVarzh);
379 RTS_FUN_DECL(stg_tryTakeMVarzh);
380 RTS_FUN_DECL(stg_tryPutMVarzh);
381
382 RTS_FUN_DECL(stg_waitReadzh);
383 RTS_FUN_DECL(stg_waitWritezh);
384 RTS_FUN_DECL(stg_delayzh);
385 #ifdef mingw32_HOST_OS
386 RTS_FUN_DECL(stg_asyncReadzh);
387 RTS_FUN_DECL(stg_asyncWritezh);
388 RTS_FUN_DECL(stg_asyncDoProczh);
389 #endif
390
391 RTS_FUN_DECL(stg_catchzh);
392 RTS_FUN_DECL(stg_raisezh);
393 RTS_FUN_DECL(stg_raiseIOzh);
394
395 RTS_FUN_DECL(stg_makeStableNamezh);
396 RTS_FUN_DECL(stg_makeStablePtrzh);
397 RTS_FUN_DECL(stg_deRefStablePtrzh);
398
399 RTS_FUN_DECL(stg_forkzh);
400 RTS_FUN_DECL(stg_forkOnzh);
401 RTS_FUN_DECL(stg_yieldzh);
402 RTS_FUN_DECL(stg_killMyself);
403 RTS_FUN_DECL(stg_killThreadzh);
404 RTS_FUN_DECL(stg_getMaskingStatezh);
405 RTS_FUN_DECL(stg_maskAsyncExceptionszh);
406 RTS_FUN_DECL(stg_maskUninterruptiblezh);
407 RTS_FUN_DECL(stg_unmaskAsyncExceptionszh);
408 RTS_FUN_DECL(stg_myThreadIdzh);
409 RTS_FUN_DECL(stg_labelThreadzh);
410 RTS_FUN_DECL(stg_isCurrentThreadBoundzh);
411 RTS_FUN_DECL(stg_threadStatuszh);
412
413 RTS_FUN_DECL(stg_mkWeakzh);
414 RTS_FUN_DECL(stg_mkWeakNoFinalizzerzh);
415 RTS_FUN_DECL(stg_mkWeakForeignzh);
416 RTS_FUN_DECL(stg_addCFinalizzerToWeakzh);
417 RTS_FUN_DECL(stg_finalizzeWeakzh);
418 RTS_FUN_DECL(stg_deRefWeakzh);
419
420 RTS_FUN_DECL(stg_newBCOzh);
421 RTS_FUN_DECL(stg_mkApUpd0zh);
422
423 RTS_FUN_DECL(stg_retryzh);
424 RTS_FUN_DECL(stg_catchRetryzh);
425 RTS_FUN_DECL(stg_catchSTMzh);
426 RTS_FUN_DECL(stg_atomicallyzh);
427 RTS_FUN_DECL(stg_newTVarzh);
428 RTS_FUN_DECL(stg_readTVarzh);
429 RTS_FUN_DECL(stg_readTVarIOzh);
430 RTS_FUN_DECL(stg_writeTVarzh);
431 RTS_FUN_DECL(stg_checkzh);
432
433 RTS_FUN_DECL(stg_unpackClosurezh);
434 RTS_FUN_DECL(stg_getApStackValzh);
435 RTS_FUN_DECL(stg_getSparkzh);
436 RTS_FUN_DECL(stg_numSparkszh);
437
438 RTS_FUN_DECL(stg_noDuplicatezh);
439
440 RTS_FUN_DECL(stg_traceCcszh);
441 RTS_FUN_DECL(stg_traceEventzh);
442 RTS_FUN_DECL(stg_traceMarkerzh);
443
444 /* Other misc stuff */
445 // See wiki:Commentary/Compiler/Backends/PprC#Prototypes
446
447 #if IN_STG_CODE && !IN_STGCRUN
448
449 // Interpreter.c
450 extern StgWord rts_stop_next_breakpoint[];
451 extern StgWord rts_stop_on_exception[];
452 extern StgWord rts_breakpoint_io_action[];
453
454 // Schedule.c
455 extern StgWord RTS_VAR(blocked_queue_hd), RTS_VAR(blocked_queue_tl);
456 extern StgWord RTS_VAR(sleeping_queue);
457 extern StgWord RTS_VAR(blackhole_queue);
458 extern StgWord RTS_VAR(sched_mutex);
459
460 // Apply.cmm
461 // canned bitmap for each arg type
462 extern StgWord stg_arg_bitmaps[];
463 extern StgWord stg_ap_stack_entries[];
464 extern StgWord stg_stack_save_entries[];
465
466 // Storage.c
467 extern unsigned int RTS_VAR(g0);
468 extern unsigned int RTS_VAR(large_alloc_lim);
469 extern StgWord RTS_VAR(atomic_modify_mutvar_mutex);
470
471 // RtsFlags
472 extern StgWord RTS_VAR(RtsFlags); // bogus type
473
474 // Stable.c
475 extern StgWord RTS_VAR(stable_ptr_table);
476 extern StgWord RTS_VAR(stable_name_table);
477
478 // Profiling.c
479 extern unsigned int RTS_VAR(era);
480 extern unsigned int RTS_VAR(entering_PAP);
481 extern StgWord RTS_VAR(CC_LIST); /* registered CC list */
482 extern StgWord RTS_VAR(CCS_LIST); /* registered CCS list */
483 extern StgWord CCS_SYSTEM[];
484 extern unsigned int RTS_VAR(CC_ID); /* global ids */
485 extern unsigned int RTS_VAR(CCS_ID);
486
487 // Capability.c
488 extern unsigned int n_capabilities;
489
490 #endif
491
492 #endif /* STGMISCCLOSURES_H */