Commit Graph

83 Commits

Author SHA1 Message Date
Kenneth J Davis cabdbf0fa9 apply changes made to stable in preparation for merge to stable (OW 1.8 compile fix and improved file copy routine)
git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/branches/UNSTABLE@1481 6ac86273-5f31-0410-b378-82cca8765d1b
2009-07-10 22:22:43 +00:00
Kenneth J Davis ed009bd3eb sync printf prototypes (uncorrupt executables)
git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/branches/UNSTABLE@1162 6ac86273-5f31-0410-b378-82cca8765d1b
2005-11-30 21:59:18 +00:00
Luchezar Georgiev 58c6e29895 Fix BC 3.1 CONFIG.C compile and SYS Abnormal Program Termination error for BC
git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/branches/UNSTABLE@1144 6ac86273-5f31-0410-b378-82cca8765d1b
2005-09-19 17:43:11 +00:00
Kenneth J Davis e31b12bcaf fix update option (compared too many characters, Lucho)
git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/branches/UNSTABLE@1139 6ac86273-5f31-0410-b378-82cca8765d1b
2005-09-01 05:12:44 +00:00
Kenneth J Davis 31377051e1 better check for valid backup boot sector # and add option to skip setting it
git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/branches/UNSTABLE@1126 6ac86273-5f31-0410-b378-82cca8765d1b
2005-05-28 17:14:58 +00:00
Kenneth J Davis 726b3f5af1 set backup boot sector on FAT32, add update option, fix oemboot to work with msdos 7+
git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/branches/UNSTABLE@1125 6ac86273-5f31-0410-b378-82cca8765d1b
2005-05-28 12:10:29 +00:00
Kenneth J Davis 4a2ad74a44 minor build fixes (when features disabled) and merge in Udo's EnhancedDR changes
git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/branches/UNSTABLE@1097 6ac86273-5f31-0410-b378-82cca8765d1b
2005-01-22 20:45:13 +00:00
Kenneth J Davis babd516db4 fix warning to not include garbage chars
git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/branches/UNSTABLE@1088 6ac86273-5f31-0410-b378-82cca8765d1b
2005-01-07 21:03:00 +00:00
Kenneth J Davis ebecfcb6b0 add dumpbs option to sys
git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/branches/UNSTABLE@1083 6ac86273-5f31-0410-b378-82cca8765d1b
2005-01-01 15:30:56 +00:00
Kenneth J Davis 47137fde93 add some debug messages, use master_env even if no SET= in config.sys, cosmetic changes to sys
git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/branches/UNSTABLE@1077 6ac86273-5f31-0410-b378-82cca8765d1b
2004-12-22 12:11:00 +00:00
Kenneth J Davis d3482e2c86 corrections for prior sys changes
git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/branches/UNSTABLE@1076 6ac86273-5f31-0410-b378-82cca8765d1b
2004-12-20 00:13:32 +00:00
Kenneth J Davis fc19c3584f fix TC build (remove signed/unsigned mix warning)
git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/branches/UNSTABLE@1075 6ac86273-5f31-0410-b378-82cca8765d1b
2004-12-19 22:37:16 +00:00
Kenneth J Davis e90387e6dd change comments to old C style (oops, TC fix)
git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/branches/UNSTABLE@1073 6ac86273-5f31-0410-b378-82cca8765d1b
2004-12-19 21:35:14 +00:00
Kenneth J Davis 89c51f2223 rework sys option handling and add some, update sys docs
git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/branches/UNSTABLE@1072 6ac86273-5f31-0410-b378-82cca8765d1b
2004-12-19 19:33:29 +00:00
Luchezar Georgiev b7a86735a2 Bart enhanced EXEFLAT for smaller packed binary; now calls UPX itself
git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/branches/UNSTABLE@1063 6ac86273-5f31-0410-b378-82cca8765d1b
2004-11-17 18:01:54 +00:00
Kenneth J Davis b5b7fec1a8 include OEM MS/PC boot sector in sys by default
git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/branches/UNSTABLE@1050 6ac86273-5f31-0410-b378-82cca8765d1b
2004-09-20 09:41:42 +00:00
Kenneth J Davis 6eff2f4bb2 correct non8086 division in bootcode, add boot drive option to sys
git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/branches/UNSTABLE@1034 6ac86273-5f31-0410-b378-82cca8765d1b
2004-09-11 13:42:30 +00:00
Luchezar Georgiev 7aaf2cae37 Fix warning and typo
git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/branches/UNSTABLE@1033 6ac86273-5f31-0410-b378-82cca8765d1b
2004-09-10 07:43:05 +00:00
Luchezar Georgiev b3a4a7eda1 Clobber oem*.h too
git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/branches/UNSTABLE@1030 6ac86273-5f31-0410-b378-82cca8765d1b
2004-09-09 12:29:09 +00:00
Kenneth J Davis 6e7415e7a4 add optionally compiled in support to sys for PC/MS DOS versions (FAT16 only)
git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/branches/UNSTABLE@1027 6ac86273-5f31-0410-b378-82cca8765d1b
2004-09-07 18:31:41 +00:00
Kenneth J Davis 463535c87d limited support for DR-DOS enhancement project or any OEM DOS using IBMBIO/IBMDOS
git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/branches/UNSTABLE@1025 6ac86273-5f31-0410-b378-82cca8765d1b
2004-09-06 09:41:29 +00:00
Luchezar Georgiev a6b468389b COUNTRY.SYS & NLSFUNC support added: Lucho, Eduardo.
32RTM and BRUN45 incompatibilities fixed by Michael.
ZIP drive serial numbers now work: bug fix by Lucho.
Small clean-ups and optimisations by Lucho & Arkady.


