Break load_segment() into two functions for increased clarity.
authorBen Pfaff <blp@cs.stanford.edu>
Sun, 9 Apr 2006 01:27:46 +0000 (01:27 +0000)
committerBen Pfaff <blp@cs.stanford.edu>
Sun, 9 Apr 2006 01:27:46 +0000 (01:27 +0000)
commit760b9888dad2d81f97439e879321502c7e28e733
tree774689d7e3e8463b8663be7327f9e7759ebd9ca3
parent308ff82aa51fd81178f96ce1c37814758e6ba87e
Break load_segment() into two functions for increased clarity.
Don't read anything from disk if p_filesz == 0.
Thanks to Godmar for suggesting these changes.
Also, enforce read-only page protection out-of-the-box.

Fixes for reference solutions to follow.
doc/vm.texi
src/userprog/process.c