How to prevent user processes accessing I/O ports directly?
Posted: Sat Feb 07, 2015 5:02 am
Just as the title, how to prevent user processes accessing I/O ports directly? I know on some archs I/O ports are mapped to memory. So I can prevent user processes accessing the given memory range. But how about isolated I/O? Is there any way to prevent the user process, for example, directly using in and out instructions to manipulate hardwares? I want to force them to use system calls.