Commit Graph

803 Commits

Author SHA1 Message Date
Kenneth J Davis
9199c37a45 Improve handling for sectors not 512 bytes in size (up to 2048 bytes)
git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@1702 6ac86273-5f31-0410-b378-82cca8765d1b
2012-02-04 08:46:16 +00:00
Kenneth J Davis
869e077227 clarify comment
git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@1701 6ac86273-5f31-0410-b378-82cca8765d1b
2012-01-16 22:06:21 +00:00
Kenneth J Davis
50de5e1e23 Update sequence number to correspond with next release version.
git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@1700 6ac86273-5f31-0410-b378-82cca8765d1b
2012-01-16 20:46:35 +00:00
Kenneth J Davis
ed1cca5556 Update copyright string to new year.
git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@1699 6ac86273-5f31-0410-b378-82cca8765d1b
2012-01-16 20:45:44 +00:00
Kenneth J Davis
0aa54d824d update history.txt
git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@1698 6ac86273-5f31-0410-b378-82cca8765d1b
2012-01-16 16:00:51 +00:00
Kenneth J Davis
06ddb06931 Do not display CHS warning during booting when FORCELBA enabled - patch from Pete Batard.
git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@1697 6ac86273-5f31-0410-b378-82cca8765d1b
2012-01-16 15:57:14 +00:00
Kenneth J Davis
d6ff7e86e3 update history.txt
git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@1686 6ac86273-5f31-0410-b378-82cca8765d1b
2011-07-15 23:34:14 +00:00
Kenneth J Davis
8343368565 add int 2f subfunc 122B and 122D from Eduardo Casino [from UNSTABLE branch]
git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@1685 6ac86273-5f31-0410-b378-82cca8765d1b
2011-07-15 23:32:38 +00:00
Kenneth J Davis
29c709b3e1 update history.txt
git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@1638 6ac86273-5f31-0410-b378-82cca8765d1b
2011-06-27 01:32:25 +00:00
Kenneth J Davis
b77e746748 update value in country to within valid range for byte
git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@1637 6ac86273-5f31-0410-b378-82cca8765d1b
2011-06-27 01:05:22 +00:00
Kenneth J Davis
d2075af8e9 Correct order of instructions so drive argument not overridden by later instruction to always 0 (first floppy) - thanks to Christian Masloch
git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@1635 6ac86273-5f31-0410-b378-82cca8765d1b
2011-06-21 23:56:12 +00:00
Kenneth J Davis
4499bd29b3 Optional support for modifying CONFIG via memdisk args, requires MEMDISK_ARGS and 386 defined to be included.
git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@1634 6ac86273-5f31-0410-b378-82cca8765d1b
2011-06-21 02:17:09 +00:00
Kenneth J Davis
a108714c31 Force floppy diskette parameter table (DPT) pointed to by int 1Eh to use 512 bytes per sector; fixes issue with memdisk 3.x & 4.0 which swaps DPT byte values for bps with sectors per track.
git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@1633 6ac86273-5f31-0410-b378-82cca8765d1b
2011-06-18 12:27:28 +00:00
Bart Oldeman
ac7f32468b Make free cluster search circular in case the FSINFO/DPB value is not correct
and there is a free cluster before the given value.
Also, when calculating free space we get the first free cluster for free.


git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@1632 6ac86273-5f31-0410-b378-82cca8765d1b
2011-06-13 16:29:14 +00:00
Bart Oldeman
aab06b8a4d Do not use FSINFO structure if it is not present.
Do some range checks on FSINFO values to make sure they are valid. Fixes
issue reported by dos386 on the mailing list.


git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@1631 6ac86273-5f31-0410-b378-82cca8765d1b
2011-06-13 16:27:34 +00:00
Bart Oldeman
aec735eecd Truncating a 0-byte file should not fail!
git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@1609 6ac86273-5f31-0410-b378-82cca8765d1b
2011-05-09 01:54:48 +00:00
Bart Oldeman
cd79fe5f31 Fix 386 register save/restore (FS & GS destroyed across EXEC - SF bug: 3090610)
Involves:
* before calling INT24 restore 386 registers. Protect again when
  re-entering DOS for "(A)bort"
* INT21/AH=4C and variations restore 386 registers from the user stack
* INT23 (ctrl-break) restores 386 registers
* INT2F/AH=14 protects 386 registers.
* EXECRH is marked to potentially modify FS/GS for OW.


