CS 110 Homework Assignment 3
Due: Friday 19 October, 9PM
-
Points 3,
S&G, 2.5, pg 46
Which of the following instructions should be privileged?
-
Set value of timer
-
Read the clock
-
Clear memory
-
Turn Off Interrupts
-
Switch from user to monitor mode
-
Points 3,
S&G, 2.7, pg 46
Some early computers protected the operating system by placing it
in a memory partition that could not be modified by either the
user job or the operating system itself.
Describe two difficulties that you think could arise with
such a scheme.
-
Points 6,
2-1 from Paul with the following changes:
write only a version
with all appropriate
nops
-
Points 6,
2-3 from Paul with the following changes:
write only a version
with all appropriate
nops
Notes:
-
Write the SPARC assembly language
programs in assembly language,
assemble them with gcc, and test them with gdb. For
these, all data can be kept in registers; you do not have to use memory
loads and stores.
-
Turn in printed copies of your programs and short
transcripts (script) of the gdb sessions.
In particular, show at least the final output and
the steps through 2-3.
Setting additional breakpoints and print outs is ok,
but not necessary.
-
Look at the qref page for ways
to save on printer paper.
Where to Turn in:
The plastic bins outside Mike's office, 249 Olin.
Last modified Oct 15, 01 by mike@cs.hmc.edu