From owner-freebsd-arch Sat Nov 18 8:53:13 2000 Delivered-To: freebsd-arch@freebsd.org Received: from gratis.grondar.za (grouter.grondar.za [196.7.18.65]) by hub.freebsd.org (Postfix) with ESMTP id 76F5937B4C5 for ; Sat, 18 Nov 2000 08:53:08 -0800 (PST) Received: from grondar.za (grapevine.grondar.za [196.7.18.17]) by gratis.grondar.za (8.11.1/8.11.1) with ESMTP id eAIGqgJ12738; Sat, 18 Nov 2000 18:52:42 +0200 (SAST) (envelope-from mark@grondar.za) Message-Id: <200011181652.eAIGqgJ12738@gratis.grondar.za> To: Bruce Evans Cc: arch@FreeBSD.ORG Subject: Re: new monotime() call for all architectures. References: In-Reply-To: ; from Bruce Evans "Sun, 19 Nov 2000 03:41:15 +1100." Date: Sat, 18 Nov 2000 18:52:38 +0200 From: Mark Murray Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > > 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 where? clock.h has already been thoroughly objected to. > > 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 #incl ude > > 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. Help me here please :-) I need the function, and I have written it. Either let me commit what I have or suggest to me how I can fix that please. M -- Mark Murray Join the anti-SPAM movement: http://www.cauce.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message