Shivam2501 / CosmOS

x86 based Operating System
Apache License 2.0
0 stars 0 forks source link

Support A Loader #18

Closed Shivam2501 closed 8 years ago

Shivam2501 commented 8 years ago

Extend the code for your file system driver to copy a program image from the randomly ordered 4 kB “disk” blocks constituting the image in the file system into contiguous physical memory. This process is normally performed by a program loader in cooperation with the OS, but in your case will be performed completely within the kernel, since the file system code and control of the memory is internal. In addition, you will need to set up the stack properly and then return into user-level, since privilege level 0 cannot call down into privilege level 3, and your user-level code must execute at the lower privilege level.