提交 f93bb42f 编写于 作者: J Jo Shields 提交者: Zoltan Varga

Really fix sgen on PowerPC Linux. Assembler on Linux requires that register...

Really fix sgen on PowerPC Linux. Assembler on Linux requires that register names are just bare numbers, unlike OSX, i.e. "r0" must be "0" on Linux.
上级 90219108
......@@ -107,12 +107,21 @@
#define REDZONE_SIZE 224
#define ARCH_NUM_REGS 32
#ifdef __APPLE__
#define ARCH_STORE_REGS(ptr) \
__asm__ __volatile__( \
"stmw r0, 0(%0)\n" \
: \
: "b" (ptr) \
)
#else
#define ARCH_STORE_REGS(ptr) \
__asm__ __volatile__( \
"stmw 0, 0(%0)\n" \
: \
: "b" (ptr) \
)
#endif
#define ARCH_SIGCTX_SP(ctx) (UCONTEXT_REG_Rn((ctx), 1))
#define ARCH_SIGCTX_IP(ctx) (UCONTEXT_REG_NIP((ctx)))
#define ARCH_COPY_SIGCTX_REGS(a,ctx) do { \
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册