Improved user binary loading
authorAndrew Waterman <waterman@r53.millennium.berkeley.edu>
Thu, 29 Oct 2009 03:37:38 +0000 (20:37 -0700)
committerAndrew Waterman <waterman@r53.millennium.berkeley.edu>
Thu, 29 Oct 2009 03:37:38 +0000 (20:37 -0700)
commit650a6d6e1c399be309429d3d1b29ad29ba8d9b29
tree8c5a23dfbc9b28ff6df72c371c2dd842f148e1fb
parent9603eb24ed5a5fae8480f4c213fd7156ec8d7014
Improved user binary loading

load_icode no longer requires the new process' cr3 to be loaded.
Binaries can now be loaded from another process' address space
directly, so a large number of contiguous physical pages is
no longer needed.  This fixes a kmalloc failure on SPARC.
kern/include/env.h
kern/src/env.c
kern/src/kfs.c
kern/src/page_alloc.c
kern/src/syscall.c