Kthread sleeping uses setjmp
authorBarret Rhoden <brho@cs.berkeley.edu>
Tue, 30 Dec 2014 21:19:59 +0000 (16:19 -0500)
committerBarret Rhoden <brho@cs.berkeley.edu>
Wed, 31 Dec 2014 18:03:10 +0000 (13:03 -0500)
commit278871875dc53772ba9b7cb04e9e4cf9f2f8d552
treeae2107e1b898ad486161772e0c52218a9a4e7598
parenta9a9c07b6c80fcddf7bf4fdd9a806634f944d2e1
Kthread sleeping uses setjmp

The old save_kernel_ctx was doing the same thing as setjmp, but with more
overhead and possible some other issues that were triggering
-Wmaybe-uninitialized.
Documentation/kthreads.txt
kern/arch/riscv/entry.S
kern/arch/riscv/trap.h
kern/arch/x86/trap32.c
kern/arch/x86/trap32.h
kern/arch/x86/trap64.c
kern/arch/x86/trap64.h
kern/include/kthread.h
kern/include/trap.h
kern/src/kthread.c