From owner-freebsd-current Fri Apr 3 16:37:37 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id QAA06056 for freebsd-current-outgoing; Fri, 3 Apr 1998 16:37:37 -0800 (PST) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from smtp04.primenet.com (smtp04.primenet.com [206.165.6.134]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id QAA06051 for ; Fri, 3 Apr 1998 16:37:35 -0800 (PST) (envelope-from tlambert@usr06.primenet.com) Received: (from daemon@localhost) by smtp04.primenet.com (8.8.8/8.8.8) id RAA05409; Fri, 3 Apr 1998 17:37:32 -0700 (MST) Received: from usr06.primenet.com(206.165.6.206) via SMTP by smtp04.primenet.com, id smtpd005395; Fri Apr 3 17:37:27 1998 Received: (from tlambert@localhost) by usr06.primenet.com (8.8.5/8.8.5) id RAA14474; Fri, 3 Apr 1998 17:37:19 -0700 (MST) From: Terry Lambert Message-Id: <199804040037.RAA14474@usr06.primenet.com> Subject: Re: error when compiling kernel with SOFTUPDATES To: phk@critter.freebsd.dk (Poul-Henning Kamp) Date: Sat, 4 Apr 1998 00:37:19 +0000 (GMT) Cc: grog@lemis.com, gljohns@bellsouth.net, freebsd-current@FreeBSD.ORG In-Reply-To: <1291.891594980@critter.freebsd.dk> from "Poul-Henning Kamp" at Apr 3, 98 11:16:20 am X-Mailer: ELM [version 2.4 PL25] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > >>>> change "tv = time" to "getmicrotime(&tv);" > >>> > >>> Wouldn't it have been possible to hide this change with a macro, like > >>> was done with the reorganization of the buffer headers under 2.2.6? > >> > >> no. > > > >Yes. Prove me wrong. And yes, I know that the form you chose makes > >it almost impossible, but that's no excuse. > > SMP is the reason, and I don't need an excuse for saying "no". Besides which, he's right, unless you count inline functions as macros, declare a global time value and access it opaquely (yeah, we could cale it "time"... NOT), or depend on the las result being in the first register, and the first register being used on returns (ie: all the world's a VAX, and all compilers don't play tricks with registers, and other [wrong] assumptions). Terry Lambert terry@lambert.org --- Any opinions in this posting are my own and not those of my present or previous employers. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message