From owner-cvs-all@FreeBSD.ORG Fri Oct 22 10:30:39 2004 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 50CD016A4CE; Fri, 22 Oct 2004 10:30:39 +0000 (GMT) Received: from n33.kp.t-systems-sfr.com (n33.kp.t-systems-sfr.com [129.247.16.33]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4C22643D3F; Fri, 22 Oct 2004 10:30:36 +0000 (GMT) (envelope-from harti@freebsd.org) Received: from n81.sp.op.dlr.de (n81g.sp.op.dlr.de [129.247.163.1]) i9MAUWU555358; Fri, 22 Oct 2004 12:30:33 +0200 Received: from zeus.nt.op.dlr.de (zeus.nt.op.dlr.de [129.247.173.3]) i9MAUWI75028; Fri, 22 Oct 2004 12:30:32 +0200 Received: from beagle.kn.op.dlr.de (opkndnwsbsd178 [129.247.173.178]) by zeus.nt.op.dlr.de (8.11.7+Sun/8.9.1) with ESMTP id i9MAUce23454; Fri, 22 Oct 2004 12:30:39 +0200 (MET DST) Date: Fri, 22 Oct 2004 12:30:30 +0200 (CEST) From: Harti Brandt X-X-Sender: brandt@beagle.kn.op.dlr.de To: =?iso-8859-1?q?Dag-Erling_Sm=F8rgrav?= In-Reply-To: Message-ID: <20041022122708.Y28348@beagle.kn.op.dlr.de> References: <200410191513.i9JFDUbf072176@repoman.freebsd.org> <417532A2.9000901@errno.com> <41753522.1E39FEAE@freebsd.org> <200410192329.46723.max@love2party.net> <41758B35.D5340AEA@freebsd.org> <20041020074747.B21281@beagle.kn.op.dlr.de> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: src-committers@freebsd.org cc: Andre Oppermann cc: cvs-src@freebsd.org cc: cvs-all@freebsd.org cc: Sam Leffler cc: Max Laier Subject: Re: cvs commit: src/sys/sys protosw.h src/sys/kern uipc_domain.cuipc_socket2.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Harti Brandt List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Oct 2004 10:30:39 -0000 On Fri, 22 Oct 2004, [iso-8859-1] Dag-Erling Sm?rgrav wrote: DS>Harti Brandt writes: DS>> You cannot prevent the compiler from makeing temporary copies. DS> DS>Yes, you can, using the volatile keyword. That doesn't help you if the compiler needs to fetch the function pointer into a register to call it. That would be allowed even if you declare the pointer volatile. Something like mov funcptr, r0 call @r0 If some other thread slips just between these two statements your call may end up somewhere. harti