Mercurial > cgi-bin > hgwebdir.cgi > VMS > VMS_Implementations > VMS_impls > VMS__MC_shared_impl
view ProcrContext.h @ 77:fe5ec83f1baf
separated hardware dependent code
| author | Merten Sach <msach@mailbox.tu-berlin.de> |
|---|---|
| date | Wed, 22 Jun 2011 16:12:27 +0200 |
| parents | SwitchAnimators.h@9ddbb071142d |
| children | 521c75d64cef |
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(VirtProcr *nextProcr);
17 void switchToCoreLoop(VirtProcr *nextProcr);
19 void masterSwitchToCoreLoop(VirtProcr *nextProcr);
21 void startVirtProcrFn();
23 #define flushRegisters() \
24 asm volatile ("":::"%rbx", "%r12", "%r13","%r14","%r15")
26 inline VirtProcr *
27 create_procr_helper( VirtProcr *newPr, VirtProcrFnPtr fnPtr,
28 void *initialData, void *stackLocs );
30 #endif /* _ProcrContext_H */
