Search code examples
operating-systemprivilegesinstructionsprogram-counter

Why is modification of the program counter not a privileged instruction?


The program counter is stored in the PCB and that is in the kernel space. But modifying the program counter is not a privileged instruction. Why is that?


Solution

  • You have to modify the program counter every time you call a procedure and return from one.