How to Stop INT

Programming, for all ages and all languages.
Post Reply
Tyler
Member
Member
Posts: 514
Joined: Tue Nov 07, 2006 7:37 am
Location: York, England

How to Stop INT

Post by Tyler »

How would i stop Applicatons from calling Interupts?
User avatar
Combuster
Member
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:

Post by Combuster »

In realmode, you dont.

In protected mode, each interrupt gate or trap gate in the IDT has a DPL, which is set to the lowest privilege level able to call it. if you for instance set it to 2, code executing at ring 2, 1 and 0 can call the interrupt. However, code executing at ring 3 will cause a GPF when they try to call that interrupt.
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]
Post Reply