Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-6]: src/sys/arch/x68k/x68k Pull up revision 1.34 (requested by is...
details: https://anonhg.NetBSD.org/src/rev/e6088535adde
branches: netbsd-6
changeset: 774155:e6088535adde
user: jdc <jdc%NetBSD.org@localhost>
date: Tue Jun 05 15:35:41 2012 +0000
description:
Pull up revision 1.34 (requested by isaki in ticket #281).
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 e66bd3fbd7e3 -r e6088535adde sys/arch/x68k/x68k/clock.c
--- a/sys/arch/x68k/x68k/clock.c Sun Jun 03 21:45:49 2012 +0000
+++ b/sys/arch/x68k/x68k/clock.c Tue Jun 05 15:35:41 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.33.10.1 2012/06/05 15:35:41 jdc 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.33.10.1 2012/06/05 15:35:41 jdc 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