Skip to content

Commit

Permalink
Revert "Load/restore registers in x86-64 coroutine switching in order"
Browse files Browse the repository at this point in the history
This reverts commit f671c9e.
  • Loading branch information
lpereira committed Aug 23, 2024
1 parent 83b8725 commit a3b8a1b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/lwan-coro.c
Original file line number Diff line number Diff line change
Expand Up @@ -164,16 +164,16 @@ asm(".text\n\t"
"movq %rcx,64(%rdi)\n\t"
"leaq 0x8(%rsp),%rcx\n\t"
"movq %rcx,72(%rdi)\n\t"
"movq 72(%rsi),%rsp\n\t"
"movq 0(%rsi),%rbx\n\t"
"movq 8(%rsi),%rbp\n\t"
"movq 16(%rsi),%r12\n\t"
"movq 24(%rsi),%r13\n\t"
"movq 32(%rsi),%r14\n\t"
"movq 40(%rsi),%r15\n\t"
"movq 48(%rsi),%rdi\n\t"
"movq 56(%rsi),%rsi\n\t"
"movq 64(%rsi),%rcx\n\t"
"movq 72(%rsi),%rsp\n\t"
"movq 56(%rsi),%rsi\n\t"
"jmpq *%rcx\n\t");
#elif defined(__aarch64__)
void __attribute__((noinline, visibility("internal")))
Expand Down

0 comments on commit a3b8a1b

Please sign in to comment.