Bart Oldeman <[EMAIL PROTECTED]> wrote:
> On 5 Feb 2002, Carl D. Blake wrote:
>> I'm having a problem running dosemu V1.0.2.1 on a new Woody debian
>> install. When I execute dosemu I get the message about type ENTER to
>> start DOSEMU or <Ctrl>C to cancel. When I type the enter key I get a
>> floating point exception error. If I run dosemu.bin directly, it
>> immediately returns Floating point exception. I'm using this with
>> freedos. Does anybody have any suggestions?
> Try to report it to Debian first. There is a program called "reportbug" to
> do that. If they cannot reproduce and fix it then they should report it to
> us ("upstream").
We've had a look and it turns out that dosemu dosen't check whether
cpu MHz is zero or not before using it as a divisor. Here is a patch.
--
Debian GNU/Linux 2.2 is out! ( http://www.debian.org/ )
Email: Herbert Xu ~{PmV>HI~} <[EMAIL PROTECTED]>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
--
Index: src/base/init/config.c
===================================================================
RCS file: /home/gondolin/herbert/src/CVS/debian/dosemu/src/base/init/config.c,v
retrieving revision 1.9
diff -u -r1.9 config.c
--- src/base/init/config.c 12 Oct 2001 23:32:36 -0000 1.9
+++ src/base/init/config.c 9 Feb 2002 23:22:38 -0000
@@ -125,7 +125,7 @@
if ((kernel_version_code > 0x20100+126)
&& (cpuflags = get_proc_string_by_key("cpu MHz"))) {
int di,df;
- if (sscanf(cpuflags,"%d.%d",&di,&df)==2) {
+ if (sscanf(cpuflags,"%d.%d",&di,&df)==2 && (di || df)) {
/* speed division factor to get 1us from CPU clocks - for
* details on fast division see timers.h */
long long chz = 0; /* strange gcc warning */
-
To unsubscribe from this list: send the line "unsubscribe linux-msdos" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at http://vger.kernel.org/majordomo-info.html