Fix a copy/paste bug introduced during X86_64 Linuxulator work.
authordchagin <dchagin@FreeBSD.org>
Sun, 10 Jul 2016 08:22:04 +0000 (08:22 +0000)
committerdchagin <dchagin@FreeBSD.org>
Sun, 10 Jul 2016 08:22:04 +0000 (08:22 +0000)
commitc93d4a7bde89db29dbc6baaf79a889aa8109749e
tree926712dd0d94c863275c084e5263c06baa020c36
parent7acd3da18d7104de55f3cabc9e3de8e93fd6ef0e
Fix a copy/paste bug introduced during X86_64 Linuxulator work.
FreeBSD support NX bit on X86_64 processors out of the box, for i386 emulation
use READ_IMPLIES_EXEC flag, introduced in r302515.

While here move common part of mmap() and mprotect() code to the files in compat/linux
to reduce code dupcliation between Linuxulator's.

Reported by:    Johannes Jost Meixner, Shawn Webb

MFC after: 1 week
XMFC with: r302515, r302516
sys/amd64/linux/linux.h
sys/amd64/linux/linux_machdep.c
sys/amd64/linux32/linux.h
sys/amd64/linux32/linux32_machdep.c
sys/compat/linux/linux_mmap.c [new file with mode: 0644]
sys/compat/linux/linux_mmap.h [new file with mode: 0644]
sys/i386/linux/linux.h
sys/i386/linux/linux_machdep.c
sys/modules/linux/Makefile
sys/modules/linux_common/Makefile