1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-19 15:33:56 +00:00
freebsd/sys/arm/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
..
_align.h
_bus.h
_inttypes.h
_limits.h
_stdint.h
_types.h Fix the value of float_t to match what is implied by FLT_EVAL_METHOD. 2012-01-16 20:17:51 +00:00
armreg.h trim trailing whitespace 2012-06-13 05:02:51 +00:00
asm.h
asmacros.h trim trailing whitespace 2012-06-13 05:02:51 +00:00
atags.h Defines for parsing linux ATAGs lists. 2012-06-14 14:38:55 +00:00
atomic.h trim trailing whitespace 2012-06-13 05:02:51 +00:00
blockio.h trim trailing whitespace 2012-06-13 05:02:51 +00:00
bootconfig.h
bus_dma.h
bus.h
clock.h
cpu.h Minor rearrangement of the locore <-> initarm interface. Pass in a 2012-06-03 18:34:32 +00:00
cpuconf.h
cpufunc.h trim trailing whitespace 2012-06-13 05:02:51 +00:00
db_machdep.h
disassem.h
elf.h Reserve AT_TIMEKEEP auxv entry for providing usermode the pointer to 2012-06-22 06:38:31 +00:00
endian.h trim trailing whitespace 2012-06-13 05:02:51 +00:00
exec.h
fdt.h trim trailing whitespace 2012-06-13 05:02:51 +00:00
fiq.h
float.h Add C11 macros describing subnormal numbers to float.h. 2012-01-23 06:36:41 +00:00
floatingpoint.h
fp.h trim trailing whitespace 2012-06-13 05:02:51 +00:00
frame.h trim trailing whitespace 2012-06-13 05:02:51 +00:00
gdb_machdep.h
ieee.h trim trailing whitespace 2012-06-13 05:02:51 +00:00
ieeefp.h People porting FreeBSD to new architectures ought not have to 2011-10-21 06:41:46 +00:00
in_cksum.h trim trailing whitespace 2012-06-13 05:02:51 +00:00
intr.h trim trailing whitespace 2012-06-13 05:02:51 +00:00
katelib.h trim trailing whitespace 2012-06-13 05:02:51 +00:00
kdb.h Flush D and I caches after setting a breakpoint. 2012-05-30 13:31:08 +00:00
limits.h
machdep.h More Linux boot support. Create arm_dump_avail_init() to initialize 2012-06-14 04:18:56 +00:00
md_var.h
memdev.h
metadata.h
minidump.h
ofw_machdep.h
param.h trim trailing whitespace 2012-06-13 05:02:51 +00:00
pcb.h Add a convenience macro for the returns_twice attribute, and apply it to 2012-04-29 11:04:31 +00:00
pcpu.h
pmap.h The page flag PGA_WRITEABLE is set and cleared exclusively by the pmap 2012-06-16 18:56:19 +00:00
pmc_mdep.h Add ARM callchain support for hwpmc. 2012-06-13 06:38:25 +00:00
proc.h Remove unused define. 2011-10-07 16:09:44 +00:00
profile.h trim trailing whitespace 2012-06-13 05:02:51 +00:00
psl.h
pte.h trim trailing whitespace 2012-06-13 05:02:51 +00:00
ptrace.h
reg.h
reloc.h
resource.h trim trailing whitespace 2012-06-13 05:02:51 +00:00
runq.h
setjmp.h
sf_buf.h
sigframe.h
signal.h
smp.h
stack.h trim trailing whitespace 2012-06-13 05:02:51 +00:00
stdarg.h
swi.h
sysarch.h Replace the C implementation of __aeabi_read_tp with an assembly version. 2012-04-16 09:38:20 +00:00
trap.h
ucontext.h
undefined.h
utrap.h
vdso.h Implement mechanism to export some kernel timekeeping data to 2012-06-22 07:06:40 +00:00
vm.h
vmparam.h trim trailing whitespace 2012-06-13 05:02:51 +00:00