From: Frederic Weisbecker Date: Fri, 1 Jul 2011 00:25:17 +0000 (+0200) Subject: x86,64: Separate arg1 from rbp handling in SAVE_REGS_IRQ X-Git-Tag: upstream/snapshot3+hdmi~9607^2~16^2~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3b99a3ef55b292180473a221f3d6bc24455f0632;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git x86,64: Separate arg1 from rbp handling in SAVE_REGS_IRQ Just for clarity in the code. Have a first block that handles the frame pointer and a separate one that handles pt_regs pointer and its use. Signed-off-by: Frederic Weisbecker Cc: Ingo Molnar Cc: Thomas Gleixner Cc: H. Peter Anvin Cc: Peter Zijlstra Cc: Arnaldo Carvalho de Melo Cc: Jan Beulich --- diff --git a/arch/x86/kernel/entry_64.S b/arch/x86/kernel/entry_64.S index b6b2e85..20dc8e6 100644 --- a/arch/x86/kernel/entry_64.S +++ b/arch/x86/kernel/entry_64.S @@ -310,9 +310,10 @@ ENDPROC(native_usergs_sysret64) movq_cfi r10, R10-RBP movq_cfi r11, R11-RBP - leaq -RBP(%rsp),%rdi /* arg1 for handler */ movq_cfi rbp, 0 /* push %rbp */ movq %rsp, %rbp + + leaq -RBP(%rsp),%rdi /* arg1 for handler */ testl $3, CS(%rdi) je 1f SWAPGS