git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/branches/UNSTABLE@1023 6ac86273-5f31-0410-b378-82cca8765d1b
2004-09-03 09:26:53 +00:00
Kenneth J Davis f4ab00c556 patches from Arkady, Lucho, and Bart -- see history.txt for details
git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/branches/UNSTABLE@1009 6ac86273-5f31-0410-b378-82cca8765d1b
2004-07-25 09:55:58 +00:00
Kenneth J Davis 9c94426d7a Lucho's kernel with Arkady's changes, initial unstable branch
git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/branches/UNSTABLE@988 6ac86273-5f31-0410-b378-82cca8765d1b
2004-07-09 02:16:31 +00:00
Bart Oldeman 090bd524f5 Turbo C really wants unsigned __brklvl. Only shows up if you enable stack
checking.


git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@935 6ac86273-5f31-0410-b378-82cca8765d1b
2004-05-11 10:57:57 +00:00
Bart Oldeman cfed8c6f29 We must do "sbb ax, ax" *before* "popf" otherwise it won't be predictable!
git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@856 6ac86273-5f31-0410-b378-82cca8765d1b
2004-04-09 23:51:44 +00:00
Bart Oldeman 7ae98cee2a Introduce VA_CDECL: only Turbo C 2.01 needs an explicit cdecl for printf,
all other compilers can use it with pascal or "register" calling conventions.
Saves ~50 bytes for the init code.


git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@845 6ac86273-5f31-0410-b378-82cca8765d1b
2004-04-07 16:13:23 +00:00
Bart Oldeman aeec36ea4b talloc fix from Lucho
git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@801 6ac86273-5f31-0410-b378-82cca8765d1b
2004-03-17 22:06:57 +00:00
Bart Oldeman 9e92e3025b Correct int25/26 pragmas. Need to explicitly preserve bp and pop flags.
git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@791 6ac86273-5f31-0410-b378-82cca8765d1b
2004-03-02 10:46:28 +00:00
Bart Oldeman 005e8cc35f talloc won't work with MSC (no sbrk or brk available)
git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@774 6ac86273-5f31-0410-b378-82cca8765d1b
2004-02-07 17:59:45 +00:00
Bart Oldeman e7f0852dbd correct sectors/track, head and hidden sector values if the boot sector
disagrees with the default bpb (unless the default bpb says that the
number of hidden sectors is zero (usual for floppies)).

introduce generic_block_ioctl() function to handle all 0x440d ioctls
(inclusive locking)


git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@763 6ac86273-5f31-0410-b378-82cca8765d1b
2004-01-31 15:01:40 +00:00
Bart Oldeman 677bac3481 From Lucho:
SYS 3.0 changes: added /L parameter to SYS to be able to change the kernel
boot segment + a few boot sector changes to get the pointer at the same
magic place for all boot sectors.


git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@751 6ac86273-5f31-0410-b378-82cca8765d1b
2004-01-26 00:40:41 +00:00
Bart Oldeman 01d58b2836 ~1K size reduction for sys.com by using Tom's talloc.c malloc/free functions
and using our own filelength for watcomc.


git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@746 6ac86273-5f31-0410-b378-82cca8765d1b
2004-01-25 21:44:17 +00:00
Bart Oldeman a7a6a51adf Improved option handling and a new generic /k option for sys.
git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@706 6ac86273-5f31-0410-b378-82cca8765d1b
2003-09-23 22:31:32 +00:00
Bart Oldeman c669f3644c + Changes Lucho
* boot.asm, boot32.asm, boot32lb.asm, sys.c: add metakern support:
      sys looks for a file metakern.sys which is a multiple of 512.


