diff options
| author | bigmagic <[email protected]> | 2020-04-07 14:49:20 +0800 |
|---|---|---|
| committer | bigmagic <[email protected]> | 2020-04-07 14:49:20 +0800 |
| commit | dff04ffdc6e76973eef52d38090231dd2771c8d9 (patch) | |
| tree | 9064a45239604d143081a87390df7d2c4525154e /libcpu | |
| parent | 3c5329a9b709e413bbc878e5661fa942060d41fb (diff) | |
fix mips stackframe point
Diffstat (limited to 'libcpu')
| -rw-r--r-- | libcpu/mips/common/ptrace.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libcpu/mips/common/ptrace.h b/libcpu/mips/common/ptrace.h index c048959053..00ce58a085 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 */ |