git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@1591 6ac86273-5f31-0410-b378-82cca8765d1b
2011-05-06 01:46:55 +00:00
Bart Oldeman
ed61be3ca3 Allocate bigger chunk of memory for INSTALL for __WATCOMC__ because the
memory layout is different from other compilers.
Fixes issues mentioned by Bret Johnson and Christian Masloch
in freedos-user/freedos-kernel.


git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@1569 6ac86273-5f31-0410-b378-82cca8765d1b
2011-04-09 04:08:20 +00:00
Bart Oldeman
0b5098042e Make sure the DOS native and Linux cross-builds produce identical binaries.
git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@1568 6ac86273-5f31-0410-b378-82cca8765d1b
2011-04-09 02:42:51 +00:00
Bart Oldeman
3df307b933 Remove useless END from nls_hc.asm, add explicit byte overrides for older
versions of NASM for more compact code, and adjust silent relocation segments.


git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@1567 6ac86273-5f31-0410-b378-82cca8765d1b
2011-04-09 02:03:20 +00:00
Bart Oldeman
feaf5beb88 Update copyright, version and changelog.
git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@1566 6ac86273-5f31-0410-b378-82cca8765d1b
2011-04-08 19:07:22 +00:00
Bart Oldeman
e7a2632158 Change // to /* comments for Turbo C compatibility.
git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@1565 6ac86273-5f31-0410-b378-82cca8765d1b
2011-04-08 18:34:19 +00:00
Bart Oldeman
0760d51339 If handle valid, close file in PSP table before the low-level close +
(perhaps) critical error.
Avoids closing the file twice (and hitting the critical error twice) on
abort/program termination.
Also, close can only return error 6 (DE_INVLDHNDL), not 5 (DE_ACCESS), see RBIL.


git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@1564 6ac86273-5f31-0410-b378-82cca8765d1b
2011-04-08 18:27:48 +00:00
Bart Oldeman
225237e915 From Christian Masloch:
set flags to 0x200 (IF set) when transferring to int22 termination address.


