/* SPDX-License-Identifier: GPL-2.0 */1#ifndef __ASM_MMAN_H__2#define __ASM_MMAN_H__34#include <linux/fs.h>5#include <uapi/asm/mman.h>67/* PARISC cannot allow mdwe as it needs writable stacks */8static inline bool arch_memory_deny_write_exec_supported(void)9{10return false;11}12#define arch_memory_deny_write_exec_supported arch_memory_deny_write_exec_supported1314static inline unsigned long arch_calc_vm_flag_bits(struct file *file, unsigned long flags)15{16/*17* The stack on parisc grows upwards, so if userspace requests memory18* for a stack, mark it with VM_GROWSUP so that the stack expansion in19* the fault handler will work.20*/21if (flags & MAP_STACK)22return VM_GROWSUP;2324return 0;25}26#define arch_calc_vm_flag_bits(file, flags) arch_calc_vm_flag_bits(file, flags)2728#endif /* __ASM_MMAN_H__ */293031