freebsd-dev/sys/i386
Konstantin Belousov aea810386d Implement mechanism to export some kernel timekeeping data to
usermode, using shared page.  The structures and functions have vdso
prefix, to indicate the intended location of the code in some future.

The versioned per-algorithm data is exported in the format of struct
vdso_timehands, which mostly repeats the content of in-kernel struct
timehands. Usermode reading of the structure can be lockless.
Compatibility export for 32bit processes on 64bit host is also
provided. Kernel also provides usermode with indication about
currently used timecounter, so that libc can fall back to syscall if
configured timecounter is unknown to usermode code.

The shared data updates are initiated both from the tc_windup(), where
a fast task is queued to do the update, and from sysctl handlers which
change timecounter. A manual override switch
kern.timecounter.fast_gettime allows to turn off the mechanism.

Only x86 architectures export the real algorithm data, and there, only
for tsc timecounter. HPET counters page could be exported as well, but
I prefer to not further glue the kernel and libc ABI there until
proper vdso-based solution is developed.

Minimal stubs neccessary for non-x86 architectures to still compile
are provided.

Discussed with:	bde
Reviewed by:	jhb
Tested by:	flo
MFC after:	1 month
2012-06-22 07:06:40 +00:00
..
acpica - Fix resumectx() prototypes to reflect reality. 2012-06-13 21:03:01 +00:00
bios Do not invoke resume event handlers if suspend was successful. 2011-04-19 16:30:17 +00:00
compile
conf - Updated TOE support in the kernel. 2012-06-19 07:34:13 +00:00
i386 - Fix resumectx() prototypes to reflect reality. 2012-06-13 21:03:01 +00:00
ibcs2 Fix misuse of the kernel map in miscellaneous image activators. 2012-02-17 23:47:16 +00:00
include Implement mechanism to export some kernel timekeeping data to 2012-06-22 07:06:40 +00:00
isa Add support for the extended FPU states on amd64, both for native 2012-01-21 17:45:27 +00:00
linux - >500 static DTrace probes for the linuxulator 2012-05-05 19:42:38 +00:00
pci Move {amd64,i386}/pci/pci_bus.c and {amd64,i386}/include/pci_cfgreg.h to 2011-06-22 21:04:13 +00:00
svr4
xbox Move the legacy(4) driver to x86. 2012-03-30 19:10:14 +00:00
xen Various small changes to PV entry management: 2012-06-04 03:51:08 +00:00
Makefile Delete duplicate tags entry I introduced in -r223901. 2011-07-15 17:27:26 +00:00