git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@1563 6ac86273-5f31-0410-b378-82cca8765d1b
2011-04-08 16:04:24 +00:00
Bart Oldeman
d7be66c5ed Check errors for callers of dir_write and shrink_file.
Fixes: Bug: File creation does not check whether buffers are written correctly
(http://www.bttr-software.de/forum/forum_entry.php?id=9783)


git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@1562 6ac86273-5f31-0410-b378-82cca8765d1b
2011-04-08 15:54:03 +00:00
Bart Oldeman
77d0f502c0 No longer force flush1() and dir_write_update() to return TRUE if there
were disk write errors. Part 1 for fixing
http://www.bttr-software.de/forum/forum_entry.php?id=9783
Bug: File creation does not check whether buffers are written correctly


git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@1561 6ac86273-5f31-0410-b378-82cca8765d1b
2011-04-08 15:35:23 +00:00
Bart Oldeman
6bf9271256 Enlarge clock and block driver stacks. Thanks to Damien Guibouret
<damien.guibouret@partition-saving.com>.


git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@1560 6ac86273-5f31-0410-b378-82cca8765d1b
2011-03-24 00:25:26 +00:00
Bart Oldeman
d9df755e78 Fix value that is used before being initialised.
This lead to a drive to not be considered as FAT32 despite it is
(or vice-versa).
Thanks to Damien Guibouret <damien.guibouret@partition-saving.com>.


git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@1559 6ac86273-5f31-0410-b378-82cca8765d1b
2011-03-24 00:21:53 +00:00
Kenneth J Davis
581d52a2bc correct return value from NULL to FALSE - fix compile with OW1.9
git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@1501 6ac86273-5f31-0410-b378-82cca8765d1b
2010-08-18 03:04:40 +00:00
Kenneth J Davis
bf408d35f4 handle case when source not specified but filename for boot sector is given (sys X: bootfile.bin)
git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@1500 6ac86273-5f31-0410-b378-82cca8765d1b
2009-11-13 22:47:02 +00:00
Bart Oldeman
0d4c23ffac With the stack changes the DOS segment has moved to 0x79.
git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@1499 6ac86273-5f31-0410-b378-82cca8765d1b
2009-08-22 19:07:18 +00:00
Bart Oldeman
3ae2e90e08 New irqstack.asm: irq 2, 3, 4, 5, 6, 10, 11, 12, 14, 15 now use the IBM
interrupt sharing protocol for STACKS. Affect int 2 too, but not IRQ 7
(INT 0fh) and IRQ 9 (INT 71h)


git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@1498 6ac86273-5f31-0410-b378-82cca8765d1b
2009-08-22 14:43:09 +00:00
Kenneth J Davis
0278349047 Add batch file used to generated release archives; update LSM to be version neutral when checked out of SVN trunk
git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@1497 6ac86273-5f31-0410-b378-82cca8765d1b
2009-08-01 21:14:46 +00:00
Bart Oldeman
e146fa112d Update history.txt from SVN log entries.
git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@1495 6ac86273-5f31-0410-b378-82cca8765d1b
2009-07-31 23:28:30 +00:00
Kenneth J Davis
ddb2dffb9f update documentation to include new options; add option to sys to force LBA or CHS usage, allow using BIOS specified boot drive # on floppy, add verbose output (debug prints), and reorder some steps in copy() to avoid some unnecessary disk swaps on single drive systems
git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@1494 6ac86273-5f31-0410-b378-82cca8765d1b
2009-07-30 04:33:23 +00:00
Kenneth J Davis
66c9f421ac add comment about location that may be modified by sys (and some whitespace changes due to editor)
git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@1493 6ac86273-5f31-0410-b378-82cca8765d1b
2009-07-30 03:26:13 +00:00
Kenneth J Davis
38abeed649 create list file when assembling boot sectors
git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@1492 6ac86273-5f31-0410-b378-82cca8765d1b
2009-07-30 03:23:05 +00:00
Bart Oldeman
a46d6637fa Use near pointers for printf()s where possible. Problematic is only the
case where SS!=DS (which happens sometimes in resident code), in which
case va_list/va_arg need to use FAR pointers.
DS!=DGROUP never works, so I corrected that for NLS_DEBUG, by setting DS
in int2f.asm.


git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@1491 6ac86273-5f31-0410-b378-82cca8765d1b
2009-07-18 20:48:44 +00:00
Bart Oldeman
8b07bb8c23 Check the BPB instead of the DPB for FAT32 after a BUILDBPB device
call, as the DPB may still be uninitialized at this point.


git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@1490 6ac86273-5f31-0410-b378-82cca8765d1b
2009-07-18 14:05:26 +00:00
Kenneth J Davis
2e9792fae5 update copyright year, add some comments
git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@1489 6ac86273-5f31-0410-b378-82cca8765d1b
2009-07-13 03:21:32 +00:00
Kenneth J Davis
82d77a19e1 mark unused space in kernel for unused win compatibility structs
git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@1488 6ac86273-5f31-0410-b378-82cca8765d1b
2009-07-13 03:19:32 +00:00
Kenneth J Davis
8f9448f313 comment/structure info update
git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@1487 6ac86273-5f31-0410-b378-82cca8765d1b
2009-07-13 03:13:43 +00:00
Kenneth J Davis
f82d41f169 comments added
git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@1486 6ac86273-5f31-0410-b378-82cca8765d1b
2009-07-13 02:58:57 +00:00
Kenneth J Davis
5c8fb2fbec comments added
git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@1485 6ac86273-5f31-0410-b378-82cca8765d1b
2009-07-13 02:35:05 +00:00
Kenneth J Davis
44e249282f update comments
git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@1484 6ac86273-5f31-0410-b378-82cca8765d1b
2009-07-13 02:26:23 +00:00
Kenneth J Davis
6762379cd6 update sys usage documentation
git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@1483 6ac86273-5f31-0410-b378-82cca8765d1b
2009-07-13 02:20:48 +00:00
Kenneth J Davis
dbf9e09dfc update sys to current version, adjust printf to support percent modifier, consistent prototype, and handle text not in current segment (FAR *) better, merge part of simplified debug (via prints) support
git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@1482 6ac86273-5f31-0410-b378-82cca8765d1b
2009-07-11 16:59:43 +00:00
Bart Oldeman
66f65090dd Corrected a bug in exeflat: it was writing 32 bytes too many from possibly
unexisting buffers after compressing exe files.


git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@1480 6ac86273-5f31-0410-b378-82cca8765d1b
2009-07-07 13:51:54 +00:00
Bart Oldeman
d6b54e78d0 Corrected DEBUG #if to #ifdef for Turbo C and corrected debug printfs in
truename().


git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@1479 6ac86273-5f31-0410-b378-82cca8765d1b
2009-07-07 13:33:24 +00:00
Bart Oldeman
d8537c13ef Simplified truename(): eliminated the addSep state by adding a backslash in
every new segment, including a trailing backslash. Simplified . and .. logic.
Converted switch to if because there were few cases left.


git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@1478 6ac86273-5f31-0410-b378-82cca8765d1b
2009-07-07 13:04:53 +00:00