]> git.karo-electronics.de Git - linux-beck.git/blobdiff - arch/x86/kernel/entry_64.S
Merge tag 'pr-20150114-x86-entry' of git://git.kernel.org/pub/scm/linux/kernel/git...
[linux-beck.git] / arch / x86 / kernel / entry_64.S
index 7d59df23e5bbfb75e3fc64ec016a21e0944f4c44..501212f14c871db1fe6dd5113d278374dfe05c4f 100644 (file)
@@ -143,7 +143,8 @@ ENDPROC(native_usergs_sysret64)
        movq \tmp,RSP+\offset(%rsp)
        movq $__USER_DS,SS+\offset(%rsp)
        movq $__USER_CS,CS+\offset(%rsp)
-       movq $-1,RCX+\offset(%rsp)
+       movq RIP+\offset(%rsp),\tmp  /* get rip */
+       movq \tmp,RCX+\offset(%rsp)  /* copy it to rcx as sysret would do */
        movq R11+\offset(%rsp),\tmp  /* get eflags */
        movq \tmp,EFLAGS+\offset(%rsp)
        .endm