GATE / CS ARCHIVE

GATE CSE 2001 / QUESTION 1.13

Returning from privileged mode to user mode

Computer Organization & Architecture · Instructions & Addressing Modes · Full GATE CSE 2001 paper

GATE 2001, Q1.13 1 mark · MCQ
Report issue

Instructions & Addressing Modes

Question 1.13, GATE 2001: A CPU has privileged and nonprivileged modes. How does the conventional architecture return from privileged to nonprivileged execution? Choices are hardware interrupt, software interrupt, a privileged non-interrupting instruction, or a nonprivileged non-interrupting instruction.
Tap to enlarge
Your answer
Answer & solution

Answer: C under the conventional mode-control architecture (no official key was published)

Step 1: Interrupts and traps normally enter privileged mode. The reverse transition occurs when the OS restores a user context and returns to its instruction stream.

Step 2: A privileged return-from-trap or mode-control instruction can perform that transition without generating a new interrupt, corresponding to C. It is executed while the processor is still privileged.

Qualification: The prompt does not specify an ISA. Some architectures may provide other controlled privilege-dropping mechanisms; the answer uses the standard textbook protection model, not a universal instruction-set theorem.

Original paper, page 2