History

OpenBSD: aarch64 99% working, armv7 WIP.

Christian Jullien committed 5 years ago

Commit 1018ee81 parent ef7c4381 file · +6 −0Browse files

Unified · Split

tccrun.c+6−0
@@ -664,6 +664,9 @@ static void rt_getcontext(ucontext_t *uc, rt_context *rc) · 663 unmodified lines
664664 #elif defined(__arm__) && defined(__NetBSD__)
665665 rc->ip = uc->uc_mcontext.__gregs[_REG_PC];
666666 rc->fp = uc->uc_mcontext.__gregs[_REG_FP];
667+#elif defined(__arm__) && defined(__OpenBSD__)
668+ rc->ip = uc->sc_pc;
669+ rc->fp = uc->sc_fpreg[29];
667670 #elif defined(__arm__)
668671 rc->ip = uc->uc_mcontext.arm_pc;
669672 rc->fp = uc->uc_mcontext.arm_fp;
@@ -673,6 +676,9 @@ static void rt_getcontext(ucontext_t *uc, rt_context *rc) · 3 unmodified lines
673676 #elif defined(__aarch64__) && defined(__NetBSD__)
674677 rc->ip = uc->uc_mcontext.__gregs[_REG_PC];
675678 rc->fp = uc->uc_mcontext.__gregs[_REG_FP];
679+#elif defined(__aarch64__) && defined(__OpenBSD__)
680+ rc->ip = uc->sc_elr;
681+ rc->fp = uc->sc_x[29];
676682 #elif defined(__aarch64__)
677683 rc->ip = uc->uc_mcontext.pc;
678684 rc->fp = uc->uc_mcontext.regs[29];

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t