Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/arm32/iomd Don't try and calculate the time in micr...
details: https://anonhg.NetBSD.org/src/rev/a8f2e6a38ecc
branches: trunk
changeset: 472077:a8f2e6a38ecc
user: mark <mark%NetBSD.org@localhost>
date: Tue Apr 20 09:14:32 1999 +0000
description:
Don't try and calculate the time in microtime() unless cpu_initclocks()
has already been called and thus we know the values the timers are using.
This also ensures that clock_sc will always be valid when we try and use
it to read the timer registers.
Fixes PR7357.
diffstat:
sys/arch/arm32/iomd/iomd_clock.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diffs (19 lines):
diff -r 231149a339d3 -r a8f2e6a38ecc sys/arch/arm32/iomd/iomd_clock.c
--- a/sys/arch/arm32/iomd/iomd_clock.c Tue Apr 20 08:05:51 1999 +0000
+++ b/sys/arch/arm32/iomd/iomd_clock.c Tue Apr 20 09:14:32 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: iomd_clock.c,v 1.18 1998/06/02 21:57:58 mark Exp $ */
+/* $NetBSD: iomd_clock.c,v 1.19 1999/04/20 09:14:32 mark Exp $ */
/*
* Copyright (c) 1994-1997 Mark Brinicombe.
@@ -262,6 +262,9 @@
int deltatm;
static struct timeval oldtv;
+ if (timer0_count == 0)
+ return;
+
s = splhigh();
/*
Home |
Main Index |
Thread Index |
Old Index