2005-04-17 05:20:36 +07:00
|
|
|
/*
|
|
|
|
* Copyright (C) 2004 Jeff Dike (jdike@addtoit.com)
|
|
|
|
* Copyright 2003 PathScale, Inc.
|
|
|
|
* Licensed under the GPL
|
|
|
|
*/
|
|
|
|
|
2011-08-19 02:02:59 +07:00
|
|
|
#ifndef __VM_FLAGS_X86_H
|
|
|
|
#define __VM_FLAGS_X86_H
|
|
|
|
|
|
|
|
#ifdef CONFIG_X86_32
|
|
|
|
|
|
|
|
#define VM_DATA_DEFAULT_FLAGS \
|
|
|
|
(VM_READ | VM_WRITE | \
|
|
|
|
((current->personality & READ_IMPLIES_EXEC) ? VM_EXEC : 0 ) | \
|
|
|
|
VM_MAYREAD | VM_MAYWRITE | VM_MAYEXEC)
|
|
|
|
|
|
|
|
#else
|
2005-04-17 05:20:36 +07:00
|
|
|
|
2011-07-26 07:12:44 +07:00
|
|
|
#define VM_DATA_DEFAULT_FLAGS (VM_READ | VM_WRITE | VM_EXEC | \
|
|
|
|
VM_MAYREAD | VM_MAYWRITE | VM_MAYEXEC)
|
|
|
|
#define VM_STACK_DEFAULT_FLAGS (VM_GROWSDOWN | VM_READ | VM_WRITE | \
|
|
|
|
VM_EXEC | VM_MAYREAD | VM_MAYWRITE | VM_MAYEXEC)
|
2005-04-17 05:20:36 +07:00
|
|
|
|
|
|
|
#endif
|
2011-08-19 02:02:59 +07:00
|
|
|
#endif
|