core: mm: introduce the mm mechanism from nuttx