From 841153fa02afb1e115bfc3dd504c2ee7354c1f56 Mon Sep 17 00:00:00 2001 From: Richard Henderson Date: Sat, 13 Mar 2004 05:29:24 +0000 Subject: [PATCH] * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Propagate oldvalue from CENABLE to CDISABLE. 2004-03-12 Richard Henderson * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Propagate oldvalue from CENABLE to CDISABLE. --- nptl/ChangeLog | 5 +++++ nptl/sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/nptl/ChangeLog b/nptl/ChangeLog index 755d6fee3d..91b8205366 100644 --- a/nptl/ChangeLog +++ b/nptl/ChangeLog @@ -1,3 +1,8 @@ +2004-03-12 Richard Henderson + + * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Propagate + oldvalue from CENABLE to CDISABLE. + 2004-03-12 Ulrich Drepper * sysdeps/unix/sysv/linux/bits/local_lim.h: Define HOST_NAME_MAX. diff --git a/nptl/sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h b/nptl/sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h index 3b08b22c1a..794d7fc442 100644 --- a/nptl/sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h +++ b/nptl/sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h @@ -63,9 +63,14 @@ __LABEL($pseudo_cancel) \ SAVE_ARGS_##args; \ CENABLE; \ LOAD_ARGS_##args; \ + /* Save the CENABLE return value in RA. That register \ + is preserved across syscall and the real return \ + address is saved on the stack. */ \ + mov v0, ra; \ lda v0, SYS_ify(syscall_name); \ call_pal PAL_callsys; \ stq v0, 8(sp); \ + mov ra, a0; \ bne a3, $multi_error; \ CDISABLE; \ ldq ra, 0(sp); \ -- 2.11.4.GIT