From owner-svn-src-head@freebsd.org Mon Mar 27 17:24:16 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 0C5A7D20403; Mon, 27 Mar 2017 17:24:16 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from mail.baldwin.cx (bigwig.baldwin.cx [IPv6:2001:470:1f11:75::1]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id E06C7764; Mon, 27 Mar 2017 17:24:15 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from ralph.baldwin.cx (c-73-231-226-104.hsd1.ca.comcast.net [73.231.226.104]) by mail.baldwin.cx (Postfix) with ESMTPSA id 888A410A7B9; Mon, 27 Mar 2017 13:24:14 -0400 (EDT) From: John Baldwin To: Michal Meloun Cc: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: Re: svn commit: r315974 - in head: lib/libthread_db/arch/arm sys/arm/arm sys/arm/include Date: Mon, 27 Mar 2017 10:07:57 -0700 Message-ID: <1579704.6DjZ3RBGJe@ralph.baldwin.cx> User-Agent: KMail/4.14.10 (FreeBSD/11.0-STABLE; KDE/4.14.10; amd64; ; ) In-Reply-To: <201703260836.v2Q8auoU069005@repo.freebsd.org> References: <201703260836.v2Q8auoU069005@repo.freebsd.org> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.4.3 (mail.baldwin.cx); Mon, 27 Mar 2017 13:24:14 -0400 (EDT) X-Virus-Scanned: clamav-milter 0.99.2 at mail.baldwin.cx X-Virus-Status: Clean X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Mar 2017 17:24:16 -0000 On Sunday, March 26, 2017 08:36:56 AM Michal Meloun wrote: > Author: mmel > Date: Sun Mar 26 08:36:56 2017 > New Revision: 315974 > URL: https://svnweb.freebsd.org/changeset/base/315974 > > Log: > Preserve VFP state across signal delivery. > > We don't have enouch space to store full VFP context within mcontext > stucture. Due to this: > - follow i386/amd64 way and store VFP state outside of the mcontext_t > but point to it. Use the size of VFP state structure as an 'magic' > indicator of the saved VFP state presence. > - teach set_mcontext() about this external storage. > - for signal delivery, store VFP state to expanded 'struct sigframe'. > > Submited by: Andrew Gierth (initial version) > PR: 217611 > MFC after: 2 weeks > > Modified: > head/lib/libthread_db/arch/arm/libpthread_md.c > head/sys/arm/arm/machdep.c > head/sys/arm/include/frame.h > head/sys/arm/include/ucontext.h > > Modified: head/lib/libthread_db/arch/arm/libpthread_md.c > ============================================================================== > --- head/lib/libthread_db/arch/arm/libpthread_md.c Sun Mar 26 08:36:20 2017 (r315973) > +++ head/lib/libthread_db/arch/arm/libpthread_md.c Sun Mar 26 08:36:56 2017 (r315974) > @@ -90,7 +90,9 @@ pt_fpreg_to_ucontext(const struct fpreg > mcontext_t *mc = &uc->uc_mcontext; > > /* XXX */ > - memset(&mc->mc_spare, 0, sizeof(mc->mc_spare)); > + mc->mc_vfp_size = 0; > + mc->mc_vfp_ptr = NULL; > + memset(mc->mc_spare, 0, sizeof(mc->mc_spare)); > } I suspect you don't need this bit? Has FreeBSD/arm ever supported VFP on a release that also shipped libkse? (i.e. not libthr but the other thread library) -- John Baldwin