From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stas Sergeev Subject: Re: dosemu 1.1.x and 1.1.4.13 bug (?) on CPUs faster than 2.0GHz Date: Wed, 12 Mar 2003 23:40:41 +0300 Sender: linux-msdos-owner@vger.kernel.org Message-ID: <3E6F9B49.1090601@yahoo.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------060007000805090804000508" Return-path: List-Id: To: linux-msdos@vger.kernel.org This is a multi-part message in MIME format. --------------060007000805090804000508 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Hello. Bart Oldeman wrote: > it's a multiplication that overflows from an int -- try this patch: The attached one might also be necessary to get the correct output. --------------060007000805090804000508 Content-Type: text/plain; name="cpuspd.diff" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="cpuspd.diff" --- src/base/init/config.c Wed Feb 19 16:17:30 2003 +++ src/base/init/config.c Wed Mar 12 22:09:27 2003 @@ -493,7 +493,7 @@ /* speed division factor to get 838ns from CPU clock */ config.cpu_tick_spd = (LLF_TICKS*1000000)/chz; - warn ("Linux kernel %d.%d.%d; CPU speed is %Ld Hz\n", + warn ("Linux kernel %d.%d.%d; CPU speed is %lld Hz\n", kernel_version_code >> 16, (kernel_version_code >> 8) & 255, kernel_version_code & 255,chz); /* fprintf (stderr,"CPU speed factors %ld,%ld\n", --------------060007000805090804000508--