9.6. Privilege Levels and Rings

The simplest sort of privilege mechanism, implemented by many CPUs, employs two privilege levels. These two levels are often called the user and supervisor or user and kernel levels. The MMU makes higher-level instruction and data spaces inaccessible to user-level code to protect the most privileged (supervisor or kernel) code and data.

The Diamond 232L CPU’s MMU operates with four privilege levels called rings. In the Diamond 232L CPU, kernel code resides at Ring 0. Code running at Ring 0 can access the address spaces in all of the other privilege rings. The privilege levels are called rings because conceptually, lower-numbered levels (with higher privilege) envelop or “ring” higher-numbered levels. Figure 9.7 ...

Get Designing SOCs with Configured Cores now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.