Skip to content

Commit a3b8a1b

Browse files
committed
Revert "Load/restore registers in x86-64 coroutine switching in order"
This reverts commit f671c9e.
1 parent 83b8725 commit a3b8a1b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lib/lwan-coro.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -164,16 +164,16 @@ asm(".text\n\t"
164164
"movq %rcx,64(%rdi)\n\t"
165165
"leaq 0x8(%rsp),%rcx\n\t"
166166
"movq %rcx,72(%rdi)\n\t"
167+
"movq 72(%rsi),%rsp\n\t"
167168
"movq 0(%rsi),%rbx\n\t"
168169
"movq 8(%rsi),%rbp\n\t"
169170
"movq 16(%rsi),%r12\n\t"
170171
"movq 24(%rsi),%r13\n\t"
171172
"movq 32(%rsi),%r14\n\t"
172173
"movq 40(%rsi),%r15\n\t"
173174
"movq 48(%rsi),%rdi\n\t"
174-
"movq 56(%rsi),%rsi\n\t"
175175
"movq 64(%rsi),%rcx\n\t"
176-
"movq 72(%rsi),%rsp\n\t"
176+
"movq 56(%rsi),%rsi\n\t"
177177
"jmpq *%rcx\n\t");
178178
#elif defined(__aarch64__)
179179
void __attribute__((noinline, visibility("internal")))

0 commit comments

Comments
 (0)