David Brazdil | 0f672f6 | 2019-12-10 10:32:29 +0000 | [diff] [blame^] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
Andrew Scull | b4b6d4a | 2019-01-02 15:54:55 +0000 | [diff] [blame] | 2 | /* |
| 3 | * Architecture specific mm hooks |
| 4 | * |
| 5 | * Copyright (C) 2015, IBM Corporation |
| 6 | * Author: Laurent Dufour <ldufour@linux.vnet.ibm.com> |
Andrew Scull | b4b6d4a | 2019-01-02 15:54:55 +0000 | [diff] [blame] | 7 | */ |
| 8 | |
| 9 | #ifndef _ASM_POWERPC_MM_ARCH_HOOKS_H |
| 10 | #define _ASM_POWERPC_MM_ARCH_HOOKS_H |
| 11 | |
| 12 | static inline void arch_remap(struct mm_struct *mm, |
| 13 | unsigned long old_start, unsigned long old_end, |
| 14 | unsigned long new_start, unsigned long new_end) |
| 15 | { |
| 16 | /* |
| 17 | * mremap() doesn't allow moving multiple vmas so we can limit the |
| 18 | * check to old_start == vdso_base. |
| 19 | */ |
| 20 | if (old_start == mm->context.vdso_base) |
| 21 | mm->context.vdso_base = new_start; |
| 22 | } |
| 23 | #define arch_remap arch_remap |
| 24 | |
| 25 | #endif /* _ASM_POWERPC_MM_ARCH_HOOKS_H */ |