OS Protection
How do we know if we can execute a protected instruction?
- arch must support (at least) two modes of operation: kernel mode and user mode
- mode is indicated by a status bit in a protected processor register
- user programs execute in user mode; the OS executes in kernel mode
Protected instructions can only be executed in kernel mode.