add proc call prelogue & epilogue to PATCSPS