[PATCH v2 09/33] mkimage: Update map_to_sysmem() to match its prototype