fork.science

Question: Does the CPU know in which mode the system is?

A It depends if the CPU executes kernel or user process code B Yes, each modern CPU has a bit somewhere that can be flipped
C No, that would not be safe