Questions tagged [xv6]
Use this tag if your question is about the xv6 OS (a "pedagogical" reimplementation of Unix v6, as used in MIT's 6.828 course) and do NOT want to mislead people into giving answers which assume Linux or other modern Unix system, which are quite different both in their implementation and interfaces.
7 questions
0 votes
1 answer
309 views
How does timer-interrupt occur in XV6?
I implemented thread's switching using functions like thread_schedule(), and thread_yield(), which aim at saving current thread's registers and state and loading next thread's one. I now want to ...
0 votes
1 answer
859 views
Why can't user process READ memory in kernel address space?
It seems fairly obvious why user processes can't write or modify data on kernel address space. But I can't get my head around why they can't even read the data. I know that a segmentation trap would ...
0 votes
1 answer
2k views
What does file descriptor have to do with process table?
I have an interest in Operating Systems. So I am reading the xv6 book to understand Operating Systems. This is my first book on the subject. I read a line I couldn't understand. Internally, the xv6 ...
2 votes
2 answers
3k views
open() console for default file descriptors
I'm reading a shell program implementation in C ( the xv6 shell from MIT's 6.828 Operating System Engineering course ). The main() function for this shell starts with the following code: //Assumes ...