Add support for flushing the instruction cache of other processes. This is
authorkettenis <kettenis@openbsd.org>
Sat, 18 Aug 2018 15:42:19 +0000 (15:42 +0000)
committerkettenis <kettenis@openbsd.org>
Sat, 18 Aug 2018 15:42:19 +0000 (15:42 +0000)
commitd5feffbf859e1937fc1f92248eda4ff4859f8a9a
tree358fcb42e759406a8681b8a264b9ceb46991e47e
parent4a5cc25cbb2a7dd7f868326ff2a5b77635f8f04b
Add support for flushing the instruction cache of other processes.  This is
needed for inserting and removing breakpoints through ptrace(2).

The approach here only works for CPUs that have a PIPT instruction cache
as we use aliased mappings to invalidate the instruction cache.  That doesn't
work on CPUs that have a virtually indexed instruction cache.

ok deraadt@, visa@
sys/arch/arm64/arm64/pmap.c