Page 1 of 1
User mode and Interrupts
Posted: Thu Jun 14, 2007 10:21 pm
by chorakm
So I'm going to switch to CPL to (try to) protect the kernel from applications. The INT operating concerns me, however. How do I prevent users from firing, say INT 32 which happens to be my timer interrupt and throwing off the system time? I tried to find a source on this but I'm pretty puzzled!
Posted: Fri Jun 15, 2007 1:20 am
by Combuster
In the IDT, you can provide the privilege level required to call the interrupt as a software interrupt. Look at the IDT descriptor information in the Intel Manuals which should tell you where that information is stored.
Posted: Fri Jun 15, 2007 10:40 pm
by chorakm
LOL! Ahhh so that's what that was for. I feel, well....dumb. Thank you for the clarification.