entering ring 0 from user mode

前端 未结 3 1236
情书的邮戳
情书的邮戳 2021-01-16 14:50

Most modern operating systems run in the protected mode. Now is it possible for the user programs to enter the \"ring 0\" by directly setting the corresponding bits in some

3条回答
  •  独厮守ぢ
    2021-01-16 15:13

    You can ask the operating system to map the memory of the hardware device into the memory space of your program. Once that's done, you can just read and write that memory from ring 3. Whether that's possible to do, or how to do that, depends on the operating system or the device.

提交回复
热议问题