Mercurial > cgi-bin > hgwebdir.cgi > VMS > VMS_Implementations > VMS_impls > VMS__MC_shared_impl
annotate ProcrContext.h @ 196:7cff4e13d5c4
remove old second default head
| author | Nina Engelhardt <nengel@mailbox.tu-berlin.de> |
|---|---|
| date | Fri, 10 Feb 2012 12:05:17 +0100 |
| parents | c11b9dcf6d24 |
| children | 6db9e4898978 |
| rev | line source |
|---|---|
| Me@178 | 1 /* |
| Me@178 | 2 * Copyright 2009 OpenSourceStewardshipFoundation.org |
| Me@178 | 3 * Licensed under GNU General Public License version 2 |
| Me@178 | 4 * |
| Me@178 | 5 * Author: seanhalle@yahoo.com |
| Me@178 | 6 * |
| Me@178 | 7 */ |
| Me@178 | 8 |
| Me@178 | 9 #ifndef _ProcrContext_H |
| Me@178 | 10 #define _ProcrContext_H |
| Me@178 | 11 #define _GNU_SOURCE |
| Me@178 | 12 |
| Me@178 | 13 void saveCoreLoopReturnAddr(void **returnAddress); |
| Me@178 | 14 |
| Me@178 | 15 void switchToVP(VirtProcr *nextProcr); |
| Me@178 | 16 |
| Me@178 | 17 void switchToCoreLoop(VirtProcr *nextProcr); |
| Me@178 | 18 |
| Me@178 | 19 void masterSwitchToCoreLoop(VirtProcr *nextProcr); |
| Me@178 | 20 |
| Me@178 | 21 void startVirtProcrFn(); |
| Me@178 | 22 |
| Me@178 | 23 void *asmTerminateCoreLoop(VirtProcr *currPr); |
| Me@178 | 24 |
| Me@178 | 25 #define flushRegisters() \ |
| Me@178 | 26 asm volatile ("":::"%rbx", "%r12", "%r13","%r14","%r15") |
| Me@178 | 27 |
| Me@178 | 28 inline VirtProcr * |
| Me@178 | 29 create_procr_helper( VirtProcr *newPr, VirtProcrFnPtr fnPtr, |
| Me@178 | 30 void *initialData, void *stackLocs ); |
| Me@178 | 31 |
| Me@178 | 32 #endif /* _ProcrContext_H */ |
| Me@178 | 33 |
