diff gen.h @ 665:d0943769353b

Added functions to gen_x86 for saving and restoring callee save registers to better abstract over ABI differences between x86 and x86-64
author Michael Pavone <pavone@retrodev.com>
date Fri, 02 Jan 2015 13:14:09 -0800
parents 24ccfd70133a
children a7774fc2de4b
line wrap: on
line diff
--- a/gen.h	Fri Jan 02 12:04:58 2015 -0800
+++ b/gen.h	Fri Jan 02 13:14:09 2015 -0800
@@ -27,5 +27,7 @@
 void call_args(code_info *code, code_ptr fun, uint32_t num_args, ...);
 //like the above, but follows other aspects of the ABI like stack alignment
 void call_args_abi(code_info *code, code_ptr fun, uint32_t num_args, ...);
+void save_callee_save_regs(code_info *code);
+void restore_callee_save_regs(code_info *code);
 
 #endif //GEN_H_