Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 21 Sep 2002 17:32:54 -0700 (PDT)
From:      Peter Wemm <peter@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 17892 for review
Message-ID:  <200209220032.g8M0WsHA034601@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://people.freebsd.org/~peter/p4db/chv.cgi?CH=17892

Change 17892 by peter@peter_overcee on 2002/09/21 17:32:35

	sigtramp should be workable.  convert for register calling convention.

Affected files ...

.. //depot/projects/hammer/sys/x86_64/x86_64/sigtramp.s#2 edit

Differences ...

==== //depot/projects/hammer/sys/x86_64/x86_64/sigtramp.s#2 (text+ko) ====

@@ -56,14 +56,12 @@
  *
  */
 NON_GPROF_ENTRY(sigcode)
-	call	*SIGF_HANDLER(%esp)	/* call signal handler */
-	lea	SIGF_UC(%esp),%eax	/* get ucontext_t */
-	pushl	%eax
-	movl	UC_GS(%eax),%gs		/* restore %gs */
-	movl	$SYS_sigreturn,%eax
-	pushl	%eax			/* junk to fake return addr. */
-	int	$0x80			/* enter kernel with args */
-0:	hlt				/* priviliged instruction */
+	call	*SIGF_HANDLER(%rsp)	/* call signal handler */
+	lea	SIGF_UC(%rsp),%rdi	/* get ucontext_t */
+	pushq	$0			/* junk to fake return addr. */
+	movq	$SYS_sigreturn,%rax
+	syscall				/* enter kernel with args */
+0:	hlt				/* trap priviliged instruction */
 	jmp	0b
 
 	ALIGN_TEXT

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe p4-projects" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200209220032.g8M0WsHA034601>