From owner-freebsd-alpha@FreeBSD.ORG Mon Apr 21 00:55:15 2003 Return-Path: Delivered-To: freebsd-alpha@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3E90C37B401 for ; Mon, 21 Apr 2003 00:55:15 -0700 (PDT) Received: from geddar.km.ua (geddar.km.ua [62.149.0.130]) by mx1.FreeBSD.org (Postfix) with ESMTP id 18C1943FDF for ; Mon, 21 Apr 2003 00:55:13 -0700 (PDT) (envelope-from maxim@geddar.km.ua) Received: from geddar.km.ua (localhost [127.0.0.1]) by geddar.km.ua (8.12.9/8.12.9) with ESMTP id h3L7m8U8020028 for ; Mon, 21 Apr 2003 10:48:08 +0300 (EEST) (envelope-from maxim@geddar.km.ua) Received: (from maxim@localhost) by geddar.km.ua (8.12.9/8.12.9/Submit) id h3L7m7nn020027 for freebsd-alpha@freebsd.org; Mon, 21 Apr 2003 10:48:07 +0300 (EEST) Date: Mon, 21 Apr 2003 10:48:07 +0300 From: Maxim Mazurok To: freebsd-alpha@freebsd.org Message-ID: <20030421074807.GR73971@km.ua> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.3i Subject: problem width Timecounter on 164SX X-BeenThere: freebsd-alpha@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting FreeBSD to the Alpha List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 Apr 2003 07:55:15 -0000 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)