Lecture 2 -

Hardware Modes

Who actually gets to control the hardware?

The application? It would be simple and quick, but isn't safe at all.

The OS? Can act on behalf of the application, which gives us protection.

Challenge: Protection with Restrictions

How do we execute code with restricted privileges?

Hardware Support: Dual Mode Operation

On x86, mode stored in EFLAGS register. On MIPS, mode stored in status register.