parlib: Fix context detection in __prep_sighandler()
authorBarret Rhoden <brho@cs.berkeley.edu>
Tue, 19 Jun 2018 17:51:07 +0000 (13:51 -0400)
committerBarret Rhoden <brho@cs.berkeley.edu>
Tue, 19 Jun 2018 17:51:07 +0000 (13:51 -0400)
commitf362b4c3c71b901e997567a3202d0616d7363aa3
tree06d40075841e50effbc050d28b5a4ae1d2e44ede
parent3887bc1cec9630f9925ab0dbb37210d9d6659fd7
parlib: Fix context detection in __prep_sighandler()

In commit f3f00eeae350 ("parlib: Fix aggressively-saved FP state for
signals"), we were checking the wrong context.  If the uthread was not
saved, its context was in VCPD.  That's why we have the ctx variable.

Signed-off-by: Barret Rhoden <brho@cs.berkeley.edu>
user/parlib/signal.c