HomeFreeBSD

Fix a copy/paste bug introduced during X86_64 Linuxulator work.

Description

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

Details

Provenance
dchaginAuthored on
Parents
rS302516: Regen for r302215 (Linux personality).
Branches
Unknown
Tags
Unknown