Darwin/x86 fixes

This commit is contained in:
gbeauche 2005-07-11 06:52:51 +00:00
parent 77208f85b0
commit d08df6e659

View File

@ -96,7 +96,11 @@ extern int __op_param1, __op_param2, __op_param3;
#endif
#ifndef REG_CPU
#if defined(__APPLE__) && defined(__MACH__)
static int __op_cpuparam;
#else
extern int __op_cpuparam;
#endif
#define CPUPARAM ((long)(&__op_cpuparam))
#endif
@ -126,6 +130,9 @@ extern int __op_jmp0, __op_jmp1;
#if defined(__ppc__)
#define ASM_OP_EXEC_RETURN_INSN "0x18,0xde,0xad,0xff"
#endif
#if defined(__i386__)
#define ASM_OP_EXEC_RETURN_INSN "0x0f,0xa6,0xf0"
#endif
#else
#define ASM_DATA_SECTION ".section \".data\"\n"
#define ASM_PREVIOUS_SECTION ".previous\n"