Architectural Support For OS
Architectural Support For OS
OS
OS and Architectures
12/13/20 2
Architectural Features for OS
12/13/20 3
Protected Instructions
12/13/20 4
OS Protection
12/13/20 5
Crossing Protection Boundaries
12/13/20 6
Protection Modes and Crossing
OS Kernel
trap handler system service routine
trap to kernel
mode kernel mode
system call
User Programs
7
Memory Protection
12/13/20 9
I/O Control
• I/O issues:
– how to start an I/O (special instructions or memory-
mapped I/O
– I/O completion (interrupts)
• Interrupts are the basis for asynchronous I/O
– device controller performs an operation asynch to CPU
– device sends an interrupt signal on bus when done
– in memory is a vector table containing a list of addresses
of kernel routines to handle various events
– CPU switches to address indicated by vector specified by
the interrupt signal
12/13/20 10
I/O Control (cont)
device interrupts
12/13/20 12
Synchronization
12/13/20 13