Advanced Operating Systems COMP9242 2003/S2 |
UNSW |
Printer-Friendly
Version
|
Device libraryThe 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. Memory allocationThe function Device mappingsThe function InterruptsThe other aspect that impacts on you is the handling of
interrupts. When a device driver needs a CPU interrupt it will
call 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
function
Last modified: 07 Sep 2003. |