Bart Oldeman
59484b2fc9
EBDA corrections by Lucho
...
git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@680 6ac86273-5f31-0410-b378-82cca8765d1b
2003-09-09 17:30:10 +00:00
Bart Oldeman
6cd84b06d1
init_device corrections/cleanups (mainly by Arkady)
...
git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@679 6ac86273-5f31-0410-b378-82cca8765d1b
2003-09-09 17:29:19 +00:00
Bart Oldeman
44c5a93bdb
New UNREFERENCED_PARAMETER macro that appears to work for all compilers.
...
git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@678 6ac86273-5f31-0410-b378-82cca8765d1b
2003-09-09 17:22:03 +00:00
Bart Oldeman
569f053101
Change r_status and dh_name to unsigned quantities.
...
git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@677 6ac86273-5f31-0410-b378-82cca8765d1b
2003-09-09 17:21:08 +00:00
Bart Oldeman
c4235b8fff
Remove unused code.
...
git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@676 6ac86273-5f31-0410-b378-82cca8765d1b
2003-09-09 17:19:10 +00:00
Bart Oldeman
72c8bf17b8
Support for switches=/e[[:]nnnn] and for moving the EBDA (with Lucho)
...
git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@675 6ac86273-5f31-0410-b378-82cca8765d1b
2003-09-04 19:14:16 +00:00
Bart Oldeman
d1f48fb2b2
Add necessary "BootHardDiskSeconds" for non UPXed kernels.
...
git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@674 6ac86273-5f31-0410-b378-82cca8765d1b
2003-09-04 19:07:55 +00:00
Bart Oldeman
1266a13f7f
Add necessary casts to ? : constructions; cleanup read_line_handle a little.
...
git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@673 6ac86273-5f31-0410-b378-82cca8765d1b
2003-09-04 19:05:27 +00:00
Bart Oldeman
b88881b8a0
Add peek and poke #defines
...
git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@672 6ac86273-5f31-0410-b378-82cca8765d1b
2003-09-04 18:58:01 +00:00
Bart Oldeman
67ef543bae
Fix pointer overflow problem for reading line using handle.
...
git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@671 6ac86273-5f31-0410-b378-82cca8765d1b
2003-09-01 17:49:40 +00:00
Bart Oldeman
bef6672954
Use 0x10000UL (avoids Turbo C warning)
...
git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@667 6ac86273-5f31-0410-b378-82cca8765d1b
2003-08-31 10:22:32 +00:00
Bart Oldeman
648f60b05d
Clean cleans a bit more; change () to (void)
...
git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@666 6ac86273-5f31-0410-b378-82cca8765d1b
2003-08-31 10:20:28 +00:00
Bart Oldeman
8f1bbcd45d
Set the PSP before the DTA. This solves an interrupt vector table corruption.
...
git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@665 6ac86273-5f31-0410-b378-82cca8765d1b
2003-08-30 22:17:42 +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
df5776dca7
Adjustments for MSVC.
...
git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@663 6ac86273-5f31-0410-b378-82cca8765d1b
2003-08-28 21:03:47 +00:00
Bart Oldeman
f5a65b5992
int21/ax=440d lock/unlock logical/physical volume
...
simulate success for MS-DOS 7+ SCANDISK etc. --LG
git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@662 6ac86273-5f31-0410-b378-82cca8765d1b
2003-08-28 20:55:34 +00:00
Bart Oldeman
7471b8f614
&& should be || in check for \, / and :
...
git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@661 6ac86273-5f31-0410-b378-82cca8765d1b
2003-08-28 20:53:21 +00:00
Bart Oldeman
4e0c27f016
Adjust registers used when starting programs. Some demos expect
...
undocumented values.
git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@660 6ac86273-5f31-0410-b378-82cca8765d1b
2003-08-28 20:47:25 +00:00
Bart Oldeman
517fca72ae
Forgotten HMA_TEXT for MS compilers.
...
git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@659 6ac86273-5f31-0410-b378-82cca8765d1b
2003-08-28 20:37:29 +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
b0d2219a4c
Changelog correction.
...
git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@657 6ac86273-5f31-0410-b378-82cca8765d1b
2003-08-28 20:33:33 +00:00
Bart Oldeman
9b42b52056
Use "local" (instead of "global") disable/enable A20.
...
This solves the problems with NIOS.
git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@656 6ac86273-5f31-0410-b378-82cca8765d1b
2003-08-28 20:32:01 +00:00
Bart Oldeman
c444161296
Use near bpb on the stack in bpb_to_dpb.
...
Make sure the number of FAT sectors is actually enough to hold that
many clusters. Otherwise back the number of clusters down (LG & AB)
git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@655 6ac86273-5f31-0410-b378-82cca8765d1b
2003-08-28 20:30:09 +00:00
Bart Oldeman
68805961dc
Don't disable a20 for "exit" int21/ah=4c
...
git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@654 6ac86273-5f31-0410-b378-82cca8765d1b
2003-08-28 20:25:09 +00:00
Bart Oldeman
8a7b83ab63
Remove (unused) strncpy.
...
git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@653 6ac86273-5f31-0410-b378-82cca8765d1b
2003-08-09 09:35:18 +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
3229fe3fc4
From Luchezar: IOCTL 4406 provided reverse AL output on regular
...
files - FF if EOF, 0 if not. It should output 0 if EOF, FF if not.
git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@651 6ac86273-5f31-0410-b378-82cca8765d1b
2003-08-06 19:47:24 +00:00
Bart Oldeman
2b0c219e5e
Solve compilation problem with Borland C++ 3.1
...
git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@649 6ac86273-5f31-0410-b378-82cca8765d1b
2003-08-03 10:44:29 +00:00
Bart Oldeman
96c1c46d60
Fix ctrl-break bug.
...
git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@644 6ac86273-5f31-0410-b378-82cca8765d1b
2003-07-20 17:33:45 +00:00
Bart Oldeman
7e4774bcfa
"-p" is no longer necessary in config.bat
...
git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@643 6ac86273-5f31-0410-b378-82cca8765d1b
2003-07-19 18:12:26 +00:00
Bart Oldeman
d6e8d403ea
Update Changelog, version number.
...
git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@642 6ac86273-5f31-0410-b378-82cca8765d1b
2003-07-19 18:09:07 +00:00
Bart Oldeman
c672e81012
Correct problem with multiple UMBs
...
git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@641 6ac86273-5f31-0410-b378-82cca8765d1b
2003-07-19 15:06:55 +00:00
Bart Oldeman
8a9dcfe8bb
(from Tom) Fix a problem with the
...
'BootFromHarddiskIfNoKeyHit' option.
with some Compaq and Fujitsu/Siemens
Highend Equipment
git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@640 6ac86273-5f31-0410-b378-82cca8765d1b
2003-07-15 12:32:35 +00:00
Bart Oldeman
4a067595fc
config.txt updates from Bernd Blaauw
...
git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@639 6ac86273-5f31-0410-b378-82cca8765d1b
2003-07-15 12:30:34 +00:00
Bart Oldeman
dde7ba7791
There aren't lastdrive open file handles but a maximum of 20.
...
git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@638 6ac86273-5f31-0410-b378-82cca8765d1b
2003-07-14 19:17:01 +00:00
Bart Oldeman
7f21061003
Make a message #ifdef DEBUG only.
...
git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@637 6ac86273-5f31-0410-b378-82cca8765d1b
2003-07-12 20:57:23 +00:00
Bart Oldeman
756c578ca7
(joint with Luchezar Georgiev): add extra low disk buffer to avoid HMA
...
problems with certain device driver. Add an extra space for the device
driver command line and point to a correct environment for
INSTALL= (fixes problems with xmsdsk).
git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@636 6ac86273-5f31-0410-b378-82cca8765d1b
2003-07-12 20:56:11 +00:00
Bart Oldeman
d7f6e1181f
From Luchezar Georgiev: parameters were in the wrong order...
...
git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@635 6ac86273-5f31-0410-b378-82cca8765d1b
2003-07-10 10:46:31 +00:00
Bart Oldeman
8c2eb41fc6
Correct typo.
...
git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@634 6ac86273-5f31-0410-b378-82cca8765d1b
2003-06-30 18:52:43 +00:00
Bart Oldeman
0971f348b2
Small size optimization and INSTALLHIGH correction.
...
git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@633 6ac86273-5f31-0410-b378-82cca8765d1b
2003-06-30 18:50:38 +00:00
Bart Oldeman
f91f2bac8d
Small size optimizations.
...
git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@632 6ac86273-5f31-0410-b378-82cca8765d1b
2003-06-30 18:46:37 +00:00
Bart Oldeman
c086225a9b
Correct comment.
...
git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@631 6ac86273-5f31-0410-b378-82cca8765d1b
2003-06-30 18:45:37 +00:00
Bart Oldeman
138afdab72
Declare more symbols as "ASM" to enable pascal calling conventions by
...
default for turbo compilers.
git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@630 6ac86273-5f31-0410-b378-82cca8765d1b
2003-06-30 18:44:43 +00:00
Bart Oldeman
27ee8b1c74
Removed unnecessary jcxz's.
...
git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@629 6ac86273-5f31-0410-b378-82cca8765d1b
2003-06-30 18:43:28 +00:00
Bart Oldeman
d60b01e511
intr() cleanup and small optimizations.
...
git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@628 6ac86273-5f31-0410-b378-82cca8765d1b
2003-06-30 18:42:51 +00:00
Bart Oldeman
18fa8e0091
Slash conversion to enable cross compilation.
...
git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@627 6ac86273-5f31-0410-b378-82cca8765d1b
2003-06-30 18:39:44 +00:00
Bart Oldeman
a69548773a
Use PASCAL calling convention by default for turbo C
...
git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@626 6ac86273-5f31-0410-b378-82cca8765d1b
2003-06-30 18:36:30 +00:00
Bart Oldeman
4780a1fc94
NLS changes from Steffen
...
git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@625 6ac86273-5f31-0410-b378-82cca8765d1b
2003-06-27 22:02:57 +00:00
Bart Oldeman
2fdf99331d
Added structure to nls.h; small main.c cleanup.
...
git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@624 6ac86273-5f31-0410-b378-82cca8765d1b
2003-06-20 20:06:24 +00:00
Bart Oldeman
c5c7128a02
Move externs to header files; sft init cleanup (+3 files need to be low)
...
git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@623 6ac86273-5f31-0410-b378-82cca8765d1b
2003-06-20 19:54:18 +00:00