How to set address of the interrupt handler
Posted: Sat Aug 09, 2003 11:00 pm
hello all,
i'm developing out a 32-bit OS. i have installed a gdt. while installing an idt, i'm confused in giving the address of the interrupt handler to the interrupt descriptor. the structure for the descriptor is given below:
--------------------------------------------------------------------
idt_0: |
|
offset0_15 dw 0 ; low word of handler offset |
selector0_15 dw 08h ; segment selector |
zero_byte db 0 ; unused in this descriptor format |
iflags db 8eh ; flag-byte |
offset16_31 dw 0 ; high word of handler offset |
|
idt_end: |
--------------------------------------------------------------------
Assume that the interrupt 0 is a restart interrupt.
----------------------------------
int_0_handler: |
jmp 0xFFFF:0x0000 |
----------------------------------
My question is how to give the address of the int_0_handler to the int_0 ?
Thanks in advance
i'm developing out a 32-bit OS. i have installed a gdt. while installing an idt, i'm confused in giving the address of the interrupt handler to the interrupt descriptor. the structure for the descriptor is given below:
--------------------------------------------------------------------
idt_0: |
|
offset0_15 dw 0 ; low word of handler offset |
selector0_15 dw 08h ; segment selector |
zero_byte db 0 ; unused in this descriptor format |
iflags db 8eh ; flag-byte |
offset16_31 dw 0 ; high word of handler offset |
|
idt_end: |
--------------------------------------------------------------------
Assume that the interrupt 0 is a restart interrupt.
----------------------------------
int_0_handler: |
jmp 0xFFFF:0x0000 |
----------------------------------
My question is how to give the address of the int_0_handler to the int_0 ?
Thanks in advance