Date: Sat, 18 Nov 2000 18:52:38 +0200 From: Mark Murray <mark@grondar.za> To: Bruce Evans <bde@zeta.org.au> Cc: arch@FreeBSD.ORG Subject: Re: new monotime() call for all architectures. Message-ID: <200011181652.eAIGqgJ12738@gratis.grondar.za> In-Reply-To: <Pine.BSF.4.21.0011190322240.394-100000@besplex.bde.org> ; from Bruce Evans <bde@zeta.org.au> "Sun, 19 Nov 2000 03:41:15 %2B1100." References: <Pine.BSF.4.21.0011190322240.394-100000@besplex.bde.org>
next in thread | previous in thread | raw e-mail | index | archive | help
> > 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200011181652.eAIGqgJ12738>