x86: introduce save_rest and restructure the PTREGSCALL macro in entry_64.S