You have been tasked to design an operating System Kernel that will provide basi
ID: 639463 • Letter: Y
Question
You have been tasked to design an operating System Kernel that will provide basic system calls for the following compute Standard CPU with 32 bitregisters. Four of the registers have been reserved for communication with the kernel (let's say registers a to d) Main Memory with 10 megabytes of storage. Each byte is 8 bits. Standard 80x24 monitor Standard keyboard A Disk Drive Your kernel must be able to handle the following system calls: 0. Program Exit (with and without an error) 1. Accept one character of data from keyboard 2. Output one character of data to display 3. Create a directory 4. Change to a directory 5. Remove a directory 6. Create a file. 7. en a file for input 8. en a file for output Op 9. Read the next byte from a file. 10. Write the next byte to a file. 11. Close a file. 12. Delete a file. 13. Request List of Files in Current Direct 14. Display Current Directory Name 15. Get the current system date and time All communication with the kernel must be done using data or addresses stored in registers. Each system call must be assigned a unique interrupt vector and that is the only thing that can be passed in when calling the kernel. our kernel will NOT be handling hardware interrupts, only system calls. To start with, develop a system call table that assigns a vector number to each system call and identifies where and how the information needed for communication between a program and the kernel is performed. (Remember, the only way to send and receive information between a program and the kernel is through one of the registers Make sure you include a way to notify the calling program that the request could not be performed. SeeExplanation / Answer
SAVE a file with a name /usr/include/sys/syscall.h.
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.