]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
[PowerPC] Implement VDSO timebase access on powerpc*
authorbdragon <bdragon@FreeBSD.org>
Tue, 8 Sep 2020 03:00:31 +0000 (03:00 +0000)
committerbdragon <bdragon@FreeBSD.org>
Tue, 8 Sep 2020 03:00:31 +0000 (03:00 +0000)
commit84d91c8e4c370f45543571b27603a0a607b0c245
treea120c654f77968ee3790b4fb7a6675eb84b2e036
parent6f47da0d99b5187bcc262080f40393e554fa2b96
[PowerPC] Implement VDSO timebase access on powerpc*

Implement the remaining pieces needed to allow userland timestamp reading.

Rewritten based on an intial essay into the problem by Justin Hibbits.
(Copyright changed to my own on his request.)

Tested on ppc64 (POWER9 Talos II), powerpcspe (e500v2 RB800), and
powerpc (g4 PowerBook).

Reviewed by: jhibbits (in irc)
Sponsored by: Tag1 Consulting, Inc.
Differential Revision: https://reviews.freebsd.org/D26347
lib/libc/powerpc/Makefile.inc
lib/libc/powerpc/sys/Makefile.inc
lib/libc/powerpc/sys/__vdso_gettc.c [new file with mode: 0644]
lib/libc/powerpc64/Makefile.inc
lib/libc/powerpc64/sys/Makefile.inc
lib/libc/powerpc64/sys/__vdso_gettc.c [new file with mode: 0644]
lib/libc/powerpcspe/Makefile.inc
sys/powerpc/include/vdso.h
sys/powerpc/powerpc/clock.c
sys/powerpc/powerpc/elf32_machdep.c
sys/powerpc/powerpc/elf64_machdep.c