Need to check soft interrupts as well as ICU for overflow.

This commit is contained in:
mycroft 1993-06-15 20:54:06 +00:00
parent 930a773dce
commit 2a2bde915f
1 changed files with 2 additions and 1 deletions

View File

@ -30,7 +30,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $Id: microtime.s,v 1.2 1993/05/22 07:59:54 cgd Exp $
* $Id: microtime.s,v 1.3 1993/06/15 20:54:06 mycroft Exp $
*/
#include "asm.h"
@ -102,6 +102,7 @@ ENTRY(microtime)
outb %al,$IO_ICU1
inb $IO_ICU1,%al # read IRR in ICU
orb _ipending,%al # and soft intr reg
testb $1,%al # is a timer interrupt pending?
je 1f
addl $-11932,%ebx # yes, subtract one clock period