From owner-freebsd-alpha Thu Mar 21 10:34:40 2002 Delivered-To: freebsd-alpha@freebsd.org Received: from dragon.nuxi.com (trang.nuxi.com [66.92.13.169]) by hub.freebsd.org (Postfix) with ESMTP id AD93137B400 for ; Thu, 21 Mar 2002 10:34:37 -0800 (PST) Received: from dragon.nuxi.com (obrien@localhost [127.0.0.1]) by dragon.nuxi.com (8.12.2/8.12.2) with ESMTP id g2LIYWlv062612; Thu, 21 Mar 2002 10:34:32 -0800 (PST) (envelope-from obrien@dragon.nuxi.com) Received: (from obrien@localhost) by dragon.nuxi.com (8.12.2/8.12.2/Submit) id g2LIXGp0062586; Thu, 21 Mar 2002 10:33:16 -0800 (PST) Date: Thu, 21 Mar 2002 10:33:16 -0800 From: "David O'Brien" To: Andrew Gallatin Cc: alpha@FreeBSD.ORG Subject: Re: Expected compiler error on GENERIC? Message-ID: <20020321103316.A66279@dragon.nuxi.com> Reply-To: obrien@FreeBSD.ORG References: <15513.4041.407099.858575@grasshopper.cs.duke.edu> <20020320.153148.103780390.imp@village.org> <200203202313.g2KND6L12819@harmony.village.org> <20020320154150.A90810@dragon.nuxi.com> <15513.61122.201509.896981@grasshopper.cs.duke.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <15513.61122.201509.896981@grasshopper.cs.duke.edu>; from gallatin@cs.duke.edu on Thu, Mar 21, 2002 at 09:31:30AM -0500 X-Operating-System: FreeBSD 5.0-CURRENT Organization: The NUXI BSD group X-Pgp-Rsa-Fingerprint: B7 4D 3E E9 11 39 5F A3 90 76 5D 69 58 D9 98 7A X-Pgp-Rsa-Keyid: 1024/34F9F9D5 Sender: owner-freebsd-alpha@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Thu, Mar 21, 2002 at 09:31:30AM -0500, Andrew Gallatin wrote: > David O'Brien writes: > > On Wed, Mar 20, 2002 at 04:13:06PM -0700, Warner Losh wrote: > > > The line in question is > > > if (!badaddr((void *)&t2_csr[1]->tlbbr, sizeof(long))) { > > > but I don't know what the type of tlbbr is, but it is either volatile > > > or const for some reason... > > > > `tlbbr' is u_long. > > `t2_csr' is "volatile", and is the source of the warning. > > Please: what's the proper way to cast away the volatile & shut the > f*ing compiler up? Why is it marked "volatile" in the first place? What will happen if we make a 'u_long ltmp = t2_csr[1]->tlbbr;' and then pass in the address of that? Will we potentially be using a stale value that could cause us a problem? To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-alpha" in the body of the message