2007-04-22 02:29:47

est: a small breakthrough!

Finally, a breakthrough!

machdep.est.frequency.available = 2000 1000

There are a couple of problems still with the current state of affairs though:

  1. cpu_feature2 detection is only available in NetBSD current, not in 4.0_BETA2, so it is quite hard to deduce whether or not to enable est.
  2. Currently, no infrastructure exists for calling CPU specific probing functions. i386 does it extensively, and for each CPU that actually defines this function, which is passed through multiple layers of structs. amd64 deduces that it already knows almost anything about the CPU, and doesn't probe much specific stuff. This makes the probing function small, but it also makes it uneasy to call detection functions such as p3_get_bus_clock().
  3. est appears to be missing quite a bunch of frequencies. In my case, it shows 2000 and 1000, but not 1800, 1600, etc. until 200.

This will still be a work.


Posted by Tonnerre Lombard | Permanent link | File under: programming