mm-arch-hooks.h 839 B

12345678910111213141516171819202122232425262728
  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. #ifndef _ASM_POWERPC_MM_ARCH_HOOKS_H
  12. #define _ASM_POWERPC_MM_ARCH_HOOKS_H
  13. static inline void arch_remap(struct mm_struct *mm,
  14. unsigned long old_start, unsigned long old_end,
  15. unsigned long new_start, unsigned long new_end)
  16. {
  17. /*
  18. * mremap() doesn't allow moving multiple vmas so we can limit the
  19. * check to old_start == vdso_base.
  20. */
  21. if (old_start == mm->context.vdso_base)
  22. mm->context.vdso_base = new_start;
  23. }
  24. #define arch_remap arch_remap
  25. #endif /* _ASM_POWERPC_MM_ARCH_HOOKS_H */