Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/sbmips/sbmips Fix off-by-one error in delay(). Fix...
details: https://anonhg.NetBSD.org/src/rev/952dbce31a90
branches: trunk
changeset: 526398:952dbce31a90
user: simonb <simonb%NetBSD.org@localhost>
date: Fri May 03 03:36:51 2002 +0000
description:
Fix off-by-one error in delay(). Fix from Charles Hannum in ARM code,
pointed out by Rafal Boni.
diffstat:
sys/arch/sbmips/sbmips/systemsw.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (18 lines):
diff -r 333b47fabf5b -r 952dbce31a90 sys/arch/sbmips/sbmips/systemsw.c
--- a/sys/arch/sbmips/sbmips/systemsw.c Fri May 03 03:32:54 2002 +0000
+++ b/sys/arch/sbmips/sbmips/systemsw.c Fri May 03 03:36:51 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: systemsw.c,v 1.3 2002/03/06 07:47:57 simonb Exp $ */
+/* $NetBSD: systemsw.c,v 1.4 2002/05/03 03:36:51 simonb Exp $ */
/*
* Copyright 2000, 2001
@@ -133,7 +133,7 @@
u_long i;
long divisor = curcpu()->ci_divisor_delay;
- while (--n > 0)
+ while (n-- > 0)
for (i = divisor; i > 0; i--)
;
}
Home |
Main Index |
Thread Index |
Old Index