I have a newbie question on device driver. Although I have finished a
simple dummy device driver, I am still puzzled. The user program
using driver API are executed in user space with CPU CPL=3, and I
suppose the driver itself should be running with CPU CPL=0, privilege
mode, actually it should not have inaccessible resources. Then how
the switch happens? To enter system call to change CPU cpl=0, we can
use int 0x80. What about from user to drive code?
Thanks.
Lee