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)
commit049fb46b7129283a37826e5dac6d4d589e4b98d0
tree640970aaeb94d0a04b2218be0ffb54d2145f69d2
parenta0e73d383085ae1f24af47ef3a3be98193a3b61b
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