Advanced Operating Systems
The device library contains some function which can simplify writing device drivers, and more importantly abstracts operating system specific details so that drivers can be portable between different operating systems. This is most important for the device drivers that we provide for you such as the serial and network drivers.
You may wish to use this library directly when writing your clock driver. Depending on the design of your operating system you may wish to modify libdevice. This library depends on the structure and functions you provide in SOS.
The other aspect that impacts on you is the handling of
interrupts. When a device driver needs a CPU interrupt it will
The current implementation sets the root thread as the interrupt
handler for any registered interrupts. You may wish to change this
implementation so that each interrupt is handled by a different
thread. The implementation of SOS we have provided to you calls the
Last modified: 29 Jul 2004.