Unverified Commit ae662eec authored by Alexandre Ghiti's avatar Alexandre Ghiti Committed by Palmer Dabbelt
Browse files

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: default avatarAlexandre Ghiti <aghiti@upmem.com>
Reviewed-by: default avatarChristoph Hellwig <hch@lst.de>
Signed-off-by: default avatarPalmer Dabbelt <palmer@sifive.com>
parent 28198c46
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -22,7 +22,7 @@
 * This decides where the kernel will search for a free chunk of vm
 * This decides where the kernel will search for a free chunk of vm
 * space during mmap's.
 * space during mmap's.
 */
 */
#define TASK_UNMAPPED_BASE	PAGE_ALIGN(TASK_SIZE >> 1)
#define TASK_UNMAPPED_BASE	PAGE_ALIGN(TASK_SIZE / 3)


#define STACK_TOP		TASK_SIZE
#define STACK_TOP		TASK_SIZE
#define STACK_TOP_MAX		STACK_TOP
#define STACK_TOP_MAX		STACK_TOP