From 3873f951970c4038aaa66757784be18231c5db78 Mon Sep 17 00:00:00 2001 From: Christian Jullien Date: Tue, 5 Jan 2021 13:43:55 +0100 Subject: [PATCH] NetBSD: start arm support. WIP --- tccrun.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tccrun.c b/tccrun.c index 198dd0d5..6c2546ef 100644 --- a/tccrun.c +++ b/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;