Commit | Line | Data |
---|---|---|
2ae416b1 LD |
1 | /* |
2 | * Architecture specific mm hooks | |
3 | * | |
4 | * Copyright (C) 2015, IBM Corporation | |
5 | * Author: Laurent Dufour <ldufour@linux.vnet.ibm.com> | |
6 | * | |
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. | |
10 | */ | |
11 | ||
12 | #ifndef _ASM_POWERPC_MM_ARCH_HOOKS_H | |
13 | #define _ASM_POWERPC_MM_ARCH_HOOKS_H | |
14 | ||
83d3f0e9 LD |
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) | |
18 | { | |
19 | /* | |
20 | * mremap() doesn't allow moving multiple vmas so we can limit the | |
21 | * check to old_start == vdso_base. | |
22 | */ | |
23 | if (old_start == mm->context.vdso_base) | |
24 | mm->context.vdso_base = new_start; | |
25 | } | |
26 | #define arch_remap arch_remap | |
27 | ||
2ae416b1 | 28 | #endif /* _ASM_POWERPC_MM_ARCH_HOOKS_H */ |