Program 2 for Operating Systems | ECS 150, Assignments of Operating Systems

Material Type: Assignment; Professor: Bishop; Class: Operating Systems; Subject: Engineering Computer Science; University: University of California - Davis; Term: Fall 2008;

Typology: Assignments

Pre 2010

Uploaded on 07/31/2009

koofers-user-kh3-1
koofers-user-kh3-1 🇺🇸

10 documents

1 / 1

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
ECS 150, Operating Systems Fall Quarter 2008
Program 2
Due Date: October 20, 2008 Points: 100
Programs
1. (30 points) Modify the MINIX kernel to print your group’s name when the system boots. Your boot banner
should look like this (but replace ”Matt Bishop” by your group’s name):
MINIX 3.1.1. Copyright 2006, Vrije Universiteit, Amsterdam, The Netherlands
Matt Bishop’s system
Executing in 32-bit protected mode.
Hint: Look for the word ”Copyright” in the kernel files. That will help you figure out where to print the required
line.
2. (70 points) Modify the MINIX kernel so that, whenever ˆA is pressed in cooked mode, the system prints ”Alert!”,
goes to the next line, and reprints the previously-entered line.
In the following, I pressed ˆA just after I typed ”hello”. What I typed is in a regular typeface, and what the
system typed is in a bold typeface. The cursor is after the ”hello” on the second line.
helloAlert!
hello
Hint: This is very much like what ˆR does, except that you don’t print the ˆR, and print ”Alert!” instead. So
look for where that action takes place, and use that code as an example.
Version of September 21, 2008 at 9:35pm Page 1 of 1

Partial preview of the text

Download Program 2 for Operating Systems | ECS 150 and more Assignments Operating Systems in PDF only on Docsity!

ECS 150, Operating Systems Fall Quarter 2008

Program 2

Due Date: October 20, 2008 Points: 100

Programs

  1. (30 points) Modify the MINIX kernel to print your group’s name when the system boots. Your boot banner should look like this (but replace ”Matt Bishop” by your group’s name): MINIX 3.1.1. Copyright 2006, Vrije Universiteit, Amsterdam, The Netherlands Matt Bishop’s system Executing in 32-bit protected mode. Hint: Look for the word ”Copyright” in the kernel files. That will help you figure out where to print the required line.
  2. (70 points) Modify the MINIX kernel so that, whenever ˆA is pressed in cooked mode, the system prints ”Alert!”, goes to the next line, and reprints the previously-entered line. In the following, I pressed ˆA just after I typed ”hello”. What I typed is in a regular typeface, and what the system typed is in a bold typeface. The cursor is after the ”hello” on the second line. hello Alert! hello Hint: This is very much like what ˆR does, except that you don’t print the ˆR, and print ”Alert!” instead. So look for where that action takes place, and use that code as an example.

Version of September 21, 2008 at 9:35pm Page 1 of 1