]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Add arm_sync_icache() and arm_drain_writebuf() sysarch syscall wrappers.
authorian <ian@FreeBSD.org>
Sat, 13 Jul 2019 15:34:29 +0000 (15:34 +0000)
committerian <ian@FreeBSD.org>
Sat, 13 Jul 2019 15:34:29 +0000 (15:34 +0000)
commitf66f7f70bf4e7471bc9703d4e5ad0b73fedc8ba2
tree74e637be0cab0dea842d0264596ad4251fc5d708
parentacdff3ca6471de660cab42a8c882ac029497dc8b
Add arm_sync_icache() and arm_drain_writebuf() sysarch syscall wrappers.

NetBSD and OpenBSD have libc wrapper functions for the ARM_SYNC_ICACHE and
ARM_DRAIN_WRITEBUF sysarch operations. This change adds compatible functions
to our library. This should make it easier for various upstream sources to
support *BSD operating systems with a single variation of cache maintence
code in tools like interpreters and JIT compilers.

I consider the argument types passed to arm_sync_icache() to be especially
unfortunate, but this is intended to match the other BSDs.

Differential Revision: https://reviews.freebsd.org/D20906
lib/libc/arm/Symbol.map
lib/libc/arm/gen/Makefile.inc
lib/libc/arm/gen/arm_drain_writebuf.2 [new file with mode: 0644]
lib/libc/arm/gen/arm_drain_writebuf.c [new file with mode: 0644]
lib/libc/arm/gen/arm_sync_icache.2 [new file with mode: 0644]
lib/libc/arm/gen/arm_sync_icache.c [new file with mode: 0644]
sys/sys/param.h