OSDN Git Service

riscv: Adjust mmap base address at a third of task size
authorAlexandre Ghiti <aghiti@upmem.com>
Mon, 10 Dec 2018 06:21:46 +0000 (06:21 +0000)
committerPalmer Dabbelt <palmer@sifive.com>
Fri, 25 Jan 2019 18:50:53 +0000 (10:50 -0800)
commitae662eec8a515ab550524e04c793b5ddf1aae3a1
tree06913ca3f17b61d32c612392bac28ef885ee247f
parent28198c4639b39899a728ac89aea29d2a7a72562f
riscv: Adjust mmap base address at a third of task size

This ratio is the most used among all other architectures and make
icache_hygiene libhugetlbfs test pass: this test mmap lots of
hugepages whose addresses, without this patch, reach the end of
the process user address space.

Signed-off-by: Alexandre Ghiti <aghiti@upmem.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Palmer Dabbelt <palmer@sifive.com>
arch/riscv/include/asm/processor.h