Unified · Split
| @@ -661,6 +661,9 @@ static void rt_getcontext(ucontext_t *uc, rt_context *rc) · 660 unmodified lines | |||
| 661 | rc->ip = uc->uc_mcontext.gregs[REG_RIP]; | 661 | rc->ip = uc->uc_mcontext.gregs[REG_RIP]; |
| 662 | rc->fp = uc->uc_mcontext.gregs[REG_RBP]; | 662 | rc->fp = uc->uc_mcontext.gregs[REG_RBP]; |
| 663 | # endif | 663 | # endif |
| 664 | #elif defined(__arm__) && defined(__NetBSD__) | ||
| 665 | rc->ip = uc->uc_mcontext.__gregs[_REG_PC]; | ||
| 666 | rc->fp = uc->uc_mcontext.__gregs[_REG_FP]; | ||
| 664 | #elif defined(__arm__) | 667 | #elif defined(__arm__) |
| 665 | rc->ip = uc->uc_mcontext.arm_pc; | 668 | rc->ip = uc->uc_mcontext.arm_pc; |
| 666 | rc->fp = uc->uc_mcontext.arm_fp; | 669 | rc->fp = uc->uc_mcontext.arm_fp; |