History

NetBSD: arm64 is curiously detected as evbarm. Struct uc_mcontext is once again different.

Christian Jullien committed 5 years ago

Commit ba61c7b1 parent f7d2d042 files · +4 −1Browse files

Unified · Split

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