Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
shrapnel
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
shrapnel
Commits
651a7035
Commit
651a7035
authored
Jan 06, 2012
by
Amit Ranjit
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of git@github.com:ironport/shrapnel
parents
022f5f9f
e18e8a59
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
7 deletions
+1
-7
coro/swap.c
coro/swap.c
+1
-7
No files found.
coro/swap.c
View file @
651a7035
...
...
@@ -170,13 +170,7 @@ _wrap0 (void)
void
*
co
;
// x86_64 passes args in registers. but coro.__create() puts
// the coroutine on the stack. fetch it from there.
// llvm does the prologue differently...
#ifdef __llvm__
__asm__
(
"movq 16(%%rbp), %[co]"
:
[
co
]
"=r"
(
co
));
#else
__asm__
(
"movq 8(%%rbp), %[co]"
:
[
co
]
"=r"
(
co
));
#endif
__asm__
(
"movq 16(%%rsp), %[co]"
:
[
co
]
"=r"
(
co
));
_wrap1
(
co
);
__yield
();
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment