Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev Take just the low-order 32 bits of cpu_counter() here.
details: https://anonhg.NetBSD.org/src/rev/f03e7b6d5802
branches: trunk
changeset: 494140:f03e7b6d5802
user: sommerfeld <sommerfeld%NetBSD.org@localhost>
date: Sun Jul 02 21:04:33 2000 +0000
description:
Take just the low-order 32 bits of cpu_counter() here.
diffstat:
sys/dev/rnd.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (18 lines):
diff -r 7bc6dd78e554 -r f03e7b6d5802 sys/dev/rnd.c
--- a/sys/dev/rnd.c Sun Jul 02 20:59:58 2000 +0000
+++ b/sys/dev/rnd.c Sun Jul 02 21:04:33 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: rnd.c,v 1.20 2000/06/06 01:33:15 sommerfeld Exp $ */
+/* $NetBSD: rnd.c,v 1.21 2000/07/02 21:04:33 sommerfeld Exp $ */
/*-
* Copyright (c) 1997 The NetBSD Foundation, Inc.
@@ -178,7 +178,7 @@
#ifdef __HAVE_CPU_COUNTER
if (cpu_hascounter())
- return cpu_counter();
+ return (cpu_counter() & 0xffffffff);
#endif
microtime(&tv);
Home |
Main Index |
Thread Index |
Old Index