Permalink
Browse files

x86-64: Save and restore r10 and r11 in signal_bh_trampoline()

The signal_bh_trampoline() function forgot to save and restore r10 and
r11 which are also caller-save registers.

Signed-off-by: Pekka Enberg <penberg@kernel.org>
  • Loading branch information...
1 parent 40aaad4 commit 444192e982f9959b6e63d79a0d1cfbbbb328951b @penberg committed Mar 26, 2013
Showing with 4 additions and 0 deletions.
  1. +4 −0 arch/x86/signal-bh.S
View
@@ -94,6 +94,8 @@ signal_bh_trampoline:
push %rcx
push %r8
push %r9
+ push %r10
+ push %r11
/* save FPU registers */
sub $128, %rsp
@@ -148,6 +150,8 @@ signal_bh_trampoline:
add $128, %rsp
/* restore caller saved registers */
+ pop %r11
+ pop %r10
pop %r9
pop %r8
pop %rcx

0 comments on commit 444192e

Please sign in to comment.