Poul-Henning Kamp wrote:
In message <[email protected]>, Peter Jeremy write
s:

I'm assuming folks are still in love with the TSC because it still the
cheapest as oppose ACPI-fast or HPET to even contemplate this?
That is its major advantage.  It might be feasible to export all the
data necessary to implement the complete CLOCK_*_FAST family.

The general attraction is that it can be read from userland by unpriviledged
programs.

On systems where the ACPI or HPET hardware can be memory-mapped, I should
be equally possible to map those read-only into userland processes.

Now _THAT_ would be interesting.

Which brings us back to having a page of code
provided by the kernel so that the kernel can
determine the appropriate implementation
(depending on the hardware availability) and so
that userland can invoke the functions without
going through a task switch.  Libc can then
either invoke these directly or, if the page is
unavailable for any reason, use the system calls.

Tim

_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "[email protected]"

Reply via email to