shithub: riscv

Download patch

ref: ca2f1c07f2a6bb48582b990868976b45d3663605
parent: fbf29fc6951da196b0ce155dd0af86c6d7fde7bf
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Thu Sep 12 11:28:04 EDT 2019

acid/kernel: for stacktraces, try to use context from error stack when process is not sleeping

when a process state has not been saved (Proc.mach != nil)
then the contents of Proc.sched should be considered invalid.

to approximate a stacktrace in this case, we use the error
stack and get a stacktrace from the last waserror() call.