Date: Sun, 19 Nov 2000 03:41:15 +1100 (EST) From: Bruce Evans <bde@zeta.org.au> To: John Baldwin <jhb@FreeBSD.ORG> Cc: Mark Murray <mark@grondar.za>, arch@FreeBSD.ORG Subject: RE: new monotime() call for all architectures. Message-ID: <Pine.BSF.4.21.0011190322240.394-100000@besplex.bde.org> In-Reply-To: <XFMail.001117103013.jhb@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0011190322240.394-100000>