Fixed a current_tf setting bug and added checks
authorAndrew Waterman <waterman@s143.Millennium.Berkeley.EDU>
Wed, 5 May 2010 07:58:42 +0000 (00:58 -0700)
committerKevin Klues <klueska@cs.berkeley.edu>
Thu, 3 Nov 2011 00:35:47 +0000 (17:35 -0700)
commit3160d839b357eabf81b97f59a60b67c8bd40898d
treec5c06d43591f442d2820464c05d5945133f537b1
parent811a2a4430d45e432359b4406d78cab19d2d26dc
Fixed a current_tf setting bug and added checks

Never call proc_restartcore without previously calling set_current_tf.
In all situations, the tf passed to restartcore should be the same
as current_tf (as far as I know), so the parameter should actually
be removed and current_tf should be used instead.
kern/arch/sparc/trap.c
kern/include/process.h
kern/src/process.c