Please note that the content of this book primarily consists of articles
available from Wikipedia or other free sources online. CPU modes are
operating modes for the central processing unit of some computer
architectures that place restrictions on the type and scope of
operations that can be performed by certain processes being run by the
CPU. This design allows the operating system to run with more privileges
than application software. Ideally, only highly-trusted kernel code is
allowed to execute in the unrestricted mode; everything else run in a
restricted mode and must use a system call to request the kernel perform
on its behalf any operation that could damage or compromise the system,
making it impossible for untrusted programs to alter or damage other
programs. In practice, however, system calls take time and can hurt the
performance of a computing system, so it is not uncommon for system
designers to allow some time-critical software to run with full kernel
privileges.