[Freedos-kernel] new_psp()

2004-06-27 Thread Arkady V.Belousov
Hi! Well, I made additional test how MS-DOS performs INT21/26 (which fields fills). I fill 100h bytes by AAh, point to this are by CS and perform INT21/26. Result: __O\_/_\_/O__ 00 CD 20 AA AA AA 9A F0 FE-1D F0 4F 03 F8 08 AC 13 10 F8

[Freedos-kernel] kernel progress

2004-06-27 Thread Arkady V.Belousov
Hi! config.c - fix: sysVersion(): VERSION= now works properly by setting version for INT21/30, not for INT21/3306. - config now parsed in 5 passes: SWITCHES=/F/N and MENUCOLOR/MENUDEFAULT parsed before menu, INSTALL/SET after DEVICE (in MS-DOS6 all SET processed before INSTALL, but this now

[Freedos-kernel] Re: [Freedos-devel] space in environment

2004-06-26 Thread Arkady V.Belousov
Hi! 26-Июн-2004 20:35 [EMAIL PROTECTED] (FreeCOM) wrote to [EMAIL PROTECTED]: >> Ie. applications always get reduced (to size of contents) envrionment >> memory block (notwithstanding /E, which affect only command.com' memory)? F> Hmm, Arkady, you fixed yourself a bug (or at least complained

[Freedos-kernel] patch: entry.asm, int2f.asm

2004-06-26 Thread Arkady V.Belousov
Hi! entry.asm - fix: was used signed comparision instead unsigned. int2f.asm - fixed wrong comment. --- Begin Message --- diff -ruNp old/kernel/entry.asm new/kernel/entry.asm --- old/kernel/entry.asm2004-05-30 12:31:14.0 + +++ new/kernel/entry.asm2004-06-26 15:22:06.00

Re: [Freedos-kernel] VERSION= behavior

2004-06-25 Thread Arkady V.Belousov
Hi! 25-Июн-2004 20:07 [EMAIL PROTECTED] (tom ehlert) wrote to "Arkady V.Belousov" <[EMAIL PROTECTED]>: >> BTW, Eric says, that RBIL describes INT2F/122F functions, which (also) >> sets returned DOS version. te> INT 2F U - DOS 4.x internal - SET DOS VERSIO

Re: [Freedos-kernel] VERSION= issue

2004-06-25 Thread Arkady V.Belousov
Hi! 25-Июн-2004 20:15 [EMAIL PROTECTED] (tom ehlert) wrote to "Arkady V.Belousov" <[EMAIL PROTECTED]>: >> Eric Auer suggests, that VERSION= should change os_setver_m*, not >> os_m*. What you think? Is there is bug in current FD and Eric's suggestion >&g

Re: [Freedos-kernel] PATCH: inthndlr.c

2004-06-25 Thread Arkady V.Belousov
Hi! 25-Июн-2004 20:02 [EMAIL PROTECTED] (tom ehlert) wrote to Eduardo Casino <[EMAIL PROTECTED]>: >> + lrc = DosSeek(r.BX, (LONG)ULONG) (r.CX)) << 16) | r.DX), r.BP); >> + if (lrc == -1) >> +lrc = DE_INVLDHNDL; >> + else >> + { >> +r.DX = (UWORD)(lrc >> 16)

Re: [Freedos-kernel] PATCH: nls.c

2004-06-25 Thread Arkady V.Belousov
Hi! 25-Июн-2004 08:42 [EMAIL PROTECTED] (Steffen Kaiser) wrote to "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>: >> Trivial patch. Pass correct values for codepage and country from DOS-38 >> and DOS-65-XX functions to MUX-14 functions. SK> I would actually suggest the following function, as searchPacka

[Freedos-kernel] VERSION= behavior

2004-06-24 Thread Arkady V.Belousov
Hi! BTW, Eric says, that RBIL describes INT2F/122F functions, which (also) sets returned DOS version. Currently FD not implements this functio (says error for it on screen), but implements (similar) INT21/33FC. Should I _re_define INT21/33FC as INT2F/122F?

Re: [Freedos-kernel] VERSION= issue

2004-06-24 Thread Arkady V.Belousov
Hi! 24-Июн-2004 18:35 [EMAIL PROTECTED] (tom ehlert) wrote to "Arkady V.Belousov" <[EMAIL PROTECTED]>: >> MS-DEBUG doesn't runs from FD because "Incorrect DOS version". Setting >> required through VERSION= doesn't helps. Analyzing of inthndlr

[Freedos-kernel] VERSION= issue

2004-06-24 Thread Arkady V.Belousov
Hi! Eric Auer suggests, that VERSION= should change os_setver_m*, not os_m*. What you think? Is there is bug in current FD and Eric's suggestion is patch for this? --- This SF.Net email sponsored by Black Hat Briefings & Training. Attend

Re: [Freedos-kernel] CONFIG.C ANNOYANCE

2004-06-24 Thread Arkady V.Belousov
Hi! 24-Июн-2004 19:36 Arkady V.Belousov wrote to [EMAIL PROTECTED]: AVB> My near TODO is to: AVB> - detect redefinition of env variables (and replace definition). AVB> - add environment before each INSTALL=. BTW, forget to mention. Some years ago I report about BUG in ChildEnv

[Freedos-kernel] VERSION= issue

2004-06-24 Thread Arkady V.Belousov
Hi! MS-DEBUG doesn't runs from FD because "Incorrect DOS version". Setting required through VERSION= doesn't helps. Analyzing of inthndlr.c shows, that os_major and os_minor returned only through INT21/3306, for INT21/30 used os_setver_*. Is this bug (in config.c:sysVersion(), which not sets

Re: [Freedos-kernel] CONFIG.C ANNOYANCE

2004-06-24 Thread Arkady V.Belousov
Hi! 23-Июн-2004 20:13 [EMAIL PROTECTED] (tom ehlert) wrote to [EMAIL PROTECTED]: te> I'M HIGHLY DISAPPOINTED TO FIND THAT SOME FORMERLY te> WORKING CODE DOESN'T WORK ANYMORE; ?! All work, (now) I test code before reporting. te> I'M IN PARTICULAR DISAPPOINTED AS te> THIS CODE WAS ONLY CHANG

[Freedos-kernel] latest kernel

2004-06-22 Thread Arkady V.Belousov
Hi! New fixes fot config.c: - config now parsed in 5 passes: SWITCHES=/F/N and MENUCOLOR/MENUDEFAULT parsed before menu, INSTALL and SET after DEVICE. Lucho tests kernel with all my patches and says that he satisfied. Updated romd-bin.rar kernel package available on his site.

[Freedos-kernel] config.c

2004-06-21 Thread Arkady V.Belousov
Hi! More additions for config.c. Menu handling now smarter: - source: (Bernd) the codepage table rewritten into a smaller layout. - bugfix: (Bernd, Aitor) country ID for Spain set to 34 (instead 33). - fix: ClearScreen(): screen width at 0:44A is a word, not byte. - config now parsed in 4

[Freedos-kernel] config.c: progress

2004-06-21 Thread Arkady V.Belousov
Hi! I want just inform about progress so far with config.c. Below shown only noticeable changes/fixes, internal changes/optimizations (like using `enum' values for `UmbState') here not enumerated. Also, here I skip long list of umb_init() fixes, which affect low probable (but possible!) event

[Freedos-kernel] bug with segment A000 as UMB fixed!

2004-06-20 Thread Arkady V.Belousov
Hi! Wow, I fix the bug with destroyed MCB chain, if (Q/MS)EMM386 joins segment A000 to base memory. Result: SegmentSize Owner Type / source --- - - - 1.00k INT vectors table 0040 256BIOS data area

[Freedos-kernel] sys.c

2004-06-20 Thread Arkady V.Belousov
Hi! - small sys.c optimizations. --- Begin Message --- diff -ruNp old/boot/boot.asm new/boot/boot.asm --- old/boot/boot.asm 2004-01-25 16:40:18.0 + +++ new/boot/boot.asm 2004-06-20 10:07:36.0 + @@ -64,6 +64,7 @@ Entry: jmp short real_start ; bp is

Re: [Freedos-kernel] commit: floppy.asm

2004-06-19 Thread Arkady V.Belousov
Hi! 19-Июн-2004 15:41 [EMAIL PROTECTED] (Kenneth J. Davis) wrote to [EMAIL PROTECTED]: >> I may send you my edition of config.c (private, I suggest?), but it not KJD> please do Done. See archive with config.c, portab.h (from which used new macro) and makefiles (which also pass for comp

Re: [Freedos-kernel] commit: floppy.asm

2004-06-19 Thread Arkady V.Belousov
Hi! 18-Июн-2004 18:27 [EMAIL PROTECTED] (Kenneth J. Davis) wrote to [EMAIL PROTECTED]: >> KJD> provided I will work on the config processing. >> I not send any patch here. Reason: there too many changes - so, I >> should send one _big_ patch or send _many_ smaller patches. I fear, this is >>

[Freedos-kernel] EMM386, UMB at A000 and FreeDOS

2004-06-19 Thread Arkady V.Belousov
Hi! As I analyze, current FreeDOS should work incorrectly when I=A000-... for EMM386.EXE is used. Unfortunately, I can't test this with QEMM and MS-EMM - they append A000-... area to base memory (by adjusting "top memory" BIOS variable) and this forces broken chain in FreeDOS (as I predict th

Re: [Freedos-kernel] commit: floppy.asm

2004-06-18 Thread Arkady V.Belousov
Hi! 18-Июн-2004 03:12 [EMAIL PROTECTED] (Kenneth J. Davis) wrote to [EMAIL PROTECTED]: KJD> I have gone through Arkady's floppy patchset (is there a 5 of 5?). There was 4 of 5. Last patch I omit, because it was cosmetic. Ot the other side, you may get complete floppy.asm patch ("all in one"

[Freedos-kernel] config.c: umb

2004-06-18 Thread Arkady V.Belousov
Hi! Next portion of patches for config.c (in my local tree): - bugfix: umb_init(): there was no checks if size of captured block is less than 2 paragraphs. - bugfix: umb_init(): when joining adjacent blocks, umb_base_seg, umb_start and umb_max was not adjusted if they are equal to next j

[Freedos-kernel] bug in UMB support

2004-06-17 Thread Arkady V.Belousov
Hi! 2Michael Devore: Michael, try to initialize UMB blocks, returned to EMM386 caller (DOS in case of with DOS=UMB), by 'M' letter - after this FreeDOS should allocate UMB memory incorrectly (because prev_mcb() in umb_init() will walk after latest previously allocated block). (To be precise,

[Freedos-kernel] INSTALL=

2004-06-16 Thread Arkady V.Belousov
Hi! Currently config.c collects all INSTALL= commands at third pass DoConfig(2) (when DEVICE= statements processed) into global table and process collected statements through DoInstall(): FreeDOSmain() +- init_kernel() | +- PreConfig() | +- DoConfig(0) | +- DoConfig(1) | +- PreConfig2()

[Freedos-kernel] hexadecimal literals and unsignedness

2004-06-16 Thread Arkady V.Belousov
Hi! 2Bart: Bart, you misinform me. Hexadecimal literals are `unsigned' _only_ if `int' is not enough to present the value. Carefull reread of original (in English) book of Stroustrup confirms this (in Russian edition there is mistype). This issue is noted by Joergen Ibsen, for him this one ti

[Freedos-kernel] config.c

2004-06-16 Thread Arkady V.Belousov
Hi! Well, I currently work on config.c. I not finish it yet (for example, menuing code should be fixed), but below list of noticeable changes and fixes, which I already done: - fix: GetStringArg() was uses scan(), which skips some nonwhitspaces; instead it, introduced scanword() and scanpa

Re: [Freedos-kernel] [patch] #1758 - fix incorrect AskSingleLine function

2004-06-14 Thread Arkady V.Belousov
Hi! 13-Июн-2004 19:39 [EMAIL PROTECTED] (Bernd Blaauw) wrote to [EMAIL PROTECTED]: BB> Eric and I have been working a few hours on a patch to correct the BB> ask-user-to-execute-config.sys-line algorythm. BB> essentially (config.c, line 806 I think): BB>/* !device= never ask / device?= always

[Freedos-kernel] error #1789

2004-06-11 Thread Arkady V.Belousov
Hi! I send to Matija the kernel image, which printf() values, used to computing LBA_address, but: __O\_/_\_/O__ I've tested it, unfortunately it does not spit out more info: after listing PKZIP settings ("...DOS verify is off.") it sa

[Freedos-kernel] patch: dsk.c

2004-06-10 Thread Arkady V.Belousov
Hi! After all bugfixes and optimizations in previous letters kernel reduced: _DATA segment increased from 27e to 29e (32 bytes); CONST segment reduced from 336 to 30a (44 bytes); HMA_TEXT reduced from a365 to a266 (255 bytes). --- This

[Freedos-kernel] patch: dsk.c [10]

2004-06-10 Thread Arkady V.Belousov
Hi! LBA_Transfer cleanup and optimization: - many variables (like `ret') moved deeply (by adding curly braces) - for BC this noticeably decreases stack usage. - LBA_Transfer() now converts error code through dskerr() by itself; .ddt_offset field added to LBA_address also inside LBA_Transfer()

[Freedos-kernel] patch: dsk.c [9]

2004-06-10 Thread Arkady V.Belousov
Hi! blockio(): - small code cleanup and optimization. - many variables (like `ret') moved deeply (by adding curly braces) - for BC this noticeably decreases stack usage. --- Begin Message --- diff -ruNp old/kernel/dsk.c new/kernel/dsk.c --- old/kernel/dsk.c2004-06-11 04:24:14.0 +00

[Freedos-kernel] patch: dsk.c [8]

2004-06-10 Thread Arkady V.Belousov
Hi! Genblkdev(): - small code cleanup and optimization. - many variables (like `ret') moved deeply (by adding curly braces) - for BC this noticeably decreases stack usage. --- Begin Message --- diff -ruNp old/kernel/dsk.c new/kernel/dsk.c --- old/kernel/dsk.c2004-06-11 04:03:14.0 +0

[Freedos-kernel] patch: dsk.c [6]

2004-06-10 Thread Arkady V.Belousov
Hi! Optimization for getbpb(): - small source cleanup (expressions simplified, extraneous casts removed). - many variables (like `ret') moved deeply (by adding curly braces) - for BC this noticeably decreases stack usage. - getbpb(): removed extraneous stack variable; instead (x+y-1)/y for roun

[Freedos-kernel] patch: dsk.c [7]

2004-06-10 Thread Arkady V.Belousov
Hi! - bugfix: Genblkdev(): - formatting loop (0x42 function) rewritten: instead formating many tracks, was formated one track many times (because afentry.head++ outside loop); - now checked "afentry.track >= pddt->ddt_ncyl" (instead ">"); - now gbfv_spcfunbit cleared at ; - not fixed:

[Freedos-kernel] patch: dsk.c [3]

2004-06-10 Thread Arkady V.Belousov
Hi! - bugfix: blk_driver(): should be checked ">= NENTRY", not "> NENTRY". - blk_error() removed, consequent dispatch[] entries contains NULL and they checked by blk_driver() before calling getddt() and dispatch[] item. --- Begin Message --- diff -ruNp old/kernel/dsk.c new/kernel/dsk.c --- old/

[Freedos-kernel] patch: dsk.c [2]

2004-06-10 Thread Arkady V.Belousov
Hi! - removed remained excerpt from history.txt at the end. - removed all references to PROTO macro name. --- Begin Message --- diff -ruNp old/kernel/dsk.c new/kernel/dsk.c --- old/kernel/dsk.c2004-06-11 02:33:00.0 + +++ new/kernel/dsk.c2004-06-11 02:55:18.0 + @@ -

[Freedos-kernel] patch: dsk.c [5]

2004-06-10 Thread Arkady V.Belousov
Hi! - small code cleanup and optimization for diskchange(), mediachk(), blk_Media(), bldbpb(), IoctlQueblk() and dskerr(). --- Begin Message --- diff -ruNp old/kernel/dsk.c new/kernel/dsk.c --- old/kernel/dsk.c2004-06-11 03:15:38.0 + +++ new/kernel/dsk.c2004-06-11 03:25:56.0

[Freedos-kernel] patch: dsk.c [1]

2004-06-10 Thread Arkady V.Belousov
Hi! - getddt(0) and tmark are now macros. - (proposed by Lucho) play_dj() now says same words as MS-DOS. --- Begin Message --- diff -ruNp old/kernel/dsk.c new/kernel/dsk.c --- old/kernel/dsk.c2004-05-29 02:51:30.0 + +++ new/kernel/dsk.c2004-06-11 02:33:00.0 + @@ -9

[Freedos-kernel] patch: dsk.c [4]

2004-06-10 Thread Arkady V.Belousov
Hi! - bugfix: Getlogdev(): in case of no DF_CURLOG flag is set, in rp->r_unit now returned last+1 (equal to blk_dev.dh_name[0]) unit (was last+2). - Setlogdev(): added comment about undocumented behavior. --- Begin Message --- diff -ruNp old/kernel/dsk.c new/kernel/dsk.c --- old/kernel/dsk.c

[Freedos-kernel] formatting error

2004-06-10 Thread Arkady V.Belousov
Hi! I send to Matija testing kernel, but, while I not receive results, let me discuss possible reason to errors. __O\_/_\_/O__ STATIC COUNT Genblockio(ddt * pddt, UWORD mode, WORD head, WORD track, WORD sector, WORD cou

Re: [Freedos-kernel] Re: Kernel bug parade / moving on

2004-06-09 Thread Arkady V.Belousov
Hi! 9-Июн-2004 22:13 [EMAIL PROTECTED] (Eric Auer) wrote to [EMAIL PROTECTED]: EA> http://www.coli.uni-sb.de/~eric/stuff/soft/fdapm-16apr2004.zip I test it. APMOFF, APMBIOS, INFO, STATS and STANDBY doesn't work (no APM). About flushing cache in standby don't know. SUSPEND stops my hardisk.

Re: [Freedos-kernel] Re: Kernel bug parade / moving on

2004-06-09 Thread Arkady V.Belousov
Hi! 9-Июн-2004 23:26 [EMAIL PROTECTED] (Aitor Santamar?a Merino) wrote to [EMAIL PROTECTED]: >> MS-DOS is a 16-bit OS. ASM> io.sys and msdos.sys are 16-bit, emm386.exe is 32-bit. But emm386 is not part of kernel. >> Ok, let suggest, some demo-maker makes demo, which will depends fr

[Freedos-kernel] patch: init-mod.h proto.h

2004-06-09 Thread Arkady V.Belousov
Hi! init-mod.h - cleaned prototype for function from intr.asm. - init_fatal() described (for Watcom) as non-returned functions. proto.h - fatal() and panic() described (for Watcom) as non-returned functions; this improves code generation. - cleaned prototypes for functions from intr.asm. - re

Re: [Freedos-kernel] Re: Kernel bug parade / moving on

2004-06-09 Thread Arkady V.Belousov
Hi! 9-Июн-2004 22:13 [EMAIL PROTECTED] (Eric Auer) wrote to [EMAIL PROTECTED]: >> ...and? What next? Assign C: and D: for those additional drives? All >> other (non-adjacent to A: and B:) drive letters will mislead users. EA> No. Users with three floppy drives are users of computers where ot

Re: [Freedos-kernel] Re: Kernel bug parade / moving on

2004-06-09 Thread Arkady V.Belousov
Hi! 9-Июн-2004 20:19 [EMAIL PROTECTED] (Eric Auer) wrote to [EMAIL PROTECTED]: >> EA> About bug 1789, kernel confused by PKZIP-builtin format command >> Which URL? EA> http://www.freedos.org/bugs/bugzilla/show_bug.cgi?id=1789 Ok, I see. May you extract for me precise URL of attachment

Re: [Freedos-kernel] Re: Kernel bug parade / moving on

2004-06-09 Thread Arkady V.Belousov
Салям! 9-Июн-2004 16:17 [EMAIL PROTECTED] (Alain) wrote to [EMAIL PROTECTED]: (Clear high parts of 32bit regs...) How this relates to DOS? >>> MS DOS basically had no 386 stuff at all (except EMM386). In FreeDOS, >>> Lawrence comments that this only affected an old version of the GRDB d

Re: [Freedos-kernel] Re: Kernel bug parade / moving on

2004-06-09 Thread Arkady V.Belousov
Hi! 9-Июн-2004 20:19 [EMAIL PROTECTED] (Eric Auer) wrote to [EMAIL PROTECTED]: >> (Clear high parts of 32bit regs...) >> How this relates to DOS? EA> MS DOS basically had no 386 stuff at all (except EMM386). In FreeDOS, EA> however, people run 386 aware programs more often. Those leave non-zero E

Re: [Freedos-kernel] Re: Re: Re: Kernel bug parade / moving on

2004-06-09 Thread Arkady V.Belousov
Hi! 9-Июн-2004 03:27 [EMAIL PROTECTED] (Eric Auer) wrote to [EMAIL PROTECTED]: EA> The bug submitter for "clear high parts of 32 bit registers on exec" EA> claims to have experienced actual problems because of one program leaving EA> values in registers and another program assuming those parts to

Re: [Freedos-kernel] Re: Kernel bug parade / moving on

2004-06-08 Thread Arkady V.Belousov
Hi! 7-Июн-2004 04:48 [EMAIL PROTECTED] (Eric Auer) wrote to [EMAIL PROTECTED]: >> EA> * 698 floppy change / floppy DMA boundary check should be moved from >> EA> "int" 25/26 to the int 13 handler. >> Hm. Probably I not very understand this request, but FreeDOS does all >> DMA checks in dsk

[Freedos-kernel] patch: floppy.asm (4/5)

2004-06-08 Thread Arkady V.Belousov
Hi! Part four, changed only comments, code unchanged. - fixed wrong comments, more and better comments. --- Begin Message --- diff -ruNp old/drivers/floppy.asm new/drivers/floppy.asm --- old/drivers/floppy.asm 2004-06-08 20:35:36.0 + +++ new/drivers/floppy.asm 2004-06-08 21

[Freedos-kernel] patch: floppy.asm (1/5)

2004-06-08 Thread Arkady V.Belousov
Hi! Because some peoples complain that my patches too big, I split patch for floppy.asm by some consequtive part. Part one: - bugfix: when fl_lba_ReadWrite() converted to ASMPASCAL (and `ret' replaced by `ret 8'), "ret_AH" was remained as label for this tail (whereas other functions use

[Freedos-kernel] patch: floppy.asm (3/5)

2004-06-08 Thread Arkady V.Belousov
Hi! Part three: - small code clean and tune. --- Begin Message --- diff -ruNp old/drivers/floppy.asm new/drivers/floppy.asm --- old/drivers/floppy.asm 2004-06-08 20:10:34.0 + +++ new/drivers/floppy.asm 2004-06-08 20:35:36.0 + @@ -54,7 +54,7 @@ FL_RESET: ; int A

[Freedos-kernel] patch: floppy.asm (2/5)

2004-06-08 Thread Arkady V.Belousov
Hi! Part 2: - prototypes fixed and syncronized with dsk.c. Note: I plan in the future join fl_read, fl_write, fl_verify and fl_format into one function (similar to fl_lba_ReadWrite), consequently, I place those prototypes near. --- Begin Message --- diff -ruNp old/drivers/floppy.asm new/drivers

[Freedos-kernel] patch: floppy.asm

2004-06-07 Thread Arkady V.Belousov
Hi! - prototypes fixed and syncronized with dsk.c. - more and better comments. - bugfix: when fl_lba_ReadWrite() converted to ASMPASCAL (and `ret' replaced by `ret 8'), "ret_AH" was remained as label for this tail (whereas other functions use plain `ret'); now ret_AH moved into another functio

[Freedos-kernel] bug?

2004-06-07 Thread Arkady V.Belousov
Hi! In main.c:init_device() driver counted as system console if its attribute word contains only ATTR_CONIN bit. Isn't there should be both ATTR_CONIN and ATTR_CONOUT bits set? Also, what prevents for one device be both system console and clock driver? Also, ATTR_CONIN bit checked without ATT

Re: [Freedos-kernel] bug: floppy.asm

2004-06-07 Thread Arkady V.Belousov
Hi! 7-Июн-2004 19:32 [EMAIL PROTECTED] (tom ehlert) wrote to "Arkady V.Belousov" <[EMAIL PROTECTED]>: >> I found another bug: >> - when fl_lba_ReadWrite() converted to ASMPASCAL (and `ret' replaced by `ret >> 8'), "ret_AH" remai

[Freedos-kernel] bug: floppy.asm

2004-06-07 Thread Arkady V.Belousov
Hi! I found another bug: - when fl_lba_ReadWrite() converted to ASMPASCAL (and `ret' replaced by `ret 8'), "ret_AH" remains as label for this tail (whereas other functions use plain `ret'). --- This SF.Net email is sponsored by the

Re: [Freedos-kernel] Kernel bug parade / moving on

2004-06-06 Thread Arkady V.Belousov
Hi! 6-Июн-2004 00:47 [EMAIL PROTECTED] (Eric Auer) wrote to [EMAIL PROTECTED]: EA> * 698 floppy change / floppy DMA boundary check should be moved from EA> "int" 25/26 to the int 13 handler. This is also needed for later when EA> we want Win 3.1x /3 compatibility. Please comment on how hard i

Re: [Freedos-kernel] kernel administration

2004-06-06 Thread Arkady V.Belousov
Hi! 5-Июн-2004 11:22 [EMAIL PROTECTED] (Kenneth J. Davis) wrote to [EMAIL PROTECTED]: >>> Well, looks like Bart is gone. Who now will manage the kernel >>> (reconcile patches, update CVS, release intermediate snapshots)? For [...] KJD> If there are no objections, then about once a week I wil

Re: [Freedos-kernel] kernel administration

2004-06-04 Thread Arkady V.Belousov
Hi! 4-Июн-2004 19:10 [EMAIL PROTECTED] (Alain) wrote to [EMAIL PROTECTED]: A> Could we ask Lucho to come back? He has helped a lot in the past. A> those that have hes address could write him... He wrote, that he not wish to make his email public again, and that he not wish to manage the ker

[Freedos-kernel] kernel administration

2004-06-04 Thread Arkady V.Belousov
Hi! Well, looks like Bart is gone. Who now will manage the kernel (reconcile patches, update CVS, release intermediate snapshots)? For example, my current todo contains at least 6 bugfixes for dsk.c, and 2 which I don't know how to handle. Beside this, there optimized out some hundreths of by

[Freedos-kernel] bug: dsk.c

2004-06-04 Thread Arkady V.Belousov
Hi! Old funny bug, which I report some times: INT21/440D, command 42h (format tracks), bit 1 in gbfv_spcfunbit is set (format multiple tracks): this subfunction is not supported (currently this function will always format many times only one track). Reason: afentry.head++ in Genblkdev() place

[Freedos-kernel] patch: dsk.c

2004-06-01 Thread Arkady V.Belousov
Hi! - small source cleanup (expressions simplified, extraneous casts removed). - removed all references to PROTO macro name. - removed remained excerpt from history.txt at the end. - bugfix: getlogdev(): in case of no DF_CURLOG flag is set, in rp->r_unit now returned last+1 (equal to blk_dev.dh_

[Freedos-kernel] patch: dsk.c

2004-06-01 Thread Arkady V.Belousov
Hi! - small source cleanup (expressions simplified, extraneous casts removed). - removed all references to PROTO macro name. - removed remained excerpt from history.txt at the end. - bugfix: getlogdev(): in case of no DF_CURLOG flag is set, in rp->r_unit now returned last+1 (equal to blk_dev.dh_

Re: [Freedos-kernel] (no subject)

2004-06-01 Thread Arkady V.Belousov
Hi! 2-Июн-2004 07:47 Arkady V.Belousov wrote to [EMAIL PROTECTED]: AVB> Subject: [Freedos-kernel] (no subject) This was should be "patch: ioctl.c". AVB> (replaces previous patch) AVB> - 3 nested switch splitted into 2 switch (1st prepares parameters for AVB> 2

[Freedos-kernel] patch: intr.asm

2004-06-01 Thread Arkady V.Belousov
Hi! intr.asm - wrong prototypes fixed and syncronized with *.h headers. - small code cleanup (removed jumps) and optimizations, more comments. --- Begin Message --- diff -ruNp old/kernel/intr.asm new/kernel/intr.asm --- old/kernel/intr.asm 2004-05-23 13:02:00.0 + +++ new/kernel/intr.a

[Freedos-kernel] (no subject)

2004-06-01 Thread Arkady V.Belousov
Hi! (replaces previous patch) - 3 nested switch splitted into 2 switch (1st prepares parameters for 2nd, which calls execrh()). - device attribute word checked through table lookup. - CharReqHdr.r_command computed through table lookup. - removed all goto, except one. Result: DGROUP increased f

[Freedos-kernel] Q: ioctl.c

2004-06-01 Thread Arkady V.Belousov
Hi! DosDevIOctl() returns on SUCCESS for AL=9 (INT21/4409). RBIL says nothing about AX on return. Same for AL=0xA (there returned AX=0). Why? If there are some reasons, these reasons should be commented (especially for strange value S_DONE|S_BUSY). ---

[Freedos-kernel] patch: history.txt

2004-05-31 Thread Arkady V.Belousov
--- Begin Message --- diff -ruNp 0TXTOLD/docs/history.txt 0TXTNEW/docs/history.txt --- 0TXTOLD/docs/history.txt2004-05-30 13:56:58.0 + +++ 0TXTNEW/docs/history.txt2004-05-31 23:47:36.0 + @@ -24,11 +24,10 @@ * time.h, fatfs.c: converted TM_ENCODE into a functi

[Freedos-kernel] patch: ioctl.c

2004-05-31 Thread Arkady V.Belousov
patch: ioctl.c Hi! - 3 nested switches splitted by two separate swicth: one prepares parameters (attr, flags), other calls execrh(). - CharReqHdr.r_command computed through table lookup. - remained only one goto. Result: DGROUP increased from 1646h to 1658h (18 bytes), TGROUP decreased from de6

[Freedos-kernel] patch: globals.h

2004-05-31 Thread Arkady V.Belousov
Hi! - bugfix: NetDelay and NetRetry are UWORD, not UBYTE values. - small source cleanup. --- Begin Message --- diff -ruNp old/kernel/globals.h new/kernel/globals.h --- old/kernel/globals.h2004-05-23 08:10:16.0 + +++ new/kernel/globals.h2004-05-31 21:13:38.0 +00

[Freedos-kernel] patch: inthndlr.c

2004-05-30 Thread Arkady V.Belousov
Hi! - code optimization: was forgotten to place lr.AL= after CritErrCode=. - source cleanup: not all zeros was replaced by SUCCESS. - shorten expressions and code: inline MK_FP instead defining extra variable. There are already present similar inlinings: for example, see ps_stack initializatio

[Freedos-kernel] patch: dsk.c

2004-05-30 Thread Arkady V.Belousov
Hi! - code optimization. --- Begin Message --- diff -ruNp old/kernel/dsk.c new/kernel/dsk.c --- old/kernel/dsk.c2004-05-29 02:51:30.0 + +++ new/kernel/dsk.c2004-05-31 06:07:48.0 + @@ -92,7 +92,7 @@ extern struct DynS ASM Dyn; /*TE - array access functions */ ddt

[Freedos-kernel] patch: break.c

2004-05-30 Thread Arkady V.Belousov
Hi! - removed extraneous variable assignment; code optimization. --- Begin Message --- diff -ruNp old/kernel/break.c new/kernel/break.c --- old/kernel/break.c 2004-04-14 08:40:36.0 + +++ new/kernel/break.c 2004-04-24 11:55:44.0 + @@ -53,13 +53,13 @@ unsigned char ctrl_br

[Freedos-kernel] patch: inthndlr.c

2004-05-30 Thread Arkady V.Belousov
Hi! - optimize for .callerARG1. --- Begin Message --- diff -ruNp old/kernel/inthndlr.c new/kernel/inthndlr.c --- old/kernel/inthndlr.c 2004-05-31 07:29:14.0 + +++ new/kernel/inthndlr.c 2004-05-31 07:36:16.0 + @@ -1642,7 +1642,7 @@ struct int2f12regs { UWORD

[Freedos-kernel] patch: inthndlr.c

2004-05-30 Thread Arkady V.Belousov
Hi! - bugfix for INT21/3301: MS-DOS clears high buts of DL. --- Begin Message --- diff -ruNp old/kernel/inthndlr.c new/kernel/inthndlr.c --- old/kernel/inthndlr.c 2004-05-28 12:08:32.0 + +++ new/kernel/inthndlr.c 2004-05-31 07:29:14.0 + @@ -78,14 +78,14 @@ VOID

Re: [Freedos-kernel] Re: [Freedos-devel] Re: [Freedos-cvs] kernel/hdr device.h,1.21,1.22

2004-05-30 Thread Arkady V.Belousov
Hi! 30-Май-2004 09:24 Arkady V.Belousov wrote to [EMAIL PROTECTED]: >>> No, all right: r_catfun is a xreg.x and r_cat is a xreg.h. Mistake is >>> in my comment: I was should say "difference is that r_cat comes _after_ >>> r_fun to make consistent with CX&q

[Freedos-kernel] Re: [Freedos-cvs] kernel/docs history.txt,1.77,1.78

2004-05-30 Thread Arkady V.Belousov
Hi! 30-Май-2004 20:56 [EMAIL PROTECTED] (Bart Oldeman) wrote to [EMAIL PROTECTED]: > +++ history.txt 30 May 2004 20:56:29 - 1.78 > + * inithma.c: moved fmemcmp's into a checkHMA function. "... into EnabledA20() function." > + * inithma.c: HMAFree == 0xfff0 - bytesToA

[Freedos-kernel] Re: [Freedos-devel] Re: [Freedos-cvs] kernel/hdr device.h,1.21,1.22

2004-05-30 Thread Arkady V.Belousov
Hi! 29-Май-2004 12:30 [EMAIL PROTECTED] (Bart Oldeman) wrote to [EMAIL PROTECTED]: >> No, all right: r_catfun is a xreg.x and r_cat is a xreg.h. Mistake is >> in my comment: I was should say "difference is that r_cat comes _after_ >> r_fun to make consistent with CX". BO> No, it can't be. Se

[Freedos-kernel] Re: [Freedos-cvs] kernel/kernel entry.asm,1.26,1.27 inthndlr.c,1.86,1.87 io.asm,1.16,1.17 nlssupt.asm,1.12,1.13

2004-05-30 Thread Arkady V.Belousov
Hi! 30-Май-2004 19:31 [EMAIL PROTECTED] (Bart Oldeman) wrote to [EMAIL PROTECTED]: > +++ io.asm30 May 2004 19:31:07 - 1.17 > +%include "stacks.inc" > +++ nlssupt.asm 30 May 2004 19:31:07 - 1.13 > + %include "stacks.inc" Don't forget to

[Freedos-kernel] Q: memmgr.c

2004-05-26 Thread Arkady V.Belousov
Hi! Why DosUmbLink() tries to join free blocks (in low memory) when uppermem_link switched from 1 to 0 (but not when it switched to 1)? I think, this is wrong: blocks joining should be performed (by RBIL) only for memory allocation in DosMemAlloc() and DosMemChange() (realloc). --

Re: [Freedos-kernel] patch: portab.h, exeflat.c

2004-05-24 Thread Arkady V.Belousov
Hi! 24-Май-2004 22:15 [EMAIL PROTECTED] (tom ehlert) wrote to "Arkady V.Belousov" <[EMAIL PROTECTED]>: >> In above case at first glance I don't see possibilities to break >> integrity ([] have top most priority over other operations), but this not

Re: [Freedos-kernel] Re: [Freedos-cvs] kernel/kernel config.c,1.86,1.87

2004-05-24 Thread Arkady V.Belousov
Hi! 24-Май-2004 22:14 [EMAIL PROTECTED] (tom ehlert) wrote to "Arkady V.Belousov" <[EMAIL PROTECTED]>: te> the original code reads: te> if (GetBiosTime() - startTime > (unsigned)timeout * 18) te>break; te> and now I want to get an example when this

[Freedos-kernel] Re: [Freedos-cvs] kernel/kernel config.c,1.86,1.87

2004-05-24 Thread Arkady V.Belousov
Hi! 24-Май-2004 18:39 [EMAIL PROTECTED] (Bart Oldeman) wrote to [EMAIL PROTECTED]: > +++ config.c 24 May 2004 18:39:49 - 1.87 > UWORD GetBiosKey(int timeout) > @@ -752,26 +749,19 @@ > + if (timeout >= 0) do >{ > r.a.x = 0x0100; /* are there keys available ? */ >

Re: [Freedos-kernel] patch: portab.h, exeflat.c

2004-05-24 Thread Arkady V.Belousov
Hi! 24-Май-2004 20:16 [EMAIL PROTECTED] (tom ehlert) wrote to "Arkady V.Belousov" <[EMAIL PROTECTED]>: >>-#define LENGTH(x) (sizeof(x)/sizeof(x[0])) >>+#define LENGTH(x) (sizeof (x)/sizeof *(x)) te> (sizeof(x)/sizeof(x[0])) has worked for me for ~20 years now. t

Re: [Freedos-kernel] patch: portab.h, exeflat.c

2004-05-24 Thread Arkady V.Belousov
Hi! 24-Май-2004 21:34 Arkady V.Belousov wrote to [EMAIL PROTECTED]: AVB> +++ new/hdr/portab.h 2004-05-24 21:31:58.0 + AVB> #ifdef I86 /* commandline overflow - removing /DPROTO AVB> TE */ AVB> #define PROTO AVB> #endif BTW,

[Freedos-kernel] patch: portab.h, exeflat.c

2004-05-24 Thread Arkady V.Belousov
Hi! - fixed macros in portab.h: added extra parentesis around parameters; - removed duplicated macro in exeflat.c. --- Begin Message --- diff -ruNp old/hdr/portab.h new/hdr/portab.h --- old/hdr/portab.h2004-05-09 17:24:02.0 + +++ new/hdr/portab.h2004-05-24 21:31:58.0 +

Re: [Freedos-kernel] patch: intr.asm

2004-05-24 Thread Arkady V.Belousov
Hi! 24-Май-2004 17:33 Arkady V.Belousov wrote to [EMAIL PROTECTED]: AVB> - prototypes/comments cleanup. To be precise: fixed wrong protypes, syncronized with *.h files. AVB> diff -ruNp old/kernel/intr.asm new/kernel/intr.asm --

Re: [Freedos-kernel] bug: inithma.c

2004-05-24 Thread Arkady V.Belousov
Hi! 24-Май-2004 17:18 Arkady V.Belousov wrote to [EMAIL PROTECTED]: AVB> Should be: "if (checkHMA())". To make code more clear (understandable), AVB> better to name this function as "checkHMApresent()".

[Freedos-kernel] patch: intr.asm

2004-05-24 Thread Arkady V.Belousov
Hi! - code cleanup/optimization, comments added. --- Begin Message --- diff -ruNp old/kernel/intr.asm new/kernel/intr.asm --- old/kernel/intr.asm 2004-05-24 17:29:46.0 + +++ new/kernel/intr.asm 2004-05-24 17:39:06.0 + @@ -108,9 +108,8 @@ RES_DOSEXEC: push ds

[Freedos-kernel] patch: intr.asm

2004-05-24 Thread Arkady V.Belousov
Hi! - prototypes/comments cleanup. --- Begin Message --- diff -ruNp old/kernel/intr.asm new/kernel/intr.asm --- old/kernel/intr.asm 2004-05-23 13:02:00.0 + +++ new/kernel/intr.asm 2004-05-24 17:29:46.0 + @@ -94,7 +94,9 @@ segmentHMA_TEXT -;; COUNT ASMPASCAL res

[Freedos-kernel] bug: inithma.c

2004-05-24 Thread Arkady V.Belousov
Hi! Was: __O\_/_\_/O__ int EnableHMA(VOID) [...] _DisableA20(); #ifdef DEBUG if (fmemcmp(MK_FP(0x, 0x), MK_FP(0x, 0x0010), 128) != 0) _ O

[Freedos-kernel] bug?

2004-05-24 Thread Arkady V.Belousov
Hi! Bart, what about removing AX=0 in INT21/5E02+? --- This SF.Net email is sponsored by: Oracle 10g Get certified on the hottest thing ever to hit the market... Oracle 10g. Take an Oracle 10g class now, and we'll give you the exam FREE

Re: [Freedos-kernel] Re: [Freedos-cvs] kernel/kernel dosfns.c,1.68,1.69 fatdir.c,1.46,1.47 fcbfns.c,1.42,1.43 ioctl.c,1.27,1.28

2004-05-24 Thread Arkady V.Belousov
Hi! 24-Май-2004 09:34 [EMAIL PROTECTED] (tom ehlert) wrote to "Arkady V.Belousov" <[EMAIL PROTECTED]>: >> Ops, mistype. Should be: te> I HATE 'oops, mistype' style bugs introduced for no purpose into a te> working kernel. NiP (Nobody is Perfect

Re: [Freedos-kernel] Re: [Freedos-cvs] kernel/kernel dosfns.c,1.68,1.69 fatdir.c,1.46,1.47 fcbfns.c,1.42,1.43 ioctl.c,1.27,1.28

2004-05-23 Thread Arkady V.Belousov
Hi! 23-Май-2004 21:50 [EMAIL PROTECTED] (Bart Oldeman) wrote to [EMAIL PROTECTED]: >> /* DELETED (0x5) || EXT_DELETED (0xe5) ? */ >> if ((UBYTE)(name[0] & ~0xE0) == DELETED) Ops, mistype. Should be: if ((UBYTE)((0x20 + name[0]) & ~0x20) == DELETED) ^^^ See: for

[Freedos-kernel] Re: [Freedos-cvs] kernel/kernel dosfns.c,1.68,1.69 fatdir.c,1.46,1.47 fcbfns.c,1.42,1.43 ioctl.c,1.27,1.28

2004-05-23 Thread Arkady V.Belousov
Hi! 23-Май-2004 18:28 [EMAIL PROTECTED] (Bart Oldeman) wrote to [EMAIL PROTECTED]: > +++ fatdir.c 23 May 2004 18:28:18 - 1.47 > STATIC void swap_deleted(char *name) > { > + if (name[0] == DELETED || name[0] == EXT_DELETED) > +name[0] ^= EXT_DELETED - DELETED; /* 0xe0 */ > } STA

[Freedos-kernel] Re: [Freedos-cvs] kernel/kernel newstuff.c,1.32,1.33

2004-05-23 Thread Arkady V.Belousov
Hi! 23-Май-2004 14:17 [EMAIL PROTECTED] (Bart Oldeman) wrote to [EMAIL PROTECTED]: > +++ newstuff.c23 May 2004 14:17:36 - 1.33 > - for (i = 0; i < ppsp->ps_maxfiles; i++) > -newtab[i] = ppsp->ps_filetab[i]; > - > - for (; i < nHandles; i++) > -newtab[i] = 0xff; > + fme

[Freedos-kernel] Re: [Freedos-cvs] kernel/kernel proto.h,1.70,1.71 inthndlr.c,1.79,1.80 fatfs.c,1.67,1.68

2004-05-23 Thread Arkady V.Belousov
Hi! 23-Май-2004 14:49 [EMAIL PROTECTED] (Bart Oldeman) wrote to [EMAIL PROTECTED]: > Inlined dos_setdta. Various bug fixes and cleanups from Lucho and Arkady. > +++ inthndlr.c23 May 2004 14:49:10 - 1.80 > - if (r->DL - 1 >= lastdrive || r->DL == 0) > + if (r->DL > lastd

<    1   2   3   4   5   6   7   8   >