aboutsummaryrefslogtreecommitdiff
path: root/arch/x86/vdso/vdso32/sigreturn.S
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86/vdso/vdso32/sigreturn.S')
-rw-r--r--arch/x86/vdso/vdso32/sigreturn.S9
1 files changed, 6 insertions, 3 deletions
diff --git a/arch/x86/vdso/vdso32/sigreturn.S b/arch/x86/vdso/vdso32/sigreturn.S
index 778f4649e32..8d65a0a0eb7 100644
--- a/arch/x86/vdso/vdso32/sigreturn.S
+++ b/arch/x86/vdso/vdso32/sigreturn.S
@@ -6,9 +6,12 @@
* routines are constant for all vsyscall implementations.
*/
-#include <asm/unistd.h>
+#include <asm/unistd_32.h>
#include <asm/asm-offsets.h>
+#ifndef SYSCALL_ENTER_KERNEL
+#define SYSCALL_ENTER_KERNEL int $0x80
+#endif
/* XXX
Should these be named "_sigtramp" or something?
@@ -22,7 +25,7 @@ __kernel_sigreturn:
.LSTART_sigreturn:
popl %eax /* XXX does this mean it needs unwind info? */
movl $__NR_sigreturn, %eax
- int $0x80
+ SYSCALL_ENTER_KERNEL
.LEND_sigreturn:
.size __kernel_sigreturn,.-.LSTART_sigreturn
@@ -32,7 +35,7 @@ __kernel_sigreturn:
__kernel_rt_sigreturn:
.LSTART_rt_sigreturn:
movl $__NR_rt_sigreturn, %eax
- int $0x80
+ SYSCALL_ENTER_KERNEL
.LEND_rt_sigreturn:
.size __kernel_rt_sigreturn,.-.LSTART_rt_sigreturn
.balign 32