mm: add a basic debugging framework for memory initialisation