Skip to content

Commit dff04ff

Browse files
committed
fix mips stackframe point
1 parent 3c5329a commit dff04ff

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

libcpu/mips/common/ptrace.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,11 @@ struct pt_regs {
6767
#endif
6868

6969
/* Note: For call stack o32 ABI has 0x8 shadowsoace Here */
70+
#ifdef ARCH_MIPS64
7071
#define PT_R0 (0x0 * LONGSIZE) /* 0 */
72+
#else
73+
#define PT_R0 (0x8 * LONGSIZE) /* 0 */
74+
#endif
7175
#define PT_R1 ((PT_R0) + LONGSIZE) /* 1 */
7276
#define PT_R2 ((PT_R1) + LONGSIZE) /* 2 */
7377
#define PT_R3 ((PT_R2) + LONGSIZE) /* 3 */

0 commit comments

Comments
 (0)