From 2a2bde915fcee6bdcd7861d4ac04feb821efbab2 Mon Sep 17 00:00:00 2001 From: mycroft Date: Tue, 15 Jun 1993 20:54:06 +0000 Subject: [PATCH] Need to check soft interrupts as well as ICU for overflow. --- sys/arch/i386/i386/microtime.s | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/arch/i386/i386/microtime.s b/sys/arch/i386/i386/microtime.s index 41949487a3db..ed0d10b1ef31 100644 --- a/sys/arch/i386/i386/microtime.s +++ b/sys/arch/i386/i386/microtime.s @@ -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