> We've agreed to restore the rejection of MAP_HUGETLB to nommu. > Mimic what happens with mmu when hugetlb is not configured in: > say -ENOSYS, but -EINVAL if MAP_ANONYMOUS was not given too.
On the other hand, why not just ignore the MAP_HUGETLB flag on NOMMU?