From owner-svn-src-head@FreeBSD.ORG Fri Jun 11 09:10:09 2010 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E7B121065675; Fri, 11 Jun 2010 09:10:09 +0000 (UTC) (envelope-from mavbsd@gmail.com) Received: from mail-fx0-f54.google.com (mail-fx0-f54.google.com [209.85.161.54]) by mx1.freebsd.org (Postfix) with ESMTP id B20E78FC13; Fri, 11 Jun 2010 09:10:08 +0000 (UTC) Received: by fxm7 with SMTP id 7so616594fxm.13 for ; Fri, 11 Jun 2010 02:10:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:message-id:date:from :user-agent:mime-version:to:cc:subject:references:in-reply-to :x-enigmail-version:content-type:content-transfer-encoding; bh=pYYpPgkr+ji5PU0IPLZGAPf+4PN7cTHQgg1OXoGdrro=; b=KyyAMGGUNxA4Fke8phdQpWL7oGxcHDzWj3QCrWXB3RDXsJLYsamFR0f0sucJgJRI8L /AIAXvR+i6q/9Ak7fu80KRH1WwvoiYSh9NaBAA826aWivguZI7i0bXwHx5qS11IijLmG LUjuLfrEszlJI4i7kXfuMgpCAfHQYC6pDz3tw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:x-enigmail-version:content-type :content-transfer-encoding; b=i6k7ieJ3A8nepwmPDjRO86WxE9VZeC637Je8pzDLYFw8wmxTrlzBGmvT/a4hhKtMbt 59k8Ajto+j+iqpcvmRt7gKCPaS3NXaiYGNh8hCpdOORg0K6IpoRap2P4zoY2Z/dHStdB wS5JJpnWstBO22JrE7u0pts4/UAL+Z20RSiMA= Received: by 10.223.99.212 with SMTP id v20mr1514920fan.44.1276247406908; Fri, 11 Jun 2010 02:10:06 -0700 (PDT) Received: from mavbook.mavhome.dp.ua (pc.mavhome.dp.ua [212.86.226.226]) by mx.google.com with ESMTPS id 2sm4202153faf.15.2010.06.11.02.10.05 (version=SSLv3 cipher=RC4-MD5); Fri, 11 Jun 2010 02:10:06 -0700 (PDT) Sender: Alexander Motin Message-ID: <4C11FD57.2000400@FreeBSD.org> Date: Fri, 11 Jun 2010 12:09:43 +0300 From: Alexander Motin User-Agent: Thunderbird 2.0.0.24 (X11/20100402) MIME-Version: 1.0 To: Kostik Belousov References: <201006101614.o5AGE5Zh099383@svn.freebsd.org> <20100611083137.GA2401@deviant.kiev.zoral.com.ua> In-Reply-To: <20100611083137.GA2401@deviant.kiev.zoral.com.ua> X-Enigmail-Version: 0.96.0 Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: 7bit Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org Subject: Re: svn commit: r208988 - in head/sys: kern sys X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 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: Fri, 11 Jun 2010 09:10:10 -0000 Kostik Belousov wrote: > On Thu, Jun 10, 2010 at 04:14:05PM +0000, Alexander Motin wrote: >> Author: mav >> Date: Thu Jun 10 16:14:05 2010 >> New Revision: 208988 >> URL: http://svn.freebsd.org/changeset/base/208988 >> >> Log: >> Store interrupt trap frame into struct thread. It allows interrupt handler >> to obtain both trap frame and opaque argument submitted on registrction. >> After kernel and all drivers get used to it, legacy hack can be removed. >> >> Reviewed by: jhb@ > Just curious, why td_frame is not enough for your usage ? I believe td_frame > is currently set only by traps and syscalls, and copied on forks. I've seen that field, but I have no idea how it is used. I see a lot of usage places and not sure that none of them called inside interrupt filter. I didn't want to break something unexpected. If you sure - it is easy to change. -- Alexander Motin