From owner-p4-projects Sat Sep 21 17:32:57 2002 Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 5944F37B404; Sat, 21 Sep 2002 17:32:55 -0700 (PDT) Delivered-To: perforce@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1B9D137B401 for ; Sat, 21 Sep 2002 17:32:55 -0700 (PDT) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id D1A1743E77 for ; Sat, 21 Sep 2002 17:32:54 -0700 (PDT) (envelope-from peter@freebsd.org) Received: from freefall.freebsd.org (perforce@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.6/8.12.6) with ESMTP id g8M0WsCo034604 for ; Sat, 21 Sep 2002 17:32:54 -0700 (PDT) (envelope-from peter@freebsd.org) Received: (from perforce@localhost) by freefall.freebsd.org (8.12.6/8.12.6/Submit) id g8M0WsHA034601 for perforce@freebsd.org; Sat, 21 Sep 2002 17:32:54 -0700 (PDT) Date: Sat, 21 Sep 2002 17:32:54 -0700 (PDT) Message-Id: <200209220032.g8M0WsHA034601@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: perforce set sender to peter@freebsd.org using -f From: Peter Wemm Subject: PERFORCE change 17892 for review To: Perforce Change Reviews Sender: owner-p4-projects@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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