Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 21 Apr 2003 10:48:07 +0300
From:      Maxim Mazurok <maxim@km.ua>
To:        freebsd-alpha@freebsd.org
Subject:   problem width Timecounter on 164SX
Message-ID:  <20030421074807.GR73971@km.ua>

next in thread | raw e-mail | index | archive | help
I have Digital AlphaPC 164SX 533 MHz, 531MHz

root@aleph:~#uname -a
FreeBSD aleph.km.ua 4.8-STABLE FreeBSD 4.8-STABLE #7: Sun Apr 20 02:49:52 EEST 2003     root@aleph.km.ua:/var/opt/src/sys/compile/ALEPH  alpha
root@aleph:~#dmesg| grep Timecounter
Timecounter "alpha"  frequency 401966368 Hz
Timecounter "alpha"  frequency 531914893 Hz
Timecounter "alpha"  frequency 390684192 Hz
Timecounter "alpha"  frequency 531914893 Hz

it's 4 boot of kernel
1 and 3 - original code (system clock is wrong)
2 and 4 - patched kernel by me:

root@aleph:/sys/alpha/alpha#diff -u clock.c~ clock.c
--- clock.c~    Mon Dec 17 16:03:15 2001
+++ clock.c     Sun Apr 20 02:48:30 2003
@@ -141,7 +141,7 @@
        if (clockdev)
                panic("clockattach: multiple clocks");
        clockdev = dev;
-       cycles_per_sec = calibrate_clocks(cycles_per_sec);
+/*     cycles_per_sec = calibrate_clocks(cycles_per_sec); */
 #ifdef EVCNT_COUNTERS
        evcnt_attach(dev, "intr", &clock_intr_evcnt);
 #endif

calibrate_clocks is broken?

P.S. sorry for my bad english.

-- 
Maxim Mazurok  (MMP2-RIPE)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030421074807.GR73971>