kern: fix %r13 management in syscallentry

This commit is contained in:
Giacomo Tesio 2017-10-02 01:14:47 +02:00
parent 90c3415176
commit 7c017f5059
1 changed files with 1 additions and 2 deletions

View File

@ -49,8 +49,7 @@ syscallentry:
pushq $UESEL /* old code segment */
pushq %rcx /* old ip */
movq %r14, 24(%r15) /* restore %r14 from m->tmp0 */
movq %r13, 32(%r15) /* restore %r13 from m->tmp1 */
movq 32(%r15), %r13 /* restore %r13 from m->tmp1 */
xchgq %gs:0, %r15 /* restore %r15 */
subq $(17*8), %rsp