/* This function, called very early during the creation of a new process VM image, sets up which VM layout function to use:  */
void arch_pick_mmap_layout(struct mm_struct *mm)
/* This function, called very early during the creation of a new process VM image, sets up which VM layout function to use:  */
void arch_pick_mmap_layout(struct mm_struct *mm)
{
	if (mmap_is_legacy()) {
		mm->mmap_base = TASK_UNMAPPED_BASE;
		mm->get_unmapped_area = arch_get_unmapped_area;
		mm->unmap_area = arch_unmap_area;
	} else {
		mm->mmap_base = mmap_base();
		mm->get_unmapped_area = arch_get_unmapped_area_topdown;
		mm->unmap_area = arch_unmap_area_topdown;
	}
}