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