From 98960de4ab0561ab3ca3ee2e1bb5cc8657d28b60 Mon Sep 17 00:00:00 2001 From: dchagin Date: Sun, 17 Jul 2016 15:23:32 +0000 Subject: MFC r302517: 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. MFC r302518, r302626: Add linux_mmap.c to the appropriate conf/files. --- sys/i386/linux/linux.h | 7 ------- 1 file changed, 7 deletions(-) (limited to 'sys/i386/linux/linux.h') diff --git a/sys/i386/linux/linux.h b/sys/i386/linux/linux.h index 36b2084..42e836c 100644 --- a/sys/i386/linux/linux.h +++ b/sys/i386/linux/linux.h @@ -140,13 +140,6 @@ struct l_rlimit { l_ulong rlim_max; }; -/* mmap options */ -#define LINUX_MAP_SHARED 0x0001 -#define LINUX_MAP_PRIVATE 0x0002 -#define LINUX_MAP_FIXED 0x0010 -#define LINUX_MAP_ANON 0x0020 -#define LINUX_MAP_GROWSDOWN 0x0100 - struct l_mmap_argv { l_uintptr_t addr; l_size_t len; -- cgit v1.1