Hello,
is it possible to disable the ports and cli,sti,... for ring3 tasks ??
Could somebody give me a example ?
Hunter
Port access
Re: Port access
I think you must use the TSS. cli and sti are already disabled in ring3.hunter wrote:Hello,
is it possible to disable the ports and cli,sti,... for ring3 tasks ??
Could somebody give me a example ?
Hunter
- Combuster
- Member
- Posts: 9301
- Joined: Wed Oct 18, 2006 3:45 am
- Libera.chat IRC: [com]buster
- Location: On the balcony, where I can actually keep 1½m distance
- Contact:
Once again: check IOPL
Also, some people forgot to read the manual page on CLI:
Also, some people forgot to read the manual page on CLI:
AMD's Big Book of Patterns wrote:In protected mode and virtual-8086-mode, this instruction is IOPL-sensitive. If the CPL is less than or equal to the rFLAGS.IOPL field, the instruction clears IF to 0.
In protected mode, if IOPL < 3, CPL = 3, and protected mode virtual interrupts are enabled (CR4.PVI = 1), then the instruction instead clears rFLAGS.VIF to 0. If none of these conditions apply, the processor raises a general-purpose exception (#GP).