Which header files?


R. Clayton (rclayton@monmouth.edu)
Tue, 26 Sep 2000 17:22:27 -0400 (EDT)


  Which header files are we supposed to be using?

Take a look at the Simulator Implementation Structure section on the
architecture simulator page for a description of the header files you need to
pay attention to. Also take a look at my-os.cc in the misc directory for a
code example.

  Within each header file, are we supposed to be responsible for writing every
  function in the class?

No; the header files describe the architecture simulator, which has already
been written. The only thing you need to do with the header files is
understand the features they provide for you to use when building your
operating system.

  For example, in cpu.h the four functions void initialize(void), bool
  in_kernel_mode(void), void trigger_interrupt(interrupt_types), and
  interrupt_types step(void) are not implemented. Are we supposed to implement
  all of them?

No, you don't have to implement any of them because they've already been
implemented (in cpu.cc, which is part of the simulator library). What you do
have to implement is the interrupt handlers themselves; see the
Simulator-Operating System Interface section on the architecture simulator page
for more details.



This archive was generated by hypermail 2.0b3 on Mon Dec 18 2000 - 13:30:05 EST