2 * Architecture specific mm hooks
4 * Copyright (C) 2015, IBM Corporation
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License version 2 as
9 * published by the Free Software Foundation.
12 #ifndef _ASM_POWERPC_MM_ARCH_HOOKS_H
13 #define _ASM_POWERPC_MM_ARCH_HOOKS_H
15 static inline void arch_remap(struct mm_struct *mm,
16 unsigned long old_start, unsigned long old_end,
17 unsigned long new_start, unsigned long new_end)
20 * mremap() doesn't allow moving multiple vmas so we can limit the
21 * check to old_start == vdso_base.
23 if (old_start == mm->context.vdso_base)
24 mm->context.vdso_base = new_start;
26 #define arch_remap arch_remap
28 #endif /* _ASM_POWERPC_MM_ARCH_HOOKS_H */