add codes for get maxphyadd.