[PATCH v3 07/30] mkimage: Update map_to_sysmem() to match its prototype