Coding Component
In this portion of the assignment, we make a small modification to the OS/161 and debug it.
- Find the place in the code that prints
Put-your-group-name-hereand edit it to print your group's name. - Recompile and test your kernel.
- Submit your code by running Git (
git stage;git commit;git push; or using VS Code). - In
src/kern/mainthere is an extra file,hello.c, which is currently not compiled or used. It defines a functioncomplex_hellothat is intended to printHello World. (The code in this file is more complex than strictly necessary, but you should not replace it with a simple call tokprintf.)
- Submit your code by running Git (
- Edit one of the kernel source files to add a call to
complex_helloso thatHello Worldwill be printed once, just before the prompt appears. - Edit
src/kern/conf/conf.kernappropriately to includehello.c. - Since you've changed a kernel configuration file, rerun the configure program in
kern/conf(using the same steps you used in Part 2). - Change directory into
src/kern/compile/DUMBVMand rebuild the kernel (again, using the same steps as you used on page 2). - Run the kernel. It will panic.
- Use
gdbto find the bug. - Fix the bug.
- Submit your code with Git
(When logged in, completion status appears here.)