From 57efd3c00d7bb75667dd8a782ee8b0c0665c6ada Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Fri, 20 Feb 2004 20:49:58 +0000 Subject: use an old syscall (int $0x80) for the sigreturn; otherwise %rcx is trashed. we've been chasing this for 2 weeks.. finally spotted by kettenis@chello.nl --- sys/arch/amd64/amd64/locore.S | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/arch/amd64') diff --git a/sys/arch/amd64/amd64/locore.S b/sys/arch/amd64/amd64/locore.S index c54c00bd384..fabbf2eecac 100644 --- a/sys/arch/amd64/amd64/locore.S +++ b/sys/arch/amd64/amd64/locore.S @@ -1,4 +1,4 @@ -/* $OpenBSD: locore.S,v 1.3 2004/02/07 17:00:12 miod Exp $ */ +/* $OpenBSD: locore.S,v 1.4 2004/02/20 20:49:57 deraadt Exp $ */ /* $NetBSD: locore.S,v 1.2 2003/04/26 19:34:45 fvdl Exp $ */ /* @@ -600,7 +600,7 @@ NENTRY(sigcode) movq %rsp,%rdi pushq %rdi /* fake return address */ movq $SYS_sigreturn,%rax - syscall + int $0x80 movq $SYS_exit,%rax syscall .globl _C_LABEL(esigcode) -- cgit v1.2.3