Subject: Re: questions
To: John P. Wittkoski <email@example.com>
From: Allen Briggs <firstname.lastname@example.org>
Date: 06/01/1995 19:23:00
> 1. Does MacBSD compute a "timebase" when the kernel boots? That is, something
> like TimeDBRA that gives some indication of how fast the machine is running?
> It could be used to calculate, for example, a 10ms delay for a process. I'm
> hoping that there is something already computed that will save me from
> timing it myself using interrupts.
If you just want this for a user process, use the setitimer() or
select() calls to do the delay. It's much more portable than anything
like a timebase. I've thrown together some basic functions to use VIA1's
timer, if you need something in the kernel, and the delay() function uses
that. I'm not sure how accurate it is, though.
> 2. What ever happened to the "old" ADB code that accessed the hardware
> directly? The stuff that was originally used for the II/IIx before Brad
> began his MRG work? Is there an archive of that anywhere? It would be
> mainly stuff in /sys/arch/mac68k/dev and /sys/arch/mac68k/mac68k, I think.
It's in the source-code control system's (CVS's) history, but it's
also in the 1.0 sources--which should be available on any of the NetBSD
mirror site listed on http://www.netbsd.org/, among other places.
Allen Briggs - end killing - email@example.com ** MacBSD == NetBSD/mac68k **