Unified · Split
| @@ -178,7 +178,7 @@ case "$cpu" in · 177 unmodified lines | ||
| 178 | 178 | x86_64|amd64|x86-64) |
| 179 | 179 | cpu="x86_64" |
| 180 | 180 | ;; |
| 181 | − aarch64|arm64) | |
| 181 | + aarch64|arm64|evbarm) | |
| 182 | 182 | cpu="aarch64" |
| 183 | 183 | ;; |
| 184 | 184 | arm*) |
| @@ -667,6 +667,9 @@ static void rt_getcontext(ucontext_t *uc, rt_context *rc) · 666 unmodified lines | ||
| 667 | 667 | #elif defined(__aarch64__) && defined(__FreeBSD__) |
| 668 | 668 | rc->ip = uc->uc_mcontext.mc_gpregs.gp_elr; /* aka REG_PC */ |
| 669 | 669 | rc->fp = uc->uc_mcontext.mc_gpregs.gp_x[29]; |
| 670 | +#elif defined(__aarch64__) && defined(__NetBSD__) | |
| 671 | + rc->ip = uc->uc_mcontext.__gregs[_REG_PC]; | |
| 672 | + rc->fp = uc->uc_mcontext.__gregs[_REG_FP]; | |
| 670 | 673 | #elif defined(__aarch64__) |
| 671 | 674 | rc->ip = uc->uc_mcontext.pc; |
| 672 | 675 | rc->fp = uc->uc_mcontext.regs[29]; |