Resource request calls and core request handling
authorBarret Rhoden <brho@cs.berkeley.edu>
Tue, 22 Sep 2009 21:45:41 +0000 (14:45 -0700)
committerBarret Rhoden <brho@cs.berkeley.edu>
Mon, 19 Oct 2009 00:20:02 +0000 (17:20 -0700)
commitd1ac481d98521bec2584bf9f21e34a2202719bb7
treee8640a6938f3c06ef60427caae96856ebaba9ca3
parent2a2a4045b835f88f66262586b8cac8e4ca3b033e
Resource request calls and core request handling

This establishes an interface to request resources from the kernel.
Currently uses a syscall per resource request, which avoids some
complexities.  Processes can use this interface to issue requests for
cores.

This also adds internal functions for the giving and taking of cores.
Currently, this family doesn't change state, requiring the processes to
be RUNNING_M or RUNNABLE_M.  See the comments for details (in
proc_give_cores()).
18 files changed:
kern/arch/i386/process.c
kern/arch/i386/trap.c
kern/include/env.h
kern/include/process.h
kern/include/resource.h [new file with mode: 0644]
kern/include/ros/resource.h [new file with mode: 0644]
kern/include/ros/syscall.h
kern/src/Makefrag
kern/src/env.c
kern/src/manager.c
kern/src/mm.c
kern/src/monitor.c
kern/src/process.c
kern/src/resource.c [new file with mode: 0644]
kern/src/syscall.c
user/apps/roslib/mhello.c
user/roslib/inc/lib.h
user/roslib/src/syscall.c