Linux 2.6.12-rc6
[cris-mirror.git] / include / asm-um / vm-flags-x86_64.h
blob3213edfa7888fccbebb73a930d9af3408a735fe0
1 /*
2 * Copyright (C) 2004 Jeff Dike (jdike@addtoit.com)
3 * Copyright 2003 PathScale, Inc.
4 * Licensed under the GPL
5 */
7 #ifndef __VM_FLAGS_X86_64_H
8 #define __VM_FLAGS_X86_64_H
10 #define __VM_DATA_DEFAULT_FLAGS (VM_READ | VM_WRITE | VM_EXEC | \
11 VM_MAYREAD | VM_MAYWRITE | VM_MAYEXEC)
12 #define __VM_STACK_FLAGS (VM_GROWSDOWN | VM_READ | VM_WRITE | \
13 VM_EXEC | VM_MAYREAD | VM_MAYWRITE | \
14 VM_MAYEXEC)
16 extern unsigned long vm_stack_flags, vm_stack_flags32;
17 extern unsigned long vm_data_default_flags, vm_data_default_flags32;
18 extern unsigned long vm_force_exec32;
20 #ifdef TIF_IA32
21 #define VM_DATA_DEFAULT_FLAGS \
22 (test_thread_flag(TIF_IA32) ? vm_data_default_flags32 : \
23 vm_data_default_flags)
25 #define VM_STACK_DEFAULT_FLAGS \
26 (test_thread_flag(TIF_IA32) ? vm_stack_flags32 : vm_stack_flags)
27 #endif
29 #define VM_DATA_DEFAULT_FLAGS vm_data_default_flags
31 #define VM_STACK_DEFAULT_FLAGS vm_stack_flags
33 #endif