git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@702 6ac86273-5f31-0410-b378-82cca8765d1b
2003-09-21 16:13:16 +00:00
Bart Oldeman 178b66e6de Flip some slashes for Linux compat; simplifications in kernel/makefile
git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@688 6ac86273-5f31-0410-b378-82cca8765d1b
2003-09-15 10:46:24 +00:00
Bart Oldeman 1d62201ec7 Move manually added "RCS" entries to the CVS log.
git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@664 6ac86273-5f31-0410-b378-82cca8765d1b
2003-08-28 21:43:14 +00:00
Bart Oldeman fa11f8e0c5 Add lock/unlock drive to SYS (from Lucho).
git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@658 6ac86273-5f31-0410-b378-82cca8765d1b
2003-08-28 20:36:16 +00:00
Bart Oldeman 9a3da2b737 Version 2.7 luchezar, tomehlert, ericauer 2003/8/5
boot.asm modified to support non-512 byte sectors (e.g. 1.2 MB NEC diskettes)
  512 byte sector size check removed (although Eric's boot32ea.asm does require
    512-byte sectors, all LBA FAT32 volumes have 512-byte sectors anyway).
  boot.asm cleaned up and modified to support Metakern (by Tom, Eric and Lucho)
  bsDriveNumber updated by SYS even #ifndef STORE_BOOT_INFO (nothing in common)

Version 2.7beta, Luchezar Georgiev, 1 August 2003
  o  Now supports and includes the following new boot sectors:
       1) the combined CHS+LBA FAT12/FAT16 boot sector by Tom Ehlert (29 July)
       2) the CHS-only FAT32 boot sector -- as patched by Jon Gentle (08 July)
       3) the LBA-only FAT32 boot sector by Eric Auer and Jon Gentle (19 July)
  o  The old combined (CHS+LBA), no-CALCPARAMS, no-resizable, non-Ghostable,
     non-standard FAT32 boot sector and STORE_BOOT_INFO is no longer used.
  o  dump_sector() showed ASCII debug printout for the old sector only - fixed.
  o  Put a boot sector only if sector size = 512 (may it not be so in Japan?!).
     If non-512 byte sectors encountered, report to the fd-kernel mailing list.
  o  Now puts boot sector before copying kernel/shell so it works in WinNT now.
  o  check_space() now implemented at last (required significant modifications)
  o  New file system (FAT type) detection method according to a MS White Paper.
  o  Now BOOTONLY works even without a preceding boot sector image file name.
  o  Some minor code cleanups.

Bart: some cleanups to the above; replaced 386 code for CHS FAT32 by 8088 code.
use boot32lb.asm instead of boot32ea.asm


git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@652 6ac86273-5f31-0410-b378-82cca8765d1b
2003-08-08 15:01:15 +00:00
Bart Oldeman 9f15e02db9 Correct get_root, make kbdType public, sys config patches from Tom.
git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@614 6ac86273-5f31-0410-b378-82cca8765d1b
2003-06-17 11:55:44 +00:00
Bart Oldeman 2a83b111c4 Check if source and destination are identical before copying.
git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@607 6ac86273-5f31-0410-b378-82cca8765d1b
2003-06-16 13:33:40 +00:00
Bart Oldeman d56013c885 BOOTONLY support for SYS
git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@603 6ac86273-5f31-0410-b378-82cca8765d1b
2003-06-15 22:01:45 +00:00
Bart Oldeman 05df4d89f4 if user left accidentally floppy or CD in drive, give him a chance to continue to boot from HD.
disabled by default, enablable by SYS CONFIG (Tom Ehlert)


git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@591 6ac86273-5f31-0410-b378-82cca8765d1b
2003-06-15 14:38:13 +00:00
Bart Oldeman e67a8f5058 Changes for kernel 2028 (see history.txt)
git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@485 6ac86273-5f31-0410-b378-82cca8765d1b
2002-12-09 00:17:15 +00:00
Bart Oldeman 8651581383 Remove old log entries.
git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@482 6ac86273-5f31-0410-b378-82cca8765d1b
2002-11-18 22:51:27 +00:00
Bart Oldeman 04e8d7a5c6 Fix winnt+ problem with int26 by resetting the drive.
git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@457 6ac86273-5f31-0410-b378-82cca8765d1b
2002-11-09 19:07:11 +00:00
Bart Oldeman 83b77cbb1b Changes for kernel 2027rc.
git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@427 6ac86273-5f31-0410-b378-82cca8765d1b
2002-10-22 02:40:19 +00:00
Bart Oldeman dfeb595f8e Last changes for kernel 2027 test.
git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@414 6ac86273-5f31-0410-b378-82cca8765d1b
2002-08-04 01:14:18 +00:00
Bart Oldeman cbad615e0b Enable LBA booting for FAT16 and workaround for floppies where DL is not
passed.


git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@397 6ac86273-5f31-0410-b378-82cca8765d1b
2002-08-02 22:27:58 +00:00
Bart Oldeman 11be0d22e4 Added protection for FS:, GS:, update makefiles to use CC and CL.
git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@396 6ac86273-5f31-0410-b378-82cca8765d1b
2002-08-02 21:55:14 +00:00