Home |
RTTarget-32 Programming Manual Function RTSetTrapVector Function RTInstallSharedIRQHandlerEx Function RTInstallSharedIRQHandler Function RTRemoveSharedIRQHandlerEx Function RTRemoveSharedIRQHandler Function RTSaveAndDisableInterrupts System Management BIOS (SMBIOS) Advanced Programmable Interrupt Controller (APIC) |
Function RTSetTrapVectorThis function is similar to RTSetIntVector. However, the handler is installed as a trap gate and not as an interrupt gate. The handler will be entered without changing the interrupt flag in the flags register. void RTSetTrapVector(BYTE Vector, RTIntHandler Handler); ParametersVectorThe interrupt to be processed by Handler. HandlerPointer to a routine that will be invoked when the specified interrupt occurs. Please note that hardware interrupts are mapped to interrupt vectors 40h to 5Fh under RTTarget-32. The address of the specified handler is directly placed in the IDT. The handler must be terminated with an IRETD instruction and must save/restore all registers it uses. See The i386 Microprocessor, Descriptors and Descriptor Tables for an overview of all interrupt vectors. No IRQs are enabled at the interrupt controller by this function. For application level hardware interrupt handling, function RTInstallSharedIRQHandlerEx is recommended instead of this function.
|