1 /* 2 * Copyright (C) 2004 Jeff Dike (jdike@addtoit.com) 3 * Copyright 2003 PathScale, Inc. 4 * Licensed under the GPL 5 */ 6 7 #ifndef __VM_FLAGS_X86_H 8 #define __VM_FLAGS_X86_H 9 10 #ifdef CONFIG_X86_32 11 12 #define VM_DATA_DEFAULT_FLAGS \ 13 (VM_READ | VM_WRITE | \ 14 ((current->personality & READ_IMPLIES_EXEC) ? VM_EXEC : 0 ) | \ 15 VM_MAYREAD | VM_MAYWRITE | VM_MAYEXEC) 16 17 #else 18 19 #define VM_DATA_DEFAULT_FLAGS (VM_READ | VM_WRITE | VM_EXEC | \ 20 VM_MAYREAD | VM_MAYWRITE | VM_MAYEXEC) 21 #define VM_STACK_DEFAULT_FLAGS (VM_GROWSDOWN | VM_READ | VM_WRITE | \ 22 VM_EXEC | VM_MAYREAD | VM_MAYWRITE | VM_MAYEXEC) 23 24 #endif 25 #endif 26