diff --git a/libcpu/mips/common/ptrace.h b/libcpu/mips/common/ptrace.h index c0489590533cc1e94b33ebd52d06bfdd9e16e549..00ce58a0858be3efabae86f590773b547d8abb7d 100644 --- a/libcpu/mips/common/ptrace.h +++ b/libcpu/mips/common/ptrace.h @@ -67,7 +67,11 @@ struct pt_regs { #endif /* Note: For call stack o32 ABI has 0x8 shadowsoace Here */ +#ifdef ARCH_MIPS64 #define PT_R0 (0x0 * LONGSIZE) /* 0 */ +#else +#define PT_R0 (0x8 * LONGSIZE) /* 0 */ +#endif #define PT_R1 ((PT_R0) + LONGSIZE) /* 1 */ #define PT_R2 ((PT_R1) + LONGSIZE) /* 2 */ #define PT_R3 ((PT_R2) + LONGSIZE) /* 3 */