view ProcrContext.h @ 205:cb888346c3e0

Changed include paths, but version still does not work because of accidental merge
author Merten Sach <msach@mailbox.tu-berlin.de>
date Fri, 17 Feb 2012 18:28:59 +0100
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 */