mirror of
https://github.com/mirror/tinycc.git
synced 2025-01-29 06:10:09 +08:00
NetBSD: start arm support. WIP
This commit is contained in:
parent
0754912ebd
commit
3873f95197
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 New Issue
Block a user