发明名称 Apparatus and method for managing interrupt delay on floating point error
摘要 A method and apparatus for handling interrupts after transition of a mask flag is provided. In x86 processors, if the IF flag is set, interrupts are to be handled. However, if the IF flag transitions from a clear state to a set state, and the instruction which sets the IF bit is an STI instruction, then a pending interrupt is to be delayed for one instruction, unless the following instruction is a floating point instruction, and then the interrupt is to be handled immediately. The invention allows an interrupt to cause a branch to an exception handler if the IF bit is set. The exception handler determines whether the prior instruction was an STI instruction, and whether the prior state of the IF bit was clear. If both these conditions are true, the exception handler branches back to the main program. If either condition is not true, the exception handler branches to an interrupt service routine. If the instruction following STI is a floating point instruction, a floating point error condition causes program flow to branches to a floating point exception handler which clears the error flag and handles the interrupt if the prior instruction was STI.
申请公布号 US5887175(A) 申请公布日期 1999.03.23
申请号 US19970800612 申请日期 1997.02.14
申请人 INTEGRATED DEVICE TECHNOLOGY, INC. 发明人 COL, GERARD;HENRY, G. GLENN
分类号 G06F9/48;(IPC1-7):G06F9/46 主分类号 G06F9/48
代理机构 代理人
主权项
地址