about summary refs log tree commit diff stats
path: root/src/libtools
diff options
context:
space:
mode:
authorCameron Kaiser <classilla@floodgap.com>2022-02-03 22:36:40 -0800
committerCameron Kaiser <classilla@floodgap.com>2022-02-03 22:36:40 -0800
commit0a04c9ff39ae21e3103bd31f3f64749baf4f6489 (patch)
treefc66348d2d9e774a748ce43f360bfa408ba74332 /src/libtools
parenta3581678978350f1094e6b699de3030ef0b033e8 (diff)
downloadbox64-0a04c9ff39ae21e3103bd31f3f64749baf4f6489.tar.gz
box64-0a04c9ff39ae21e3103bd31f3f64749baf4f6489.zip
ensure uc_link is properly initialized in getcontext(), fixes ppc64le
Diffstat (limited to 'src/libtools')
-rwxr-xr-xsrc/libtools/signals.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libtools/signals.c b/src/libtools/signals.c
index 1086f36c..a2e039d5 100755
--- a/src/libtools/signals.c
+++ b/src/libtools/signals.c
@@ -1210,6 +1210,8 @@ EXPORT int my_getcontext(x64emu_t* emu, void* ucp)
     // get FloatPoint status
     // get signal mask
     sigprocmask(SIG_SETMASK, NULL, (sigset_t*)&u->uc_sigmask);
+    // ensure uc_link is properly initialized
+    u->uc_link = emu->uc_link;
 
     return 0;
 }