Mercurial > cgi-bin > hgwebdir.cgi > VMS > VMS_Implementations > VMS_impls > VMS__MC_shared_impl
view ProcrContext.h @ 200:6db9e4898978
VMS name chgs -- added "WL" "PI" and "int" and split vms.h up
| author | Me@portablequad |
|---|---|
| date | Sun, 12 Feb 2012 01:49:33 -0800 |
| parents | c1784868dcea |
| children |
line source
1 /*
2 * Copyright 2009 OpenSourceStewardshipFoundation.org
3 * Licensed under GNU General Public License version 2
4 *
5 * Author: seanhalle@yahoo.com
6 *
7 */
9 #ifndef _ProcrContext_H
10 #define _ProcrContext_H
11 #define _GNU_SOURCE
13 void saveCoreLoopReturnAddr(void **returnAddress);
15 void switchToVP(SlaveVP *nextProcr);
17 void switchToCoreLoop(SlaveVP *nextProcr);
19 void masterSwitchToCoreLoop(SlaveVP *nextProcr);
21 void startVPFn();
23 void *asmTerminateCoreLoop(SlaveVP *currPr);
25 #define flushRegisters() \
26 asm volatile ("":::"%rbx", "%r12", "%r13","%r14","%r15")
28 inline SlaveVP *
29 create_procr_helper( SlaveVP *newPr, VirtProcrFnPtr fnPtr,
30 void *initialData, void *stackLocs );
32 #endif /* _ProcrContext_H */
