From owner-freebsd-current Wed Mar 27 2:46:38 2002 Delivered-To: freebsd-current@freebsd.org Received: from kylebutt.dorms.usu.edu (kylebutt.dorms.usu.edu [129.123.231.119]) by hub.freebsd.org (Postfix) with ESMTP id 04B6937B41C for ; Wed, 27 Mar 2002 02:46:29 -0800 (PST) Received: from kylebutt.dorms.usu.edu (e5d89ef5384c3443198edc3c72b8e7c6@localhost [127.0.0.1]) by kylebutt.dorms.usu.edu (8.12.2/8.12.2) with ESMTP id g2RKICBU041416; Wed, 27 Mar 2002 13:18:12 -0700 (MST) (envelope-from kylebutt@myrealbox.com) Date: Wed, 27 Mar 2002 13:18:12 -0700 Message-ID: <87wuvxu5mj.wl@kylebutt.dorms.usu.edu> From: Kyle Butt To: Poul-Henning Kamp Cc: Kyle Butt , Dag-Erling Smorgrav , freebsd-current@FreeBSD.ORG Subject: Re: Superfast clock on current. In-Reply-To: <23804.1017222555@critter.freebsd.dk> References: <871ye5vqkz.wl@kylebutt.dorms.usu.edu> <23804.1017222555@critter.freebsd.dk> User-Agent: Wanderlust/2.8.1 (Something) SEMI/1.14.3 (Ushinoya) FLIM/1.14.3 (=?ISO-8859-4?Q?Unebigory=F2mae?=) APEL/10.3 Emacs/21.1 (i386--freebsd) MULE/5.0 (SAKAKI) MIME-Version: 1.0 (generated by SEMI 1.14.3 - "Ushinoya") Content-Type: text/plain; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG At Wed, 27 Mar 2002 10:49:15 +0100, Poul-Henning Kamp wrote: > > > Uhm, I just whacked the code into my editor, you may need > more #includes like or Thanks. That did the trick. Now how do I go about finding that port? Is that something I can glean from the dmesg, or do I have to look somewhere else for that? > > In message <871ye5vqkz.wl@kylebutt.dorms.usu.edu>, Kyle Butt writes: > >At Wed, 27 Mar 2002 08:42:49 +0100, > > > >bash-2.04$ gcc -o apci apci.c > >In file included from apci.c:2: > >/usr/include/machine/cpufunc.h:72: syntax error before `bsfl' > >/usr/include/machine/cpufunc.h:72: syntax error before `mask' > >/usr/include/machine/cpufunc.h: In function `bsfl': > >/usr/include/machine/cpufunc.h:74: syntax error before `result' > >... > > > >I looked, apparently it doesn't like u_int. I don't know why. > > > >Poul-Henning Kamp wrote: > >> > >> In message , Dag-Erling Smorgrav writes: > >> >Kyle Butt writes: > >> >> My system clock is running twice as fast as it should be, > >> >> but it doesn't affect timing functions. Ex: > >> >> [...] > >> >> Has anyone else experienced this problem? > >> > > >> >I'm seeing the exact same problem on, guess what... > >> > >> Can I get one of you to collect a hund-thousand samples of the ACPI > >> timer for me ? > >> > >> You need to find the exact I/O port it lives on, and then run > >> the following program and send me the uuencoded stdout ? > >> > >> #include > >> #include > >> > >> #define PORT 0x1008 > >> #define N 100000 > >> uint32_t h[N]; > >> > >> main() > >> { > >> FILE *f; > >> > >> f = fopen("/dev/io", "r"); > >> > >> memset(h, 0, sizeof h); > >> insl(PORT, h, N); > >> write (1, h, sizeof h); > >> } > >> > >> > >> > >> -- > >> Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 > >> phk@FreeBSD.ORG | TCP/IP since RFC 956 > >> FreeBSD committer | BSD since 4.3-tahoe > >> Never attribute to malice what can adequately be explained by incompetence. > >> > > > > -- > Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 > phk@FreeBSD.ORG | TCP/IP since RFC 956 > FreeBSD committer | BSD since 4.3-tahoe > Never attribute to malice what can adequately be explained by incompetence. > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message