Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/x68k/x68k With the freerunnnig mode, set 0 (=256cou...
details: https://anonhg.NetBSD.org/src/rev/64c8ab1121bc
branches: trunk
changeset: 779353:64c8ab1121bc
user: isaki <isaki%NetBSD.org@localhost>
date: Tue May 22 04:03:03 2012 +0000
description:
With the freerunnnig mode, set 0 (=256count) not 0xff (=255count)
in Timer-D. It fixes the clock ticked faster when timecounter uses
"mfp" (as default choice). It was introduced in rev 1.24 in 2006.
Thanks tsutsui@ for many comments.
Should be pulled up to netbsd-6 and netbsd-5.
diffstat:
sys/arch/x68k/x68k/clock.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 25baeab10ec2 -r 64c8ab1121bc sys/arch/x68k/x68k/clock.c
--- a/sys/arch/x68k/x68k/clock.c Tue May 22 02:40:05 2012 +0000
+++ b/sys/arch/x68k/x68k/clock.c Tue May 22 04:03:03 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: clock.c,v 1.33 2011/02/08 20:20:26 rmind Exp $ */
+/* $NetBSD: clock.c,v 1.34 2012/05/22 04:03:03 isaki Exp $ */
/*
* Copyright (c) 1988 University of Utah.
@@ -39,7 +39,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: clock.c,v 1.33 2011/02/08 20:20:26 rmind Exp $");
+__KERNEL_RCSID(0, "$NetBSD: clock.c,v 1.34 2012/05/22 04:03:03 isaki Exp $");
#include "clock.h"
@@ -143,7 +143,7 @@
mfp_set_tcdr(CLOCKS_PER_SEC / hz);
mfp_bit_set_ierb(MFP_INTR_TIMER_C);
- mfp_set_tddr(0xff); /* maximum free run -- only 8 bits wide */
+ mfp_set_tddr(0); /* maximum free run -- only 8 bits wide */
mfp_set_tcdcr(mfp_get_tcdcr() | 0x07); /* 1/200 prescaler */
tc_init(&tc);
Home |
Main Index |
Thread Index |
Old Index