CS 134

Coding Component

In this portion of the assignment, we make a small modification to the OS/161 and debug it.

  1. Find the place in the code that prints Put-your-group-name-here and edit it to print your group's name.
  2. Recompile and test your kernel.
    • Submit your code by running Git (git stage; git commit; git push; or using VS Code).
    • In src/kern/main there is an extra file, hello.c, which is currently not compiled or used. It defines a function complex_hello that is intended to print Hello World. (The code in this file is more complex than strictly necessary, but you should not replace it with a simple call to kprintf.)
  3. Edit one of the kernel source files to add a call to complex_hello so that Hello World will be printed once, just before the prompt appears.
  4. Edit src/kern/conf/conf.kern appropriately to include hello.c.
  5. Since you've changed a kernel configuration file, rerun the configure program in kern/conf (using the same steps you used in Part 2).
  6. Change directory into src/kern/compile/DUMBVM and rebuild the kernel (again, using the same steps as you used on page 2).
  7. Run the kernel. It will panic.
  8. Use gdb to find the bug.
  9. Fix the bug.
    • Submit your code with Git

To Complete This Part of the Assignment…

You'll know you're done with this part of the assignment when you've done all of the following:

(When logged in, completion status appears here.)