From owner-cvs-all Wed Sep 29 8: 8: 0 1999 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id A581B15811; Wed, 29 Sep 1999 08:06:28 -0700 (PDT) (envelope-from marcel@FreeBSD.org) Received: (from marcel@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id IAA58226; Wed, 29 Sep 1999 08:06:28 -0700 (PDT) (envelope-from marcel@FreeBSD.org) Message-Id: <199909291506.IAA58226@freefall.freebsd.org> From: Marcel Moolenaar Date: Wed, 29 Sep 1999 08:06:28 -0700 (PDT) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/i386/i386 genassym.c locore.s machdep.c src/sys/i386/include sigframe.h ucontext.h db_machdep.h frame.h setjmp.h signal.h src/sys/alpha/alpha machdep.c src/sys/alpha/include sigframe.h ucontext.h signal.h ... Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk marcel 1999/09/29 08:06:28 PDT Modified files: sys/i386/i386 genassym.c locore.s machdep.c sys/i386/include db_machdep.h frame.h setjmp.h signal.h sys/alpha/alpha machdep.c sys/alpha/include signal.h sys/pc98/i386 machdep.c Added files: sys/i386/include sigframe.h ucontext.h sys/alpha/include sigframe.h ucontext.h Log: sigset_t change (part 3 of 5) ----------------------------- By introducing a new sigframe so that the signal handler operates on the new siginfo_t and on ucontext_t instead of sigcontext, we now need two version of sendsig and sigreturn. A flag in struct proc determines whether the process expects an old sigframe or a new sigframe. The signal trampoline handles which sigreturn to call. It does this by testing for a magic cookie in the frame. The alpha uses osigreturn to implement longjmp. This means that osigreturn is not only used for compatibility with existing binaries. To handle the new sigset_t, setjmp saves it in sc_reserved (see NOTE). the struct sigframe has been moved from frame.h to sigframe.h to handle the complex header dependencies that was caused by the new sigframe. NOTE: For the i386, the size of jmp_buf has been increased to hold the new sigset_t. On the alpha this has been prevented by using sc_reserved in sigcontext. Revision Changes Path 1.79 +13 -5 src/sys/i386/i386/genassym.c 1.128 +30 -10 src/sys/i386/i386/locore.s 1.362 +276 -71 src/sys/i386/i386/machdep.c 1.15 +2 -1 src/sys/i386/include/db_machdep.h 1.20 +1 -39 src/sys/i386/include/frame.h 1.4 +2 -2 src/sys/i386/include/setjmp.h 1.10 +30 -28 src/sys/i386/include/signal.h 1.54 +198 -41 src/sys/alpha/alpha/machdep.c 1.4 +5 -3 src/sys/alpha/include/signal.h 1.133 +277 -71 src/sys/pc98/i386/machdep.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message