Mail Archives: djgpp/1998/03/15/09:31:26
In comp.os.msdos.djgpp Nate Eldredge <eldredge AT ap DOT net> wrote:
> At 12:42 3/13/1998 GMT, Perry DOT Fecteau AT Republican DOT COM wrote:
> >i'm guessing it's a bios call. or is there an address i can find this
> >information in?
> Nothing so simple. It depends on just what you want to know.
The Linux kernel code snoops out the model, some brand details (not much),
whether there is an FPU bug, and takes a rough speed measurement
called BogoMIPS. Well all of the routines to do this are in publicly
readable source code form but understanding exactly how they work is
a bit tricky.
The basic rule for timing critical situations is to use the hardware
timer interrupt 0. The Linux people found out that there are situations
where very brief time intervals must be generated and this is what the
BogoMIPS are used for. The old standby for graphics programs is to base
everything off the video refresh (a programmable interrupt on most
VGA cards) this keeps flicker off the screen and gives a known time-frame
for actions to take place within. Again, it's not much use for very
brief time intervals.
- Tel
- Raw text -