From owner-freebsd-arch Sat Nov 18 8:41:26 2000 Delivered-To: freebsd-arch@freebsd.org Received: from mailman.zeta.org.au (mailman.zeta.org.au [203.26.10.16]) by hub.freebsd.org (Postfix) with ESMTP id 1BDD637B4C5; Sat, 18 Nov 2000 08:41:21 -0800 (PST) Received: from bde.zeta.org.au (bde.zeta.org.au [203.2.228.102]) by mailman.zeta.org.au (8.8.7/8.8.7) with ESMTP id DAA16891; Sun, 19 Nov 2000 03:41:17 +1100 Date: Sun, 19 Nov 2000 03:41:15 +1100 (EST) From: Bruce Evans X-Sender: bde@besplex.bde.org To: John Baldwin Cc: Mark Murray , arch@FreeBSD.ORG Subject: RE: new monotime() call for all architectures. In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Fri, 17 Nov 2000, John Baldwin wrote: > Please use existing functions like rdtsc() instead of duplicating the inline > assembly. This will help reduce maintenance down the road. Yes. > In fact, you might > want to move this to machine/cpufunc.h instead of machine/clock.h. No! machine/cpufunc.h is for "Functions to provide access to special cpu instructions", not for functions that happen to call a (primitive) function in cpufunc.h. > Then use > the rdtsc() function for x86, alpha_rpcc() for the alpha, and ia64_get_itc() > for ia64. Note that for ia64, machine/cpufunc.h needs to be fixed to #include > machine/ia64_cpu.h as it does on the alpha. This seems to be a bug in the alpha version. cpufunc.h is spelled alpha_cpu.h in NetBSD. FreeBSD obtained this spelling from NetBSD and attached a few extras in cpufunc.h. There doesn't seem to be any reason to have separate files. Bruce To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message