Changes
/* Privilege Modes */
Switching from User mode to Supervisor mode happens only through exceptions or interrupts, ensuring user programs cannot gain higher privileges on their own. All exceptions, including system calls and errors, automatically trigger Supervisor mode, and all related memory accesses are treated as Supervisor references.
By keeping User and Supervisor modes separate, the system stays secure, prevents programs from causing crashes, and allows smooth multitasking with better memory handling.