GDT interrupt gates
Posted: Tue Apr 27, 2004 11:00 pm
Hello:
I incude a service hook_interrupt() into my OS, this service create an 'interrupt gate' into the GDT and fill it with the necesary information to handle some hardware interrupt. I provide this service to allow device drivers programmers to include an ISR into the device driver code.
The service works fine, but I have problem when I want to access data into the device driver code. It seems that the DS register is not loaded with the specify in the 'interrupt gate' then I can't access data into the device driver code.
Any idea?
Thank you,
pepito
I incude a service hook_interrupt() into my OS, this service create an 'interrupt gate' into the GDT and fill it with the necesary information to handle some hardware interrupt. I provide this service to allow device drivers programmers to include an ISR into the device driver code.
The service works fine, but I have problem when I want to access data into the device driver code. It seems that the DS register is not loaded with the specify in the 'interrupt gate' then I can't access data into the device driver code.
Any idea?
Thank you,
pepito