1 /* SPDX-License-Identifier: GPL-2.0 */
6 #include <uapi/asm/mman.h>
8 /* PARISC cannot allow mdwe as it needs writable stacks */
9 static inline bool arch_memory_deny_write_exec_supported(void)
13 #define arch_memory_deny_write_exec_supported arch_memory_deny_write_exec_supported
15 static inline unsigned long arch_calc_vm_flag_bits(struct file
*file
, unsigned long flags
)
18 * The stack on parisc grows upwards, so if userspace requests memory
19 * for a stack, mark it with VM_GROWSUP so that the stack expansion in
20 * the fault handler will work.
22 if (flags
& MAP_STACK
)
27 #define arch_calc_vm_flag_bits(file, flags) arch_calc_vm_flag_bits(file, flags)
29 #endif /* __ASM_MMAN_H__ */