public static void saveNonvolatilesAroundSysCall(Instruction call,IR ir){
  saveNonvolatilesBeforeSysCall(call,ir);
  restoreNonvolatilesAfterSysCall(call,ir);
  call.changeOperatorTo(IA32_CALL);
}

public static void saveNonvolatilesAroundSysCall ( Instruction call , IR ir ) { saveNonvolatilesBeforeSysCall ( call , ir ) ; restoreNonvolatilesAfterSysCall ( call , ir ) ; call . changeOperatorTo ( IA32_CALL ) ; }
save and restore all nonvolatile registers around a syscall . we do this in case the sys call does not respect our register conventions . < p > we save / restore all nonvolatiles and the pr , whether or not this routine uses them . this may be a tad inefficient , but if you ' re making a system call , you probably don ' t care . < p > side effect : changes the operator of the call instruction to ia32_call .
