TO RESET: stack changes

Change-Id: I325420701dfa5e9eac294be086a9d1e7326d95bc
This commit is contained in:
Balazs Gerofi
2020-12-15 09:08:13 +09:00
committed by Masamichi Takagi
parent 0b82c8942b
commit 7145c4d383
4 changed files with 27 additions and 0 deletions

View File

@@ -2578,6 +2578,14 @@ int init_process_stack(struct thread *thread, struct program_load_desc *pn,
__FUNCTION__, size, minsz,
ap_flag ? "(IHK_MC_AP_USER)" : "");
#ifdef ENABLE_FUGAKU_HACKS
/*
* XXX: Fugaku: Fujitsu's runtime remaps the stack
* using hugetlbfs so don't bother allocating too much here..
*/
minsz = 8*1024*1024;
#endif
stack = ihk_mc_alloc_aligned_pages_user(minsz >> PAGE_SHIFT,
USER_STACK_PAGE_P2ALIGN,
IHK_MC_AP_NOWAIT | ap_flag,