diff options
author | Borislav Petkov <bp@alien8.de> | 2011-05-31 22:21:53 +0200 |
---|---|---|
committer | H. Peter Anvin <hpa@linux.intel.com> | 2011-06-03 14:38:53 -0700 |
commit | 838feb47549a9b73534c6c1d7da4a9639a0750f4 (patch) | |
tree | 8a8bba854694e69fc010f5dad6911949c1649384 /arch/x86/kernel/entry_64.S | |
parent | cac0e0a78f722abd85b7f8d614ee0820f7672f58 (diff) | |
download | blackbird-op-linux-838feb47549a9b73534c6c1d7da4a9639a0750f4.tar.gz blackbird-op-linux-838feb47549a9b73534c6c1d7da4a9639a0750f4.zip |
x86, asm: Flip RESTORE_ARGS arguments logic
... thus getting rid of the "else" part of the conditional statement in
the macro.
No functionality change.
Signed-off-by: Borislav Petkov <bp@alien8.de>
Link: http://lkml.kernel.org/r/1306873314-32523-4-git-send-email-bp@alien8.de
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
Diffstat (limited to 'arch/x86/kernel/entry_64.S')
-rw-r--r-- | arch/x86/kernel/entry_64.S | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/kernel/entry_64.S b/arch/x86/kernel/entry_64.S index e5ece6b6e716..0412bcbe171c 100644 --- a/arch/x86/kernel/entry_64.S +++ b/arch/x86/kernel/entry_64.S @@ -508,7 +508,7 @@ sysret_check: TRACE_IRQS_ON movq RIP-ARGOFFSET(%rsp),%rcx CFI_REGISTER rip,rcx - RESTORE_ARGS 0,-ARG_SKIP,1 + RESTORE_ARGS 1,-ARG_SKIP,0 /*CFI_REGISTER rflags,r11*/ movq PER_CPU_VAR(old_rsp), %rsp USERGS_SYSRET64 @@ -858,7 +858,7 @@ retint_restore_args: /* return to kernel space */ */ TRACE_IRQS_IRETQ restore_args: - RESTORE_ARGS 0,8,0 + RESTORE_ARGS 1,8,1 irq_return: INTERRUPT_RETURN |