Mercurial > cgi-bin > hgwebdir.cgi > VMS > VMS_Implementations > VMS_impls > VMS__MC_shared_impl
diff ProcrContext.h @ 178:c1784868dcea
testing hgeol -- see if it fixes line-ending issues -- commit line endings
| author | Me@portablequad |
|---|---|
| date | Wed, 04 Jan 2012 16:10:11 -0800 |
| parents | c11b9dcf6d24 |
| children | 6db9e4898978 |
line diff
1.1 --- a/ProcrContext.h Thu Oct 06 16:24:17 2011 +0200 1.2 +++ b/ProcrContext.h Wed Jan 04 16:10:11 2012 -0800 1.3 @@ -1,33 +1,33 @@ 1.4 -/* 1.5 - * Copyright 2009 OpenSourceStewardshipFoundation.org 1.6 - * Licensed under GNU General Public License version 2 1.7 - * 1.8 - * Author: seanhalle@yahoo.com 1.9 - * 1.10 - */ 1.11 - 1.12 -#ifndef _ProcrContext_H 1.13 -#define _ProcrContext_H 1.14 -#define _GNU_SOURCE 1.15 - 1.16 -void saveCoreLoopReturnAddr(void **returnAddress); 1.17 - 1.18 -void switchToVP(VirtProcr *nextProcr); 1.19 - 1.20 -void switchToCoreLoop(VirtProcr *nextProcr); 1.21 - 1.22 -void masterSwitchToCoreLoop(VirtProcr *nextProcr); 1.23 - 1.24 -void startVirtProcrFn(); 1.25 - 1.26 -void *asmTerminateCoreLoop(VirtProcr *currPr); 1.27 - 1.28 -#define flushRegisters() \ 1.29 - asm volatile ("":::"%rbx", "%r12", "%r13","%r14","%r15") 1.30 - 1.31 -inline VirtProcr * 1.32 -create_procr_helper( VirtProcr *newPr, VirtProcrFnPtr fnPtr, 1.33 - void *initialData, void *stackLocs ); 1.34 - 1.35 -#endif /* _ProcrContext_H */ 1.36 - 1.37 +/* 1.38 + * Copyright 2009 OpenSourceStewardshipFoundation.org 1.39 + * Licensed under GNU General Public License version 2 1.40 + * 1.41 + * Author: seanhalle@yahoo.com 1.42 + * 1.43 + */ 1.44 + 1.45 +#ifndef _ProcrContext_H 1.46 +#define _ProcrContext_H 1.47 +#define _GNU_SOURCE 1.48 + 1.49 +void saveCoreLoopReturnAddr(void **returnAddress); 1.50 + 1.51 +void switchToVP(VirtProcr *nextProcr); 1.52 + 1.53 +void switchToCoreLoop(VirtProcr *nextProcr); 1.54 + 1.55 +void masterSwitchToCoreLoop(VirtProcr *nextProcr); 1.56 + 1.57 +void startVirtProcrFn(); 1.58 + 1.59 +void *asmTerminateCoreLoop(VirtProcr *currPr); 1.60 + 1.61 +#define flushRegisters() \ 1.62 + asm volatile ("":::"%rbx", "%r12", "%r13","%r14","%r15") 1.63 + 1.64 +inline VirtProcr * 1.65 +create_procr_helper( VirtProcr *newPr, VirtProcrFnPtr fnPtr, 1.66 + void *initialData, void *stackLocs ); 1.67 + 1.68 +#endif /* _ProcrContext_H */ 1.69 +
