Operating Systems Lecture Notes

25 January 2012 • Hardware Architectures


Outline

Hardware Architectures

So What?

Logical Organization

CPUs

Register Set

a register set

  • Some registers are special purpose.
  • Other registers are conventionally special.
  • The rest are general purpose.

The Address Space

Address Segments

address segments

  • Each segment gets its own address range.
  • A segment may be further subdivided into other (sub-)segments.

Bus Fetch-Store

Interrupts

Interrupt Processing

Exceptions

Execution Modes

Setting the Mode

Device Access

Terminal Device

Example

On TTY interrupt:

  if bus[TTY.status] == TTY.read ok
    TTY.in buffer[TTY.next in++] = bus[TTY.data]

  else if bus[TTY.status] == TTY.write ok
    if TTY.out buffer size > 0
      bus[TTY.data] = TTY.out buffer[TTY.next out++]
      TTY.out buffer size--      

  else // deal with other TTY status values

Summary

References


This page last modified on 2012 January 28.

Creative
    Commons License