From af8bf7f7f18861ef1235e85a72ca100e755d9859 Mon Sep 17 00:00:00 2001 From: Michael Pavone Date: Fri, 2 Jan 2015 13:14:09 -0800 Subject: Added functions to gen_x86 for saving and restoring callee save registers to better abstract over ABI differences between x86 and x86-64 --- gen.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'gen.h') diff --git a/gen.h b/gen.h index e6ed928..5087b57 100644 --- a/gen.h +++ b/gen.h @@ -27,5 +27,7 @@ void jmp_r(code_info *code, uint8_t dst); 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_ -- cgit v1.2.3