Changeset f32e53e for src/libcfa/concurrency/invoke.h
- Timestamp:
- Jul 7, 2017, 11:55:32 AM (7 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
- Children:
- 3f12158
- Parents:
- b5f9829
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/libcfa/concurrency/invoke.h
rb5f9829 rf32e53e 99 99 #ifndef _INVOKE_PRIVATE_H_ 100 100 #define _INVOKE_PRIVATE_H_ 101 101 102 102 struct machine_context_t { 103 103 void *SP; … … 109 109 extern void CtxInvokeStub( void ); 110 110 void CtxSwitch( void * from, void * to ) asm ("CtxSwitch"); 111 void CtxGet( void * this ) asm ("CtxGet"); 111 112 #if defined( __x86_64__ ) 113 #define CtxGet( ctx ) __asm__ ( \ 114 "movq %%rsp,%0\n" \ 115 "movq %%rbp,%1\n" \ 116 : "=rm" (ctx.SP), "=rm" (ctx.FP) ) 117 #elif defined( __i386__ ) 118 #define CtxGet( ctx ) __asm__ ( \ 119 "movl %%esp,%0\n" \ 120 "movl %%ebp,%1\n" \ 121 : "=rm" (ctx.SP), "=rm" (ctx.FP) ) 122 #endif 112 123 113 124 #endif //_INVOKE_PRIVATE_H_
Note: See TracChangeset
for help on using the changeset viewer.