Question: In this homework mini-project your team will add a simple system call to xv6. Your new syscall should look like this: int howmanysys(void) Your system
In this homework mini-project your team will add a simple system call to xv6. Your new syscall should look like this: int howmanysys(void) Your system call returns the number of system calls that have taken place so far.
Hint
You can start by taking a look and using another system call, like getpid() to get an idea of how the code works . Most of the time will be spent on understanding the code. There shouldn't be a whole lot of code added you can use any editor and gcc as a compiler.
Check this Lab tutorial for C programming in three easy pieces website: http://pages.cs.wisc.edu/~remzi/OSTEP/lab-tutorial.pdf
Details
Setting up the environment.
-Download XV6
-Unzip the file
-tar xzf XV6.tar.gz
-Compile the system
-Make
-Modify file Makefile line 56
-QEMU:=qemu-system-i386
-Run qemu
-Make qemu-nox
More instructions about the homework and details about the different components of xv6
https://www.youtube.com/watchv=lyuNbuymGD8&feature=youtu.be
Excellent video (Prof Remzi Arpaci-Dusseau Author of three easy pieces)
start watching at minute 37:57
this are the files you will have to modify
syscall.h
syscall.c
user.h
usys.S
sysproc.c
Makefile
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
