MIT 6.828: JOS Lab
Lab 5: File System, Spawn and Shell
Answer the following questions:
- Do you have to do anything else to ensure that this I/O privilege setting is saved and restored properly when you subsequently switch from one environment to another? Why?
- Nothing else needs to be done. When switching from the file system environment to another environment, the two trap frames are completely separate. If the file system environment forks, then the child would inherit the
ELFLAGSregister value and hence the I/O privilege.
Subscribe to This is SXKDZ
Get the latest posts delivered right to your inbox