freebsd-dev/sys/pc98/include
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
..
pc
_align.h
_bus.h
_inttypes.h
_limits.h
_stdint.h
_types.h
apicvar.h
apm_bios.h
apm_segments.h
asm.h
asmacros.h
atomic.h
bootinfo.h
bus_dma.h
bus.h
clock.h
cpu.h
cpufunc.h
cputypes.h
cserial.h
db_machdep.h
elf.h
endian.h
exec.h
float.h
floatingpoint.h
frame.h
gdb_machdep.h
ieeefp.h
in_cksum.h
intr_machdep.h
ioctl_bt848.h
ioctl_meteor.h
iodev.h
kdb.h
limits.h
md_var.h
memdev.h
metadata.h
minidump.h
mp_watchdog.h
nexusvar.h
npx.h
param.h
pcaudioio.h
pcb_ext.h
pcb.h
pci_cfgreg.h
pcpu.h
perfmon.h
pmap.h
pmc_mdep.h
ppireg.h
privatespace.h
proc.h
profile.h
psl.h
ptrace.h
reg.h
reloc.h
resource.h
runq.h
segments.h
setjmp.h
sf_buf.h
sigframe.h
signal.h
smapi.h
smp.h
speaker.h
specialreg.h Copy i386 specialreg.h to x86 and merge with amd64 specialreg.h. Replace 2012-03-19 21:34:11 +00:00
stack.h
stdarg.h
sysarch.h Copy amd64 sysarch.h to x86 and merge with i386 sysarch.h. Replace 2012-03-19 21:57:31 +00:00
timerreg.h
trap.h
tss.h
ucontext.h
varargs.h
vdso.h Implement mechanism to export some kernel timekeeping data to 2012-06-22 07:06:40 +00:00
vm86.h
vm.h
vmparam.h