From owner-cvs-all@FreeBSD.ORG Tue Oct 14 19:04:53 2003 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CEEA016A4B3; Tue, 14 Oct 2003 19:04:53 -0700 (PDT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5758F43F93; Tue, 14 Oct 2003 19:04:53 -0700 (PDT) (envelope-from peter@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.9/8.12.9) with ESMTP id h9F24rXJ015518; Tue, 14 Oct 2003 19:04:53 -0700 (PDT) (envelope-from peter@repoman.freebsd.org) Received: (from peter@localhost) by repoman.freebsd.org (8.12.9/8.12.9/Submit) id h9F24rVO015517; Tue, 14 Oct 2003 19:04:53 -0700 (PDT) (envelope-from peter) Message-Id: <200310150204.h9F24rVO015517@repoman.freebsd.org> From: Peter Wemm Date: Tue, 14 Oct 2003 19:04:53 -0700 (PDT) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/amd64/amd64 exception.S trap.c src/sys/amd64/include frame.h signal.h ucontext.h X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Oct 2003 02:04:54 -0000 peter 2003/10/14 19:04:52 PDT FreeBSD src repository Modified files: sys/amd64/amd64 exception.S trap.c sys/amd64/include frame.h signal.h ucontext.h Log: Pull the tier-2 card one last time and break the get/setcontext and sigreturn() ABI and the signal context on the stack. Make the trapframe (and its shadows in the ucontext and sigframe etc) 8 bytes larger in order to preserve 16 byte stack alignment for the following C code calls. I could have done some padding after the trapframe was saved, but some of the C code still expects an argument of 'struct trapframe'. Anyway, this gives me a spare field that can be used to store things like 'partial trapframe' status or something else in the future. The runtime impact is fairly small, *except* for threaded apps and things that decode contexts and the signal stack (eg: cvsup binary). Signal delivery isn't too badly affected because the kernel generates the sigframe that sigreturn uses after the handler has been called. The size of mcontext_t and struct sigframe hasn't changed. Only the last few fields (sc_eip etc) got moved a little and I eliminated a spare field. mc_len/sc_len did change location though so the sanity checks there will still trap it. Revision Changes Path 1.113 +1 -1 src/sys/amd64/amd64/exception.S 1.266 +9 -0 src/sys/amd64/amd64/trap.c 1.25 +3 -0 src/sys/amd64/include/frame.h 1.24 +2 -2 src/sys/amd64/include/signal.h 1.16 +2 -2 src/sys/amd64/include/ucontext.h