Winter Semester 2026–27 · VIT-AP · BACSE106 · Operating Systems · Dr. Krithika L.B

User mode to kernel mode transition

What the hardware saves and restores on a trap.

Module 1 Session 1.3 Lesson 3 of 7

User Mode to Kernel Mode Transition

Detailed execution path of System Calls & Hardware Mode Switch

⚙️ Hardware CPU Register Status:
User Mode (Mode Bit = 1)
user mode (mode bit = 1) user process user process executing calls system call return from system call HARDWARE BOUNDARY / PROTECTION LEVELLING kernel mode (mode bit = 0) kernel execute system call trap mode bit = 0 return mode bit = 1
1. User Process Executing

The application runs in User Mode (Mode Bit = 1). The CPU restricts access to direct hardware instructions to protect system integrity.