proc_change_to_m() is now a scheduler function
authorBarret Rhoden <brho@cs.berkeley.edu>
Mon, 23 Apr 2012 23:16:30 +0000 (16:16 -0700)
committerBarret Rhoden <brho@cs.berkeley.edu>
Mon, 23 Apr 2012 23:16:30 +0000 (16:16 -0700)
commitb744573380d84ec55efb251007c7ea3ecb1fc3cf
tree4df29893eddfefe5f1c449cf0b15d838732329ec
parent257c6191eda6021f3da1e190ad2cf9ff8bb10eaf
proc_change_to_m() is now a scheduler function

Due to issues of lock ordering.  We need to atomically change process
state and tell the ksched about it.  The way to do this without
deadlocking is to grab the ksched lock first.  Ultimately, we're going
to end up tying proc and ksched code together a bit, where proc code
does the bidding of sched code.
kern/include/process.h
kern/include/schedule.h
kern/src/process.c
kern/src/schedule.c
kern/src/syscall.c