[Freedos-kernel] commit: floppy.asm

2004-06-18 Thread Kenneth J. Davis
I have gone through Arkady's floppy patchset (is there a 5 of 5?).
This weekend I intend to finish processing his dsk.c patchset
(which includes Lucho's rewording patch), and once a patch is
provided I will work on the config processing.  I'll commit the
history.txt update once I finish the dsk.c work.
I have set the build version to 2035a to help prevent confusion
with released kernels.
As I commit updates, please refer to sourceforge for source, but
I may provide binaries and diffs at http://www.fdos.org/kernel/
As this is my first commit, for exact patch committed see:
http://www.fdos.org/kernel/2035a/p1.diff
and for the binary compiled with OpenWatcom 1.2 + UPX'd see:
http://www.fdos.org/kernel/2035a/KERNEL.SYS
Please feel free to comment and thank you for the patches!
Jeremy Davis
[EMAIL PROTECTED]
CVS: Modified Files:
CVS:drivers/floppy.asm hdr/version.h
--
based on floppy.asm patchset from Arkady, use ret instead of ret 8
appropriately; improve comments, including sync with prototypes in
dsk.c; small code clean up

---
This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference
Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer
Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA
REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND
___
Freedos-kernel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freedos-kernel


[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 joined block.
- fix: umb_init(): when joining adjacent blocks, UMB_top was not adjusted
  if it equal to end of previous block; this force to use when loading
  drivers only part of given UMB.
- bugfix: umb_init(): umb_start+UMB_top initialized as end of (first,
  largest) block and used as end address when loading drivers, but if this
  block is not furthest, then umb_start+UMB_top was overlap MCB of hole
  block before next UMB.
- bugfix: umb_init(): when joining next adjacent block to current block,
  size of current block was maked greater than required by 1.
- bugfix: umb_init(): when new captured UMB block is beyond of furthest
  previously cuptured block (umb_max) and first byte in last paragraph
  of umb_max block contains 'M', prev_mcb() was walk after umb_max.

There is one more issue: when XMS provider returns UMB at A000, then FreeDOS
(should) incorrectly updates MCB chain. Unfortunately, I can't check this
yet: looks like MS-EMM386 with I=A000-... adds this block to base memory,
and this forced FD to wrongly make final MCB in some other place.




---
This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference
Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer
Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA
REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND
___
Freedos-kernel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freedos-kernel


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) in previous
letters.

KJD This weekend I intend to finish processing his dsk.c patchset
KJD (which includes Lucho's rewording patch), and once a patch is
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
not acceptable here.

KJD As I commit updates, please refer to sourceforge for source, but

 Is kernel.tgz will be updated?

KJD Please feel free to comment and thank you for the patches!
KJD CVS:   drivers/floppy.asm hdr/version.h

 I see, you miss some my changes (for example, fl_diskchanged epilog)
and add own comments. For example:

 + pop dx  ; drive, (DL only, bit 7 set resets both 
 floppy  hd)
---^^...

 This is wrong addition: of course, BIOS enumerates hard disks as
80h-ffh (with bit 7 set), bit 7 not relates to reseting both floppy and
hd, there will be reset disk, which number is in DL and only it.




---
This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference
Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer
Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA
REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND
___
Freedos-kernel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freedos-kernel


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

2004-06-18 Thread Kenneth J. Davis
Arkady V.Belousov wrote:
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) in previous
letters.
Ok.  Thanks, just wanted to make sure I didn't somehow overlook it on
sourceforge.
KJD This weekend I intend to finish processing his dsk.c patchset
KJD (which includes Lucho's rewording patch), and once a patch is
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
not acceptable here.
That's fine, it doesn't matter to me if its one big, several smaller, or
even just the changed file.
KJD As I commit updates, please refer to sourceforge for source, but
 Is kernel.tgz will be updated?
Should be.
KJD Please feel free to comment and thank you for the patches!
KJD CVS:   drivers/floppy.asm hdr/version.h
 I see, you miss some my changes (for example, fl_diskchanged epilog)
please be more specific, for example I changed floppy.asm patch 3
to maintain the same size and return values as the original logic, as
I did not see a reason to make the code longer and return 0x00FF instead
of 0x (-1).  see http://www.fdos.org/kernel/2035a/arkady/test.asm
for the three variations (mine, yours, the original).
and add own comments. For example:
yes, I viewed yours, the original, RBIL, and the code and selected
the one that seemed the most clear, being more verbose if necessary.

+ pop dx  ; drive, (DL only, bit 7 set resets both floppy  hd)
---^^...
 This is wrong addition: of course, BIOS enumerates hard disks as
80h-ffh (with bit 7 set), bit 7 not relates to reseting both floppy and
hd, there will be reset disk, which number is in DL and only it.
Ok, I will remove it.  It was taken from RBIL, and I added as it looked
like a really weird quirk to be aware of and research a bit further;
along with determing if we actually called any of the floppy functions
with a disk number corresponding to a hard drive, as RBIL indicated
for several of the calls we use about problems with some buggy BIOSes
if a value greater than 0x7Fh was use (ie if drive number refers to
a hard drive).
Jeremy

---
This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference
Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer
Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA
REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND
___
Freedos-kernel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freedos-kernel