From: Norman Schmidt Jr <norman@norman.com.br>
To: linux-msdos@vger.kernel.org
Subject: Re: dosemu 1.1.x and 1.1.4.13 bug (?) on CPUs faster than 2.0GHz
Date: Thu, 13 Mar 2003 12:21:25 -0300 [thread overview]
Message-ID: <3E70A1F5.1040607@norman.com.br> (raw)
In-Reply-To: 3E7069D7.CDAFE36A@libero.it
Maurilio, were you using freedos with dosemu before you switched to
1.1.4.13 and your clipper apps were printing? In freedos? I never could
put clipper printing (neither serial nor parallel) to work with
freedos+dosemu, but I started to use dosemu with 1.1.4, and never tried
any previous versions. Did the old versions of dosemu print from clipper
apps using freedos? The only way I could put clipper apps to print using
dosemu was using ms-dos or dr-dos...
Norman
Maurilio Longo escreveu:
>Ok, with this patch it works ok :)
>
>So I've switched to 1.1.4.13, but now my clipper program is not able to print to a serial
>printer anymore :( even if a
>
>dir > com1:
>
>from dos prompt works ok, but my program uses a third party library to communicate with
>serial devices
>
>I fear it has to do with latest changes to serial code... I'll try to dig a little more,
>but I'm not familiar with dosemu code and linux programming in general...
>
>regards.
>
>
>
>Bart Oldeman ha scritto:
>
>
>
>>On Wed, 12 Mar 2003, Maurilio Longo wrote:
>>
>>
>>
>>>I fear that cpu speed is inside a long int and this shoud explain why it happens, I'd
>>>
>>>like to know from someone who writes dosemu if this is true and how they plan to fix
>>>this.
>>>
>>>
>>it's a multiplication that overflows from an int -- try this patch:
>>
>>--- dosemu-1.1.4.13/src/base/init/config.c Sat Feb 15 14:49:31 2003
>>+++ dosemu-1.1.4.14/src/base/init/config.c Wed Mar 12 14:38:28 2003
>>@@ -484,7 +484,7 @@
>> cdd[6]=0; sscanf(cdd,"%d",&df);
>> /* speed division factor to get 1us from CPU clocks - for
>> * details on fast division see timers.h */
>>- chz = (di * 1000000) + df;
>>+ chz = (di * 1000000LL) + df;
>>
>> /* speed division factor to get 1us from CPU clock */
>> config.cpu_spd = (LLF_US*1000000)/chz;
>>
>>
>
>--
> __________
>| | | |__| md2520@mclink.it
>|_|_|_|____| Team OS/2 Italia
>
>
>-
>To unsubscribe from this list: send the line "unsubscribe linux-msdos" in
>the body of a message to majordomo@vger.kernel.org
>More majordomo info at http://vger.kernel.org/majordomo-info.html
>
>
>
>
next prev parent reply other threads:[~2003-03-13 15:21 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-03-11 18:05 dosemu 1.1.x and 1.1.4.13 bug (?) on CPUs faster than 2.0GHz Maurilio Longo
2003-03-12 13:45 ` Maurilio Longo
2003-03-12 17:03 ` Ryan Underwood
2003-03-12 17:35 ` Maurilio Longo
2003-03-12 19:39 ` Bart Oldeman
2003-03-13 11:21 ` Maurilio Longo
2003-03-13 15:21 ` Norman Schmidt Jr [this message]
2003-03-13 16:57 ` Maurilio Longo
2003-03-13 17:06 ` Maurilio Longo
-- strict thread matches above, loose matches on Subject: below --
2003-03-12 20:40 Stas Sergeev
2003-03-12 22:13 ` Bart Oldeman
2003-03-13 17:54 Stas Sergeev
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3E70A1F5.1040607@norman.com.br \
--to=norman@norman.com.br \
--cc=linux-msdos@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox