I believe ISR for int 0-10h is installed by bios?AJ wrote:The gist of it is - the ISR is installed by the operating system. You will need to use your IRQ 0x01 handler. In real mode, it may well be Int 0x09.
Cheers,
Adam
Hook ctrl+alt+del
the IVT is indeed installed by the bios, but is useless once you move to 32 bit mode.Pitchu wrote:I believe ISR for int 0-10h is installed by bios?AJ wrote:The gist of it is - the ISR is installed by the operating system. You will need to use your IRQ 0x01 handler. In real mode, it may well be Int 0x09.
Cheers,
Adam
Yeah exactly
Please Dont take my words otherwise, what i wanna know is that i believe that the jmp instruction to reboot is also loaded/placed in memory by bios which gets executed once sombody presses ctrl+alt+del.
If I am correct then this instruction will be a part of some ISR that is invoked by atleast a single key press....I believe ISR for keyboard.
Now to do something else for that event(i.e. ctrl+alt+del) i think i should hook keyboard ISR.
Please Dont take my words otherwise, what i wanna know is that i believe that the jmp instruction to reboot is also loaded/placed in memory by bios which gets executed once sombody presses ctrl+alt+del.
If I am correct then this instruction will be a part of some ISR that is invoked by atleast a single key press....I believe ISR for keyboard.
Now to do something else for that event(i.e. ctrl+alt+del) i think i should hook keyboard ISR.
Well I dont think what I was chatting was rubish as i wasnt able to get the clear working of ctrl+alt+del key combination rebooting the system.
I knew that i can alter its working but was confused where to put that code that will pop-up a box like other OSes do.
Still, If you people think I was doing this for fun then U people are wrong.
Well, I shouldnt mention but I cant live with that, this isnt still clear and I need not to get clear it for insults.
I knew that i can alter its working but was confused where to put that code that will pop-up a box like other OSes do.
Still, If you people think I was doing this for fun then U people are wrong.
Well, I shouldnt mention but I cant live with that, this isnt still clear and I need not to get clear it for insults.
Hi,
If you have read the Intel Manuals and have read up information from the wiki, the replies you have had should make this perfectly clear. We can give you pointers in the right direction, but can't give you the full background knowlege required or implement the solution for you.
You need to know how the IVT works (RMode) or how the IDT works (PMode) and be able to create handlers based on this.
Cheers,
Adam
If you have read the Intel Manuals and have read up information from the wiki, the replies you have had should make this perfectly clear. We can give you pointers in the right direction, but can't give you the full background knowlege required or implement the solution for you.
You need to know how the IVT works (RMode) or how the IDT works (PMode) and be able to create handlers based on this.
Cheers,
Adam
OK!
Considering the Real Mode of Intel Processor I believe:
1. Int 09H ISR checks for the key combination of Ctrl+Alt+Del and reboots it my making a far jmp.
2. Hooking this Int 09H will mean installing a KeyBoard driver there.
Consider the PMode :
1. I need to Remap the PIC.
2. Hook the int Corresponding to IRQ 01 and install keyboard driver there.
Hope this time I am correct
Considering the Real Mode of Intel Processor I believe:
1. Int 09H ISR checks for the key combination of Ctrl+Alt+Del and reboots it my making a far jmp.
2. Hooking this Int 09H will mean installing a KeyBoard driver there.
Consider the PMode :
1. I need to Remap the PIC.
2. Hook the int Corresponding to IRQ 01 and install keyboard driver there.
Hope this time I am correct
Hello,
To add to your list of things needed to hook up a keyboard driver in PMode, my list is:
1) Remap the PIC (Because otherwise the IRQ 1 is Interrupt 9, and as you may know Ints 0-31 are reserved to service exceptions)
2) Set up your GDT (Or get your bootloader to do this if you are using your own, otherwise do it in your kernel)
3) Set up the IDT (This is important. You will also need to create entries for the first 32 exceptions and the 16 IRQs. Maybe make one for system calls)
4) NOW you can hook up a handler to IRQ 1.
[ The entire list is covered in Bran's Kernel Development Tutorial on http://www.osdever.net/ ]
To add to your list of things needed to hook up a keyboard driver in PMode, my list is:
1) Remap the PIC (Because otherwise the IRQ 1 is Interrupt 9, and as you may know Ints 0-31 are reserved to service exceptions)
2) Set up your GDT (Or get your bootloader to do this if you are using your own, otherwise do it in your kernel)
3) Set up the IDT (This is important. You will also need to create entries for the first 32 exceptions and the 16 IRQs. Maybe make one for system calls)
4) NOW you can hook up a handler to IRQ 1.
[ The entire list is covered in Bran's Kernel Development Tutorial on http://www.osdever.net/ ]
- zaleschiemilgabriel
- Member
- Posts: 232
- Joined: Mon Feb 04, 2008 3:58 am