Make sure pmap_page_protect() does the right thing for execute-only
authorkettenis <kettenis@openbsd.org>
Tue, 24 Jan 2023 16:51:05 +0000 (16:51 +0000)
committerkettenis <kettenis@openbsd.org>
Tue, 24 Jan 2023 16:51:05 +0000 (16:51 +0000)
commit38cdd850cf57ee44b29c8547000175c2383f89d5
treeed5b0b1caba12456002da4db701d83683c7f4831
parent6a7986fdbfcd482446abea279f2cde206e166370
Make sure pmap_page_protect() does the right thing for execute-only
mappings and enforce this with a KASSERT like we do on amd64.  Bring
the pmap_protect() inline in line with the amd64 version.

ok miod@, deraadt@
sys/arch/hppa/hppa/pmap.c
sys/arch/hppa/include/pmap.h