Kenneth J Davis
42c99c7d70
ensure f_nodes.f_count are initialized to 0 (always clear KernelAlloc'd memory)
...
git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@1098 6ac86273-5f31-0410-b378-82cca8765d1b
2005-01-29 04:59:31 +00:00
Kenneth J Davis
5c262419e5
fix bug 1789
...
git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@1090 6ac86273-5f31-0410-b378-82cca8765d1b
2005-01-09 11:30:44 +00:00
Kenneth J Davis
ded1a47b81
bug 1850, properly handle block drivers failing just by returning no units
...
git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@1084 6ac86273-5f31-0410-b378-82cca8765d1b
2005-01-01 18:03:43 +00:00
Kenneth J Davis
89d10726a6
from Bart, invoke DOS idle int 28h for int21/ah=6/dl=ff if busy waiting on input
...
git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@1066 6ac86273-5f31-0410-b378-82cca8765d1b
2004-11-21 13:37:52 +00:00
Bart Oldeman
cca3ca9547
Don't use implicit int.
...
git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@1062 6ac86273-5f31-0410-b378-82cca8765d1b
2004-11-15 09:53:08 +00:00
Kenneth J Davis
f1421b184e
force use of label until additional merge allows uncommenting chunk so builds
...
git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@1049 6ac86273-5f31-0410-b378-82cca8765d1b
2004-09-20 08:08:27 +00:00
Kenneth J Davis
a40b93283f
merge from UNSTABLE: inthndlr.c (Lucho): added Int 2Fh/26-29h with Eduardo
...
for NLSFUNC, bug fixes from Michael Devore (add undoc behavior), and
fix MS Format + Ramdisk bug in INT21/5F07 and 5F08
git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@1037 6ac86273-5f31-0410-b378-82cca8765d1b
2004-09-12 06:07:21 +00:00
Kenneth J Davis
99f863a28f
merge in some changes from UNSTABLE, batch files no change just line ending issue
...
git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@1036 6ac86273-5f31-0410-b378-82cca8765d1b
2004-09-12 04:46:28 +00:00
Bart Oldeman
74b074660d
Set CX=0 for int21/ah=30. Avoids bug in Borland's 32RTM.EXE
...
git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@1016 6ac86273-5f31-0410-b378-82cca8765d1b
2004-08-15 08:16:51 +00:00
Bart Oldeman
7cd4f6c14b
int21/ah=0x1b,0x1c should only change AL
...
Change prototype of DosGetFree so it returns AX (Arkady)
Checking the return value for FFFF is enough to check for failure.
git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@1008 6ac86273-5f31-0410-b378-82cca8765d1b
2004-07-25 08:04:54 +00:00
Bart Oldeman
7c861194f8
Fix compilation error.
...
git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@1007 6ac86273-5f31-0410-b378-82cca8765d1b
2004-07-25 07:20:23 +00:00
Bart Oldeman
cd85d78739
Need to check for navc!=NULL, not *nc!=0xffff in DosGetFree.
...
git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@1006 6ac86273-5f31-0410-b378-82cca8765d1b
2004-07-25 00:08:34 +00:00
Bart Oldeman
a6a6cfec9d
Preserving di in ludivmul.inc: fixes problem with the modulo when
...
divisor > 0xffff.
git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@1005 6ac86273-5f31-0410-b378-82cca8765d1b
2004-07-24 23:56:32 +00:00
Bart Oldeman
7d0a83c800
Preserve DI in call_nls (fixes problem reported by Eduardo)
...
git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@1004 6ac86273-5f31-0410-b378-82cca8765d1b
2004-07-24 23:54:23 +00:00
Bart Oldeman
56682a5656
Fix: AL was not passed to FcbParseFname (int21/ah=29) (Arkady)
...
git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@1003 6ac86273-5f31-0410-b378-82cca8765d1b
2004-07-24 23:53:21 +00:00
Bart Oldeman
fe30b5a698
Fix some dependencies.
...
git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@973 6ac86273-5f31-0410-b378-82cca8765d1b
2004-05-30 20:59:33 +00:00
Bart Oldeman
11e6ccefbf
high-part-of register save fixes from Lucho.
...
Bump version to 2035.
git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@971 6ac86273-5f31-0410-b378-82cca8765d1b
2004-05-30 19:31:07 +00:00
Bart Oldeman
2c8a4b8c34
MSC fixes and small cleanups from Lucho
...
git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@970 6ac86273-5f31-0410-b378-82cca8765d1b
2004-05-29 09:51:47 +00:00
Bart Oldeman
41edf4f640
Don't take attr if dpbp == NULL! OW does some optimizations assuming that
...
NULL does not point to valid memory, in this case it hurts.
git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@969 6ac86273-5f31-0410-b378-82cca8765d1b
2004-05-29 01:33:12 +00:00
Bart Oldeman
7a9c620d82
DosUmbLink no longer tries to merge free blocks. Also cleaned up a bit.
...
git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@968 6ac86273-5f31-0410-b378-82cca8765d1b
2004-05-28 19:08:48 +00:00
Bart Oldeman
3f72bd1865
DJ mechanism without memcpy.
...
git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@967 6ac86273-5f31-0410-b378-82cca8765d1b
2004-05-28 13:44:49 +00:00
Bart Oldeman
4199f4c6c8
Cache attr and control flow optimizations from Lucho (~120 bytes)
...
git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@966 6ac86273-5f31-0410-b378-82cca8765d1b
2004-05-28 13:15:22 +00:00
Bart Oldeman
dace548223
(mostly from Lucho) deal with the correct structure for generic and
...
query ioctls. Fixes issues with 3rd party device drivers (or ones that use
dsk.c)
git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@965 6ac86273-5f31-0410-b378-82cca8765d1b
2004-05-28 12:57:41 +00:00
Bart Oldeman
0168037d73
From Lucho: no need to preserve ebx
...
git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@964 6ac86273-5f31-0410-b378-82cca8765d1b
2004-05-28 11:58:18 +00:00
Bart Oldeman
57bac85ae3
Applied most of Arkady's initdisk optimizations (65 bytes) and is_suspect fix.
...
git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@963 6ac86273-5f31-0410-b378-82cca8765d1b
2004-05-25 19:24:55 +00:00
Bart Oldeman
e71f6448ab
Fix int21/3302 (the swap was wrong, Lucho & Bart)
...
Made int21/3301,2e,54 consistent with MSDOS behaviour (Lucho)
Fix int21/5e02+ (mentioned by Arkady)
git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@962 6ac86273-5f31-0410-b378-82cca8765d1b
2004-05-25 18:47:43 +00:00
Bart Oldeman
c90e1e3c11
Fix problem with wrong remote_rw cast and unused variable.
...
git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@961 6ac86273-5f31-0410-b378-82cca8765d1b
2004-05-25 00:02:46 +00:00
Bart Oldeman
9a1418a6c8
cleanups by Lucho
...
git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@960 6ac86273-5f31-0410-b378-82cca8765d1b
2004-05-24 23:38:11 +00:00
Bart Oldeman
0c00651565
Pointer-ise specificCountriesSupported accesses.
...
git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@959 6ac86273-5f31-0410-b378-82cca8765d1b
2004-05-24 23:34:22 +00:00
Bart Oldeman
b3a2d6bfde
Reorganized GetBiosKey a bit -- inlining GetBiosTime saves a slight amount
...
of code, converted timeout < 0 to a blocking read instead of polling.
git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@958 6ac86273-5f31-0410-b378-82cca8765d1b
2004-05-24 18:39:49 +00:00
Bart Oldeman
c0f1c45d1f
Use strcaseequal instead of strcasecmp since we never care about order
...
anyway.
git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@957 6ac86273-5f31-0410-b378-82cca8765d1b
2004-05-24 18:06:04 +00:00
Bart Oldeman
195614981a
Fix problem with #ifdef DEBUG HMA check. Use more descriptive name
...
(EnabledA20).
git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@956 6ac86273-5f31-0410-b378-82cca8765d1b
2004-05-24 17:07:04 +00:00
Bart Oldeman
39e6b427f4
Fixed new bugs caused by typos.
...
git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@955 6ac86273-5f31-0410-b378-82cca8765d1b
2004-05-24 11:42:28 +00:00
Bart Oldeman
3eac7d3c19
Fix problem with redirected input and int21/ah=0a (debug < foo.txt) --
...
could get you an invalid opcode!
git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@954 6ac86273-5f31-0410-b378-82cca8765d1b
2004-05-23 22:53:11 +00:00
Bart Oldeman
99e727b73d
Use int29 for kernel console output. Enables ansi escape sequences in config.sys once you load nansi.sys. It also saves a couple of bytes.
...
git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@953 6ac86273-5f31-0410-b378-82cca8765d1b
2004-05-23 22:04:42 +00:00
Bart Oldeman
f8be820925
Clear up confusing (void *)n using a macro.
...
git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@952 6ac86273-5f31-0410-b378-82cca8765d1b
2004-05-23 21:18:37 +00:00
Bart Oldeman
86a8e9c2d2
This was unequal replacement: in new code performed more memory access
...
git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@951 6ac86273-5f31-0410-b378-82cca8765d1b
2004-05-23 20:06:51 +00:00
Bart Oldeman
c863987e18
Arkady changed/optimized allocmem()
...
git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@950 6ac86273-5f31-0410-b378-82cca8765d1b
2004-05-23 20:01:30 +00:00
Bart Oldeman
05f3cdd165
Arkady: bugfix for INT21/440b (change NetRetry if DX is _non_zero).
...
git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@949 6ac86273-5f31-0410-b378-82cca8765d1b
2004-05-23 19:53:33 +00:00
Bart Oldeman
b723ff9a46
inthndler cleanups, mostly from Arkady
...
Bart: made dosmktmp to return a long: consistent with DosOpen et al and
avoids the cast.
git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@948 6ac86273-5f31-0410-b378-82cca8765d1b
2004-05-23 19:45:48 +00:00
Bart Oldeman
fe3a2a1dd5
Some small cleanups from Lucho.
...
git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@946 6ac86273-5f31-0410-b378-82cca8765d1b
2004-05-23 18:28:18 +00:00
Bart Oldeman
b89c1b7cd3
Disabled EBDA moves by default. Automatic EBDA moves now happen using
...
switches=/e:-1
git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@945 6ac86273-5f31-0410-b378-82cca8765d1b
2004-05-23 16:30:25 +00:00
Bart Oldeman
c97bc20bf2
GetNumArg and misc other cleanups from Lucho
...
git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@944 6ac86273-5f31-0410-b378-82cca8765d1b
2004-05-23 16:21:14 +00:00
Bart Oldeman
24d27f2f9b
From Tom: must set r_bpfat for C_BLDBPB, otherwise USBASPI.SYS, DI1000DD.SYS
...
won't like us. From Lucho: use DiskTransferBuffer for deblock_buf.
git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@943 6ac86273-5f31-0410-b378-82cca8765d1b
2004-05-23 15:10:08 +00:00
Bart Oldeman
de5bed6d28
From Lucho: converted TM_ENCODE into a function. Various cleanups in fatfs.c
...
git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@942 6ac86273-5f31-0410-b378-82cca8765d1b
2004-05-23 15:00:37 +00:00
Bart Oldeman
42c0af3aee
Inlined dos_setdta. Various bug fixes and cleanups from Lucho and Arkady.
...
git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@941 6ac86273-5f31-0410-b378-82cca8765d1b
2004-05-23 14:49:11 +00:00
Bart Oldeman
2cdf880b85
From Lucho: moved fmemcmp's into a checkHMA function.
...
git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@940 6ac86273-5f31-0410-b378-82cca8765d1b
2004-05-23 14:45:27 +00:00
Bart Oldeman
4c116b0201
Pointer-ize MenuStruct[MenuSelected]... (from Lucho). and InstallCommands[i].
...
(from Bart). Some other small optimizations.
git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@939 6ac86273-5f31-0410-b378-82cca8765d1b
2004-05-23 14:24:32 +00:00
Bart Oldeman
91b3515162
From Lucho: replace loops by fmemset/fmemcpy (43 bytes)
...
git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@938 6ac86273-5f31-0410-b378-82cca8765d1b
2004-05-23 14:17:36 +00:00
Bart Oldeman
b5e2616877
Merge dosmkdir and dosrmdir (mostly from Lucho)
...
git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@937 6ac86273-5f31-0410-b378-82cca8765d1b
2004-05-23 14:10:39 +00:00