Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-1-6]: src/sys/arch/sparc64/dev Pull up revision 1.59 (requested b...



details:   https://anonhg.NetBSD.org/src/rev/067adac17427
branches:  netbsd-1-6
changeset: 529639:067adac17427
user:      he <he%NetBSD.org@localhost>
date:      Sun Dec 01 22:18:03 2002 +0000

description:
Pull up revision 1.59 (requested by martin in ticket #874):
  Fix broken timeval comparison.  Fixes PR#18453.

diffstat:

 sys/arch/sparc64/dev/iommu.c |  5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diffs (19 lines):

diff -r e19f466ea409 -r 067adac17427 sys/arch/sparc64/dev/iommu.c
--- a/sys/arch/sparc64/dev/iommu.c      Sun Dec 01 22:02:58 2002 +0000
+++ b/sys/arch/sparc64/dev/iommu.c      Sun Dec 01 22:18:03 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: iommu.c,v 1.51.4.5 2002/11/08 09:24:57 tron Exp $      */
+/*     $NetBSD: iommu.c,v 1.51.4.6 2002/12/01 22:18:03 he Exp $        */
 
 /*
  * Copyright (c) 2001, 2002 Eduardo Horvath
@@ -393,8 +393,7 @@
 
        /* Bypass non-coherent D$ */
        while ((!ldxa(sb->sb_flushpa, ASI_PHYS_CACHED)) &&
-               ((cur.tv_sec <= flushtimeout.tv_sec) &&
-                       (cur.tv_usec <= flushtimeout.tv_usec)))
+               timercmp(&cur, &flushtimeout, <=))
                microtime(&cur);
 
 #ifdef DIAGNOSTIC



Home | Main Index | Thread Index | Old Index