NetBSD: start arm support. WIP
This commit is contained in:
parent
0754912ebd
commit
3873f95197
1 changed files with 3 additions and 0 deletions
3
tccrun.c
3
tccrun.c
|
@ -661,6 +661,9 @@ static void rt_getcontext(ucontext_t *uc, rt_context *rc)
|
|||
rc->ip = uc->uc_mcontext.gregs[REG_RIP];
|
||||
rc->fp = uc->uc_mcontext.gregs[REG_RBP];
|
||||
# endif
|
||||
#elif defined(__arm__) && defined(__NetBSD__)
|
||||
rc->ip = uc->uc_mcontext.__gregs[_REG_PC];
|
||||
rc->fp = uc->uc_mcontext.__gregs[_REG_FP];
|
||||
#elif defined(__arm__)
|
||||
rc->ip = uc->uc_mcontext.arm_pc;
|
||||
rc->fp = uc->uc_mcontext.arm_fp;
|
||||
|
|
Loading…
Reference in a new issue