diff options
author | Steve Capper <steve.capper@arm.com> | 2018-12-07 01:50:36 +0300 |
---|---|---|
committer | Will Deacon <will.deacon@arm.com> | 2018-12-10 21:42:17 +0300 |
commit | f6795053dac8d4d2f90d4a98842dd6d2ccd544ad (patch) | |
tree | 1dafd2512e324e5eb669964497d87754246009a1 /arch/h8300 | |
parent | 6e8830674ea77f57d57a33cca09083b117a71f41 (diff) | |
download | linux-f6795053dac8d4d2f90d4a98842dd6d2ccd544ad.tar.xz |
mm: mmap: Allow for "high" userspace addresses
This patch adds support for "high" userspace addresses that are
optionally supported on the system and have to be requested via a hint
mechanism ("high" addr parameter to mmap).
Architectures such as powerpc and x86 achieve this by making changes to
their architectural versions of arch_get_unmapped_* functions. However,
on arm64 we use the generic versions of these functions.
Rather than duplicate the generic arch_get_unmapped_* implementations
for arm64, this patch instead introduces two architectural helper macros
and applies them to arch_get_unmapped_*:
arch_get_mmap_end(addr) - get mmap upper limit depending on addr hint
arch_get_mmap_base(addr, base) - get mmap_base depending on addr hint
If these macros are not defined in architectural code then they default
to (TASK_SIZE) and (base) so should not introduce any behavioural
changes to architectures that do not define them.
Signed-off-by: Steve Capper <steve.capper@arm.com>
Reviewed-by: Catalin Marinas <catalin.marinas@arm.com>
Acked-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Diffstat (limited to 'arch/h8300')
0 files changed, 0 insertions, 0 deletions