Truncated and disabled $Logs, fixed r/w bugs for kernel 2025b
git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@326 6ac86273-5f31-0410-b378-82cca8765d1b
This commit is contained in:
parent
56c49450fe
commit
fe51b7a036
@ -3,26 +3,6 @@ rem
|
||||
rem Create a distribution floppy
|
||||
rem
|
||||
rem $Header$
|
||||
rem $Log$
|
||||
rem Revision 1.4 2001/11/04 21:46:53 bartoldeman
|
||||
rem Text files need to be LF ended at the server. So be it...
|
||||
rem
|
||||
rem Revision 1.3 2001/03/22 04:12:43 bartoldeman
|
||||
rem Change LF to CR/LF in batch files.
|
||||
rem
|
||||
rem Revision 1.2 2000/05/11 03:51:37 jimtabor
|
||||
rem Clean up and Release
|
||||
rem
|
||||
rem Revision 1.3 1999/08/25 03:15:33 jprice
|
||||
rem ror4 patches to allow TC 2.01 compile.
|
||||
rem
|
||||
rem Revision 1.2 1999/04/01 07:22:58 jprice
|
||||
rem no message
|
||||
rem
|
||||
rem Revision 1.1.1.1 1999/03/29 15:40:21 jprice
|
||||
rem New version without IPL.SYS
|
||||
rem
|
||||
rem
|
||||
|
||||
set D=A:
|
||||
if "%1" == "b:" set D=B:
|
||||
@ -53,3 +33,24 @@ goto done
|
||||
echo Floppy creation aborted
|
||||
:done
|
||||
set D=
|
||||
|
||||
rem Log: install.bat,v
|
||||
rem Revision 1.4 2001/11/04 21:46:53 bartoldeman
|
||||
rem Text files need to be LF ended at the server. So be it...
|
||||
rem
|
||||
rem Revision 1.3 2001/03/22 04:12:43 bartoldeman
|
||||
rem Change LF to CR/LF in batch files.
|
||||
rem
|
||||
rem Revision 1.2 2000/05/11 03:51:37 jimtabor
|
||||
rem Clean up and Release
|
||||
rem
|
||||
rem Revision 1.3 1999/08/25 03:15:33 jprice
|
||||
rem ror4 patches to allow TC 2.01 compile.
|
||||
rem
|
||||
rem Revision 1.2 1999/04/01 07:22:58 jprice
|
||||
rem no message
|
||||
rem
|
||||
rem Revision 1.1.1.1 1999/03/29 15:40:21 jprice
|
||||
rem New version without IPL.SYS
|
||||
rem
|
||||
rem
|
||||
|
142
boot/boot.asm
142
boot/boot.asm
@ -26,84 +26,6 @@
|
||||
; Cambridge, MA 02139, USA.
|
||||
;
|
||||
;
|
||||
; $Log$
|
||||
; Revision 1.5 2001/11/13 23:36:45 bartoldeman
|
||||
; Kernel 2025a final changes.
|
||||
;
|
||||
; Revision 1.4 2001/04/29 17:34:39 bartoldeman
|
||||
; A new SYS.COM/config.sys single stepping/console output/misc fixes.
|
||||
;
|
||||
; Revision 1.3 2000/05/25 20:56:19 jimtabor
|
||||
; Fixed project history
|
||||
;
|
||||
; Revision 1.2 2000/05/11 03:56:42 jimtabor
|
||||
; Clean up and Release
|
||||
;
|
||||
; Revision 1.1.1.1 2000/05/06 19:34:53 jhall1
|
||||
; The FreeDOS Kernel. A DOS kernel that aims to be 100% compatible with
|
||||
; MS-DOS. Distributed under the GNU GPL.
|
||||
;
|
||||
; Revision 1.12 1999/09/25 06:42:18 jprice
|
||||
; Optimize boot loader. Documentation.
|
||||
;
|
||||
; Revision 1.11 1999/09/24 19:04:55 jprice
|
||||
; Added changes recommended by Jens Horstmeier
|
||||
|
||||
; to make their bootable CD work.
|
||||
;
|
||||
; Revision 1.10 1999/09/23 04:39:02 jprice
|
||||
; *** empty log message ***
|
||||
;
|
||||
; Revision 1.7 1999/04/23 03:43:46 jprice
|
||||
; Ported to NASM by ror4
|
||||
;
|
||||
; Revision 1.6 1999/04/17 19:14:03 jprice
|
||||
; Fixed multi-sector code
|
||||
;
|
||||
; Revision 1.5 1999/04/17 06:23:26 jprice
|
||||
; Changed so multi-sector IO is optional.
|
||||
;
|
||||
; Revision 1.4 1999/04/13 15:52:22 jprice
|
||||
; Moves boot sector to top of mem
|
||||
;
|
||||
; Revision 1.3 1999/04/06 22:53:36 jprice
|
||||
; Put back code to read multiple sectors at a time.
|
||||
;
|
||||
; Revision 1.2 1999/04/01 07:23:20 jprice
|
||||
; New boot loader
|
||||
;
|
||||
; Revision 1.1.1.1 1999/03/29 15:39:39 jprice
|
||||
; New version without IPL.SYS
|
||||
;
|
||||
; Revision 1.3 1999/03/02 06:57:14 jprice
|
||||
; Added entry address for more recent versions of TLINK
|
||||
;
|
||||
; Revision 1.2 1999/01/21 05:03:58 jprice
|
||||
; Formating.
|
||||
;
|
||||
; Revision 1.1.1.1 1999/01/20 05:51:00 jprice
|
||||
; Imported sources
|
||||
;
|
||||
;
|
||||
; Rev 1.5 10 Jan 1997 4:58:06 patv
|
||||
; Corrected copyright
|
||||
;
|
||||
; Rev 1.4 10 Jan 1997 4:52:50 patv
|
||||
; Re-written to support C drive and eliminate restrictions on IPL.SYS
|
||||
;
|
||||
; Rev 1.3 29 Aug 1996 13:06:50 patv
|
||||
; Bug fixes for v0.91b
|
||||
;
|
||||
; Rev 1.2 01 Sep 1995 17:56:44 patv
|
||||
; First GPL release.
|
||||
;
|
||||
; Rev 1.1 30 Jul 1995 20:37:38 patv
|
||||
; Initialized stack before use.
|
||||
;
|
||||
; Rev 1.0 02 Jul 1995 10:57:52 patv
|
||||
; Initial revision.
|
||||
;
|
||||
|
||||
; +--------+
|
||||
; | |
|
||||
; | |
|
||||
@ -606,3 +528,67 @@ filename db "KERNEL SYS"
|
||||
times 0x01fe-$+$$ db 0
|
||||
|
||||
sign dw 0xAA55
|
||||
|
||||
; Log: boot.asm,v
|
||||
;
|
||||
; Revision 1.12 1999/09/25 06:42:18 jprice
|
||||
; Optimize boot loader. Documentation.
|
||||
;
|
||||
; Revision 1.11 1999/09/24 19:04:55 jprice
|
||||
; Added changes recommended by Jens Horstmeier
|
||||
|
||||
; to make their bootable CD work.
|
||||
;
|
||||
; Revision 1.10 1999/09/23 04:39:02 jprice
|
||||
; *** empty log message ***
|
||||
;
|
||||
; Revision 1.7 1999/04/23 03:43:46 jprice
|
||||
; Ported to NASM by ror4
|
||||
;
|
||||
; Revision 1.6 1999/04/17 19:14:03 jprice
|
||||
; Fixed multi-sector code
|
||||
;
|
||||
; Revision 1.5 1999/04/17 06:23:26 jprice
|
||||
; Changed so multi-sector IO is optional.
|
||||
;
|
||||
; Revision 1.4 1999/04/13 15:52:22 jprice
|
||||
; Moves boot sector to top of mem
|
||||
;
|
||||
; Revision 1.3 1999/04/06 22:53:36 jprice
|
||||
; Put back code to read multiple sectors at a time.
|
||||
;
|
||||
; Revision 1.2 1999/04/01 07:23:20 jprice
|
||||
; New boot loader
|
||||
;
|
||||
; Revision 1.1.1.1 1999/03/29 15:39:39 jprice
|
||||
; New version without IPL.SYS
|
||||
;
|
||||
; Revision 1.3 1999/03/02 06:57:14 jprice
|
||||
; Added entry address for more recent versions of TLINK
|
||||
;
|
||||
; Revision 1.2 1999/01/21 05:03:58 jprice
|
||||
; Formating.
|
||||
;
|
||||
; Revision 1.1.1.1 1999/01/20 05:51:00 jprice
|
||||
; Imported sources
|
||||
;
|
||||
;
|
||||
; Rev 1.5 10 Jan 1997 4:58:06 patv
|
||||
; Corrected copyright
|
||||
;
|
||||
; Rev 1.4 10 Jan 1997 4:52:50 patv
|
||||
; Re-written to support C drive and eliminate restrictions on IPL.SYS
|
||||
;
|
||||
; Rev 1.3 29 Aug 1996 13:06:50 patv
|
||||
; Bug fixes for v0.91b
|
||||
;
|
||||
; Rev 1.2 01 Sep 1995 17:56:44 patv
|
||||
; First GPL release.
|
||||
;
|
||||
; Rev 1.1 30 Jul 1995 20:37:38 patv
|
||||
; Initialized stack before use.
|
||||
;
|
||||
; Rev 1.0 02 Jul 1995 10:57:52 patv
|
||||
; Initial revision.
|
||||
;
|
||||
|
||||
|
@ -4,25 +4,28 @@
|
||||
# $Id$
|
||||
#
|
||||
|
||||
# $Log$
|
||||
# Revision 1.2 2001/11/13 23:36:45 bartoldeman
|
||||
# Kernel 2025a final changes.
|
||||
#
|
||||
# Revision 1.1 2001/11/04 20:10:15 bartoldeman
|
||||
# Added new makefile names, utils sources, kconfig.h
|
||||
#
|
||||
# Revision 1.4 2001/09/23 20:39:44 bartoldeman
|
||||
# FAT32 support, misc fixes, INT2F/AH=12 support, drive B: handling
|
||||
#
|
||||
# Revision 1.3 2000/05/25 20:56:19 jimtabor
|
||||
# Fixed project history
|
||||
#
|
||||
# Revision 1.2 2000/05/11 03:56:42 jimtabor
|
||||
# Clean up and Release
|
||||
#
|
||||
# Revision 1.1.1.1 2000/05/06 19:34:53 jhall1
|
||||
# The FreeDOS Kernel. A DOS kernel that aims to be 100% compatible with
|
||||
# MS-DOS. Distributed under the GNU GPL.
|
||||
|
||||
!include "..\mkfiles\generic.mak"
|
||||
|
||||
production: b_fat12.bin b_fat16.bin b_fat32.bin
|
||||
|
||||
b_fat12.bin: boot.asm
|
||||
$(NASM) -dISFAT12 boot.asm -ob_fat12.bin
|
||||
|
||||
b_fat16.bin: boot.asm
|
||||
$(NASM) -dISFAT16 boot.asm -ob_fat16.bin
|
||||
|
||||
b_fat32.bin: boot32.asm
|
||||
$(NASM) boot32.asm -ob_fat32.bin
|
||||
|
||||
clobber: clean
|
||||
-$(RM) b_fat12.bin b_fat16.bin b_fat32.bin status.me
|
||||
|
||||
clean:
|
||||
-$(RM) *.lst *.map *.bak *.obj
|
||||
|
||||
|
||||
# Log: makefile,v
|
||||
#
|
||||
# Revision 1.3 1999/04/23 03:44:17 jprice
|
||||
# Ported to NASM by ror4. Improvements
|
||||
@ -55,24 +58,3 @@
|
||||
# Rev 1.0 02 Jul 1995 9:11:26 patv
|
||||
#Initial revision.
|
||||
#
|
||||
|
||||
!include "..\mkfiles\generic.mak"
|
||||
|
||||
production: b_fat12.bin b_fat16.bin b_fat32.bin
|
||||
|
||||
b_fat12.bin: boot.asm
|
||||
$(NASM) -dISFAT12 boot.asm -ob_fat12.bin
|
||||
|
||||
b_fat16.bin: boot.asm
|
||||
$(NASM) -dISFAT16 boot.asm -ob_fat16.bin
|
||||
|
||||
b_fat32.bin: boot32.asm
|
||||
$(NASM) boot32.asm -ob_fat32.bin
|
||||
|
||||
clobber: clean
|
||||
-$(RM) b_fat12.bin b_fat16.bin b_fat32.bin status.me
|
||||
|
||||
clean:
|
||||
-$(RM) *.lst *.map *.bak *.obj
|
||||
|
||||
|
||||
|
86
build.bat
86
build.bat
@ -4,54 +4,6 @@
|
||||
|
||||
:- $Id$
|
||||
|
||||
:- $Log$
|
||||
:- Revision 1.7 2001/11/13 23:36:43 bartoldeman
|
||||
:- Kernel 2025a final changes.
|
||||
:-
|
||||
:- Revision 1.6 2001/11/04 19:47:37 bartoldeman
|
||||
:- kernel 2025a changes: see history.txt
|
||||
:-
|
||||
:- Revision 1.5 2001/07/09 22:19:30 bartoldeman
|
||||
:- LBA/FCB/FAT/SYS/Ctrl-C/ioctl fixes + memory savings
|
||||
:-
|
||||
:- Revision 1.4 2001/03/22 04:13:30 bartoldeman
|
||||
:- Change LF to CR/LF in batch files.
|
||||
:-
|
||||
:- Revision 1.3 2000/05/25 20:56:19 jimtabor
|
||||
:- Fixed project history
|
||||
:-
|
||||
:- Revision 1.2 2000/05/14 17:05:39 jimtabor
|
||||
:- Cleanup CRs
|
||||
:-
|
||||
:- Revision 1.1.1.1 2000/05/06 19:34:53 jhall1
|
||||
:- The FreeDOS Kernel. A DOS kernel that aims to be 100% compatible with
|
||||
:- MS-DOS. Distributed under the GNU GPL.
|
||||
:-
|
||||
:- Revision 1.5 1999/08/25 03:59:14 jprice
|
||||
:- New build batch files.
|
||||
:-
|
||||
:- Revision 1.4 1999/08/25 03:38:16 jprice
|
||||
:- New build config
|
||||
:-
|
||||
:- Revision 1.3 1999/04/23 03:46:02 jprice
|
||||
:- Improved by jprice
|
||||
:-
|
||||
:- Revision 1.2 1999/04/17 19:13:29 jprice
|
||||
:- ror4 patches
|
||||
:-
|
||||
:- Revision 1.1.1.1 1999/03/29 15:39:13 jprice
|
||||
:- New version without IPL.SYS
|
||||
:-
|
||||
:- Revision 1.5 1999/02/09 04:47:54 jprice
|
||||
:- Make makefile use common config.mak file
|
||||
:-
|
||||
:- Revision 1.4 1999/01/30 08:29:10 jprice
|
||||
:- Clean up
|
||||
:-
|
||||
:- Revision 1.3 1999/01/30 07:49:16 jprice
|
||||
:- Clean up
|
||||
:-
|
||||
|
||||
set XERROR=
|
||||
|
||||
|
||||
@ -66,7 +18,7 @@ set XERROR=
|
||||
call config.bat
|
||||
call getmake.bat
|
||||
|
||||
@if not \%XLINK% == \ goto link_set
|
||||
@if not "%XLINK%" == "" goto link_set
|
||||
|
||||
@if \%COMPILER% == \TC2 set XLINK=%TC2_BASE%\tlink /m/c
|
||||
@if \%COMPILER% == \TURBOCPP set XLINK=%TP1_BASE%\bin\tlink /m/c
|
||||
@ -165,6 +117,13 @@ cd ..
|
||||
set XERROR=1
|
||||
:end
|
||||
:***** cleanup ******
|
||||
@echo off
|
||||
|
||||
@if "%OLDPATH%" == "" goto no_path_change
|
||||
@set PATH=%OLDPATH%
|
||||
@set OLDPATH=
|
||||
:no_path_change
|
||||
|
||||
@set MAKE=
|
||||
@set COMPILER=
|
||||
@set XCPU=
|
||||
@ -175,4 +134,33 @@ set XERROR=1
|
||||
@set TC3_BASE=
|
||||
@set BC5_BASE=
|
||||
@set MS_BASE=
|
||||
@set XNASM=
|
||||
@set XERROR=
|
||||
|
||||
:- Log: build.bat,v
|
||||
:-
|
||||
:- Revision 1.5 1999/08/25 03:59:14 jprice
|
||||
:- New build batch files.
|
||||
:-
|
||||
:- Revision 1.4 1999/08/25 03:38:16 jprice
|
||||
:- New build config
|
||||
:-
|
||||
:- Revision 1.3 1999/04/23 03:46:02 jprice
|
||||
:- Improved by jprice
|
||||
:-
|
||||
:- Revision 1.2 1999/04/17 19:13:29 jprice
|
||||
:- ror4 patches
|
||||
:-
|
||||
:- Revision 1.1.1.1 1999/03/29 15:39:13 jprice
|
||||
:- New version without IPL.SYS
|
||||
:-
|
||||
:- Revision 1.5 1999/02/09 04:47:54 jprice
|
||||
:- Make makefile use common config.mak file
|
||||
:-
|
||||
:- Revision 1.4 1999/01/30 08:29:10 jprice
|
||||
:- Clean up
|
||||
:-
|
||||
:- Revision 1.3 1999/01/30 07:49:16 jprice
|
||||
:- Clean up
|
||||
:-
|
||||
|
||||
|
53
clean.bat
53
clean.bat
@ -4,42 +4,6 @@ rem batch file to clean everything
|
||||
|
||||
rem $Id$
|
||||
|
||||
rem $Log$
|
||||
rem Revision 1.6 2001/11/13 23:36:43 bartoldeman
|
||||
rem Kernel 2025a final changes.
|
||||
rem
|
||||
rem Revision 1.5 2001/11/04 19:47:37 bartoldeman
|
||||
rem kernel 2025a changes: see history.txt
|
||||
rem
|
||||
rem Revision 1.4 2001/03/22 04:13:30 bartoldeman
|
||||
rem Change LF to CR/LF in batch files.
|
||||
rem
|
||||
rem Revision 1.3 2000/05/25 20:56:19 jimtabor
|
||||
rem Fixed project history
|
||||
rem
|
||||
rem Revision 1.2 2000/05/14 17:05:58 jimtabor
|
||||
rem Cleanup CRs
|
||||
rem
|
||||
rem Revision 1.1.1.1 2000/05/06 19:34:53 jhall1
|
||||
rem The FreeDOS Kernel. A DOS kernel that aims to be 100% compatible with
|
||||
rem MS-DOS. Distributed under the GNU GPL.
|
||||
rem
|
||||
rem Revision 1.3 1999/08/25 03:59:14 jprice
|
||||
rem New build batch files.
|
||||
rem
|
||||
rem Revision 1.2 1999/04/23 03:46:02 jprice
|
||||
rem Improved by jprice
|
||||
rem
|
||||
rem Revision 1.1.1.1 1999/03/29 15:39:15 jprice
|
||||
rem New version without IPL.SYS
|
||||
rem
|
||||
rem Revision 1.4 1999/02/09 04:47:54 jprice
|
||||
rem Make makefile use common config.mak file
|
||||
rem
|
||||
rem Revision 1.3 1999/01/30 08:29:10 jprice
|
||||
rem Clean up
|
||||
rem
|
||||
|
||||
if not exist config.bat goto noconfigbat
|
||||
goto start
|
||||
|
||||
@ -79,3 +43,20 @@ del *.bak
|
||||
:end
|
||||
set MAKE=
|
||||
set COMPILER=
|
||||
|
||||
rem Log: clean.bat,v
|
||||
rem Revision 1.3 1999/08/25 03:59:14 jprice
|
||||
rem New build batch files.
|
||||
rem
|
||||
rem Revision 1.2 1999/04/23 03:46:02 jprice
|
||||
rem Improved by jprice
|
||||
rem
|
||||
rem Revision 1.1.1.1 1999/03/29 15:39:15 jprice
|
||||
rem New version without IPL.SYS
|
||||
rem
|
||||
rem Revision 1.4 1999/02/09 04:47:54 jprice
|
||||
rem Make makefile use common config.mak file
|
||||
rem
|
||||
rem Revision 1.3 1999/01/30 08:29:10 jprice
|
||||
rem Clean up
|
||||
rem
|
||||
|
43
clobber.bat
43
clobber.bat
@ -3,36 +3,6 @@ rem batch file to clobber everything
|
||||
|
||||
rem $Id$
|
||||
|
||||
rem $Log$
|
||||
rem Revision 1.6 2001/11/13 23:36:43 bartoldeman
|
||||
rem Kernel 2025a final changes.
|
||||
rem
|
||||
rem Revision 1.5 2001/11/04 19:47:37 bartoldeman
|
||||
rem kernel 2025a changes: see history.txt
|
||||
rem
|
||||
rem Revision 1.4 2001/03/22 04:13:30 bartoldeman
|
||||
rem Change LF to CR/LF in batch files.
|
||||
rem
|
||||
rem Revision 1.3 2000/05/25 20:56:19 jimtabor
|
||||
rem Fixed project history
|
||||
rem
|
||||
rem Revision 1.2 2000/05/14 17:06:17 jimtabor
|
||||
rem Cleanup CRs
|
||||
rem
|
||||
rem Revision 1.1.1.1 2000/05/06 19:34:53 jhall1
|
||||
rem The FreeDOS Kernel. A DOS kernel that aims to be 100% compatible with
|
||||
rem MS-DOS. Distributed under the GNU GPL.
|
||||
rem
|
||||
rem Revision 1.3 1999/08/25 03:59:14 jprice
|
||||
rem New build batch files.
|
||||
rem
|
||||
rem Revision 1.2 1999/08/10 18:34:06 jprice
|
||||
rem case
|
||||
rem
|
||||
rem Revision 1.1 1999/04/23 03:47:19 jprice
|
||||
rem Initial include
|
||||
rem
|
||||
|
||||
if not exist config.bat goto noconfigbat
|
||||
goto start
|
||||
|
||||
@ -74,3 +44,16 @@ del status.me
|
||||
:end
|
||||
set MAKE=
|
||||
set COMPILER=
|
||||
|
||||
rem Log: clobber.bat,v
|
||||
rem
|
||||
rem Revision 1.3 1999/08/25 03:59:14 jprice
|
||||
rem New build batch files.
|
||||
rem
|
||||
rem Revision 1.2 1999/08/10 18:34:06 jprice
|
||||
rem case
|
||||
rem
|
||||
rem Revision 1.1 1999/04/23 03:47:19 jprice
|
||||
rem Initial include
|
||||
rem
|
||||
|
||||
|
40
config.b
40
config.b
@ -68,6 +68,8 @@ set TC2_BASE=c:\tc201
|
||||
:- Turbo C++ 1.01 and higher TLINK 3.01+ are ok
|
||||
:- or get TLINK 4 (creates nice map file) from simtel at
|
||||
:- ftp://ftp.simtel.net/pub/simtelnet/msdos/borland/tlink4.zip
|
||||
:-
|
||||
:- WARNING TLINK needs to be in your PATH!
|
||||
:-**********************************************************************
|
||||
|
||||
:- Turbo Link
|
||||
@ -75,6 +77,10 @@ set TC2_BASE=c:\tc201
|
||||
:- Microsoft Link
|
||||
:- set XLINK=%MS_BASE%\bin\link /ONERROR:NOEXE /ma /nologo
|
||||
|
||||
:- set path for Turbo Link - use OLDPATH to restore normal path
|
||||
:- set OLDPATH=%PATH%
|
||||
:- set PATH=%PATH%;%TC2_BASE%
|
||||
|
||||
:**********************************************************************
|
||||
:* optionally define your MAKE type here, if not then
|
||||
:* it will be automatically determined, pick one of them
|
||||
@ -108,37 +114,7 @@ set XFAT=16
|
||||
:-
|
||||
:- $Id$
|
||||
:-
|
||||
:- $Log$
|
||||
:- Revision 1.5 2001/11/13 23:36:43 bartoldeman
|
||||
:- Kernel 2025a final changes.
|
||||
:-
|
||||
:- Revision 1.9 2001/11/04 19:47:37 bartoldeman
|
||||
:- kernel 2025a changes: see history.txt
|
||||
:-
|
||||
:- Revision 1.8 2001/09/23 20:39:43 bartoldeman
|
||||
:- FAT32 support, misc fixes, INT2F/AH=12 support, drive B: handling
|
||||
:-
|
||||
:- Revision 1.7 2001/04/16 14:36:56 bartoldeman
|
||||
:- Added ALLCFLAGS for compiler option configuration.
|
||||
:-
|
||||
:- Revision 1.6 2001/04/15 03:21:49 bartoldeman
|
||||
:- See history.txt for the list of fixes.
|
||||
:-
|
||||
:- Revision 1.5 2001/03/22 10:51:04 bartoldeman
|
||||
:- Suggest to extract F_SCOPY into libm.lib for Borland C++.
|
||||
:-
|
||||
:- Revision 1.4 2001/03/19 04:50:56 bartoldeman
|
||||
:- See history.txt for overview: put kernel 2022beo1 into CVS
|
||||
:-
|
||||
:- Revision 1.3 2000/05/25 20:56:19 jimtabor
|
||||
:- Fixed project history
|
||||
:-
|
||||
:- Revision 1.2 2000/05/14 17:07:07 jimtabor
|
||||
:- Cleanup CRs
|
||||
:-
|
||||
:- Revision 1.1.1.1 2000/05/06 19:34:53 jhall1
|
||||
:- The FreeDOS Kernel. A DOS kernel that aims to be 100% compatible with
|
||||
:- MS-DOS. Distributed under the GNU GPL.
|
||||
:- Log: config.b,v
|
||||
:-
|
||||
:- Revision 1.3 1999/09/13 20:40:17 jprice
|
||||
:- Added COMPILER variable
|
||||
@ -148,5 +124,3 @@ set XFAT=16
|
||||
:-
|
||||
:- Revision 1.1 1999/08/25 03:20:39 jprice
|
||||
:- ror4 patches to allow TC 2.01 compile.
|
||||
:-
|
||||
:-
|
||||
|
@ -75,16 +75,8 @@ component. Study the makefile to better understand this.
|
||||
|
||||
$Id$
|
||||
|
||||
$Log$
|
||||
Revision 1.5 2001/11/04 19:47:39 bartoldeman
|
||||
kernel 2025a changes: see history.txt
|
||||
|
||||
Revision 1.4 2001/07/09 22:19:33 bartoldeman
|
||||
LBA/FCB/FAT/SYS/Ctrl-C/ioctl fixes + memory savings
|
||||
|
||||
Log: build.txt,v
|
||||
Revision 1.3 2000/08/15 03:42:17 jhall1
|
||||
update to the bugs.txt file to point the user to the bug database at
|
||||
the FreeDOS web site (http://www.freedos.org/bugs)
|
||||
update to the build.txt file to remove references to the now-defunct
|
||||
web site at gcfl.net (John's old site).
|
||||
|
||||
|
@ -1,5 +1,31 @@
|
||||
2001 Nov 17 - Build 2025b
|
||||
-------- Bart Oldeman (bart@dosemu.org)
|
||||
+ Changes Tom
|
||||
* fix a few more batch file and makefile details
|
||||
* fix problems with command line editing: F1 and right key
|
||||
* string merging in dosnames.c
|
||||
* optimizations for MSC
|
||||
+ Changes Bart
|
||||
* fix readblock problem not properly detecting EOF - it sometimes
|
||||
returned an error where it should just report a short count.
|
||||
Also fnp->f_offset==0 is not a special case for blockread
|
||||
(neither should it be for write - but that'll be for later)
|
||||
For both cases it's perfectly legal to do a seek first.
|
||||
* fix writeblock not setting highwater to offset when doing a
|
||||
truncate (count == 0)
|
||||
* hopefully now really fix the floppy change problem -
|
||||
dsk.c: getbpb() should query changeline BEFORE reading the BPB.
|
||||
* fixed warnings from WATCOM compiler - one of them was in fact
|
||||
a bug in fcbfns.c
|
||||
* started big clean-up
|
||||
- converted obsolete bcopy(), sncopy() and friends to memcpy(),
|
||||
strncpy() etc.
|
||||
- removed $Log entries that are also on the CVS server and
|
||||
removed the $ so no new entries will be added in files.
|
||||
indenting will be next - other fixes will be buried in diffs if
|
||||
I do that now.
|
||||
2001 Nov 12 - Build 2025a
|
||||
-------- Bart Oldeman (bart.oldeman@bristol.ac.uk)
|
||||
-------- Bart Oldeman (bart@dosemu.org)
|
||||
+ Changes Tom
|
||||
* initialize LBA parameter struct to 0's - some BIOSes don't fill
|
||||
in everything. Thanks to Bernd Blaauw's bug report.
|
||||
@ -30,7 +56,7 @@
|
||||
* cleaned up map_cluster and dir_read (bug fixed by Bart)
|
||||
* updated LFN API (in development, not used yet)
|
||||
2001 Nov 4 - Build 2025a (test)
|
||||
-------- Bart Oldeman (bart.oldeman@bristol.ac.uk)
|
||||
-------- Bart Oldeman (bart@dosemu.org)
|
||||
+ Changes tom
|
||||
* config.sys processing: placing ? on the left side of '=' like
|
||||
?device= or device ?=
|
||||
@ -80,7 +106,7 @@
|
||||
* more fatfs/fatdir clean-ups - now unnecessary fields dfull,
|
||||
dremote and dsize removed from fnodes.
|
||||
2001 Sep 24 - Build 2025
|
||||
-------- Bart Oldeman (bart.oldeman@bristol.ac.uk)
|
||||
-------- Bart Oldeman (bart@dosemu.org)
|
||||
+ Fixes Victor
|
||||
* More FAT32 fixes
|
||||
+ Fixes Tom
|
||||
@ -101,7 +127,7 @@
|
||||
uses root (but only if source & destination drive are different).
|
||||
Fix printf to include count(ret) if copy can't write all requested bytes
|
||||
2001 Sep 22 - Build 2025 (test)
|
||||
-------- Bart Oldeman (bart.oldeman@bristol.ac.uk)
|
||||
-------- Bart Oldeman (bart@dosemu.org)
|
||||
+ Added Victor
|
||||
* FAT32 support (credits to Martin Stromberg for boot32.asm optimizations)
|
||||
* Delete long file names if short file name given
|
||||
@ -132,13 +158,13 @@
|
||||
changed state).
|
||||
* attribute should be 8-bit fix
|
||||
2001 Aug 19 - Build 2024/h
|
||||
-------- Bart Oldeman (bart.oldeman@bristol.ac.uk)
|
||||
-------- Bart Oldeman (bart@dosemu.org)
|
||||
+ fixes Bart
|
||||
* truename fixes (#580)
|
||||
* free space fixes (#249)
|
||||
* Ctrl-C/Ctrl-Break fix
|
||||
2001 Aug 19 - Build 2024/g
|
||||
-------- Bart Oldeman (bart.oldeman@bristol.ac.uk)
|
||||
-------- Bart Oldeman (bart@dosemu.org)
|
||||
+ fixes Bart
|
||||
* set file time fixes
|
||||
* clock fixes
|
||||
@ -151,7 +177,7 @@
|
||||
+ fixes Bart + Tom
|
||||
* fixed shsucdx /u unloading problem
|
||||
2001 Jul 28 - Build 2024/f
|
||||
-------- Bart Oldeman (bart.oldeman@bristol.ac.uk)
|
||||
-------- Bart Oldeman (bart@dosemu.org)
|
||||
+ fixes Bart
|
||||
* fixed get current directory - MSCDEX works now (always)
|
||||
* initdisk.c correctly sets number of hidden sectors: necessary
|
||||
@ -166,7 +192,7 @@
|
||||
* various fatfs.c fixes and clean ups
|
||||
|
||||
2001 Jul 23 - Build 2024/e
|
||||
-------- Bart Oldeman (bart.oldeman@bristol.ac.uk)
|
||||
-------- Bart Oldeman (bart@dosemu.org)
|
||||
+ fixes Tom
|
||||
* dyninit allocation fix
|
||||
* various clean ups
|
||||
@ -212,7 +238,7 @@
|
||||
* fixed task.c 'LOADHIGH executables': minAlloc == maxAlloc = 0
|
||||
and an fixed overwriting the MCB
|
||||
2001 Jul 9 - Build 2024/d
|
||||
-------- Bart Oldeman (bart.oldeman@bristol.ac.uk)
|
||||
-------- Bart Oldeman (bart@dosemu.org)
|
||||
+ fixes Bart:
|
||||
* fixed Ctrl-C (Ctrl-S and Ctrl-Q still missing).
|
||||
* ioctl EOF fix (DJGPP less&gdb problem reported by Martin Stromberg)
|
||||
@ -260,7 +286,7 @@ from 2001 May 21: Build2024L
|
||||
* moved initialization for DISK (partition scanning) to INIT_CODE
|
||||
|
||||
2001 Jun 2 - Build 2024
|
||||
-------- Bart Oldeman (bart.oldeman@bristol.ac.uk)
|
||||
-------- Bart Oldeman (bart@dosemu.org)
|
||||
+ Fixes Tom:
|
||||
* small fixes again.
|
||||
* one possible cause for data corruption (BFR_VALID) detected
|
||||
@ -279,7 +305,7 @@ from 2001 May 21: Build2024L
|
||||
* dos_mkdir tuned (was ~0.5 sec on 64K cluster partitions)
|
||||
|
||||
2001 Apr 29 - Build 2024
|
||||
-------- Bart Oldeman (bart.oldeman@bristol.ac.uk)
|
||||
-------- Bart Oldeman (bart@dosemu.org)
|
||||
+ Fixes Bart:
|
||||
* fixed the "TYPE > FOO.TXT" poor man's editor.
|
||||
* use "fast console output" (int 29) when applicable.
|
||||
@ -301,7 +327,7 @@ from 2001 May 21: Build2024L
|
||||
* fixed not ignoring whitespace after '=' in config.sys
|
||||
* noted INT21/AX=3800 bug for getting the country. Put in a workaround for now.
|
||||
2001 Apr 21 - Build 2024
|
||||
-------- Bart Oldeman (bart.oldeman@bristol.ac.uk)
|
||||
-------- Bart Oldeman (bart@dosemu.org)
|
||||
+ Fixes Tom:
|
||||
* fixed a missing close_dir in fatfs.c.
|
||||
* many reductions of stack space requirements.
|
||||
@ -327,7 +353,7 @@ from 2001 May 21: Build2024L
|
||||
+ Add Tom:
|
||||
* Default interrupt 6 handler (invalid opcode).
|
||||
2001 Apr 16 - Build 2024
|
||||
-------- Bart Oldeman (bart.oldeman@bristol.ac.uk)
|
||||
-------- Bart Oldeman (bart@dosemu.org)
|
||||
+ Fixes * Use turboc.cfg to avoid long command lines; edit ALLCFLAGS
|
||||
in config.mak to enable DEBUG etc.
|
||||
* Fixed critical error handler.
|
||||
@ -335,7 +361,7 @@ from 2001 May 21: Build2024L
|
||||
* Some device drivers require \r\n at the end of their
|
||||
parameter line.
|
||||
2001 Apr 16 - Build 2023
|
||||
-------- Bart Oldeman (bart.oldeman@bristol.ac.uk)
|
||||
-------- Bart Oldeman (bart@dosemu.org)
|
||||
+ Fixes * Thanks to Martin Stromberg for pointing some bugs out:
|
||||
* more warnings fixed.
|
||||
* accidentally opened too many file handles at boot time.
|
||||
@ -344,7 +370,7 @@ from 2001 May 21: Build2024L
|
||||
+ Add * added printf "%S" and "%Fs" to print far strings.
|
||||
* enabled and cleaned up INT21/AH=6C (extended open/create).
|
||||
2001 Apr 15 - Build 2023
|
||||
-------- Bart Oldeman (bart.oldeman@bristol.ac.uk)
|
||||
-------- Bart Oldeman (bart@dosemu.org)
|
||||
+ Fixes Tom:
|
||||
* apisupt.asm not necessary anymore.
|
||||
* fix warnings.
|
||||
@ -387,7 +413,7 @@ from 2001 May 21: Build2024L
|
||||
GWBASIC/BASICA
|
||||
|
||||
2001 Apr 2 - Build 2023
|
||||
-------- Bart Oldeman (bart.oldeman@bristol.ac.uk)
|
||||
-------- Bart Oldeman (bart@dosemu.org)
|
||||
+ Fixes Bart: Volkov Commander revealed a few bugs:
|
||||
-int 21/ah=55 forgot to set current psp to child psp.
|
||||
-memory allocation: mem_access_mode was a signed byte, and hence 0x80 was
|
||||
@ -413,7 +439,7 @@ from 2001 May 21: Build2024L
|
||||
drives.
|
||||
* Fixed bug wrt zero terminated device names (should be spaces terminated).
|
||||
2001 Mar 30 - Build 2023
|
||||
-------- Bart Oldeman (bart.oldeman@bristol.ac.uk)
|
||||
-------- Bart Oldeman (bart@dosemu.org)
|
||||
+ Fixes Tom: Kernel alloc initialises to 0. This avoids some weird errors.
|
||||
Implemented default divide by 0 handler (INT 0)
|
||||
FILES= fixes from config.sys. fatfs.c ignored it and always
|
||||
@ -432,10 +458,10 @@ from 2001 May 21: Build2024L
|
||||
+ Fixes Bug fix release 2023b: dsk.c (reported by Nagy Daniel), inthndlr and
|
||||
int25/26 fixes by Tom Ehlert.
|
||||
2001 Mar 27 - Build 2023
|
||||
-------- Bart Oldeman (bart.oldeman@bristol.ac.uk)
|
||||
-------- Bart Oldeman (bart@dosemu.org)
|
||||
+ Fixes Bug fix release 2023a: fixed stack segment bug in entry.asm.
|
||||
2001 Mar 25 - Build 2023
|
||||
-------- Bart Oldeman (bart.oldeman@bristol.ac.uk)
|
||||
-------- Bart Oldeman (bart@dosemu.org)
|
||||
+ Fixes sys.com compilation: it is a proper .com and works again.
|
||||
Suggestions from Martin Stromberg: warning removal and some
|
||||
debugging related changes.
|
||||
@ -443,14 +469,14 @@ from 2001 May 21: Build2024L
|
||||
in config.sys. Also implemented strcasecmp.
|
||||
Updated intfns.txt; reported version is now 5.0.
|
||||
2001 Mar 24 - Build 2022
|
||||
-------- Bart Oldeman (bart.oldeman@bristol.ac.uk)
|
||||
-------- Bart Oldeman (bart@dosemu.org)
|
||||
+ Fixes Tom and Bart: cli/sti handling and other fixes in entry.asm,
|
||||
procsupt.asm and apisupt.asm.
|
||||
Bart: warning removal + other compile time fixes.
|
||||
Tom: * more partition detection fixes in dsk.c.
|
||||
* dos_gettime() fix.
|
||||
2001 Mar 21 - Build 2022
|
||||
-------- Bart Oldeman (bart.oldeman@bristol.ac.uk)
|
||||
-------- Bart Oldeman (bart@dosemu.org)
|
||||
+ Clean A lot of space savings by Tom Ehlert, merely because Turbo C 2.01 does not
|
||||
do it. And several more complicated situations as well, like coding some
|
||||
string functions in assembly (asmsupt.asm).
|
||||
@ -475,7 +501,7 @@ from 2001 May 21: Build2024L
|
||||
+ Fixes a few small ones from Tom I forgot.
|
||||
|
||||
2001 Mar 08 - Build 2022
|
||||
-------- Bart Oldeman (bart.oldeman@bristol.ac.uk)
|
||||
-------- Bart Oldeman (bart@dosemu.org)
|
||||
+ Fixes MCB chain corruption fix (thanks Tom Ehlert and Martin Stromberg)
|
||||
Redirector fixes (CDROMs and DOSEmu lredir'ed drives appear to work fine now)
|
||||
UMB fixes
|
||||
@ -492,7 +518,7 @@ from 2001 May 21: Build2024L
|
||||
|
||||
2000 Dec 15 - Build 2022
|
||||
-------- James Tabor (jimtabor@infohwy.com)
|
||||
+ Fixes Added Patches from Bart Oldeman (Bart.Oldeman@bristol.ac.uk)
|
||||
+ Fixes Added Patches from Bart Oldeman (bart@dosemu.org)
|
||||
Fix for NLAST in globals.h and change default return in inthndlr.c.
|
||||
|
||||
2000 Oct 29 - Build 2022
|
||||
@ -540,7 +566,7 @@ from 2001 May 21: Build2024L
|
||||
|
||||
2000 Jun 20 - Build 2021
|
||||
-------- James Tabor (jimtabor@infohwy.com)
|
||||
+ Fix Bart Oldeman (Bart.Oldeman@bristol.ac.uk) found bugs with copy
|
||||
+ Fix Bart Oldeman (bart@dosemu.org) found bugs with copy
|
||||
command using Dosemu Lredir. Fixed Dosfns return for ReadCount,
|
||||
WriteCount and DosGetFattr. Fixed the return in int2f.asm for
|
||||
Read/Write Remote. By adding xor ax,ax.
|
||||
|
@ -194,15 +194,7 @@ See COPYING in DOS-C root directory for license.
|
||||
|
||||
$Id$
|
||||
|
||||
$Log$
|
||||
Revision 1.4 2001/03/25 17:11:53 bartoldeman
|
||||
Fixed sys.com compilation. Updated to 2023. Also: see history.txt.
|
||||
|
||||
Revision 1.3 2000/05/09 00:29:50 jimtabor
|
||||
Clean up and Release
|
||||
|
||||
Revision 1.2 2000/05/08 04:27:48 jimtabor
|
||||
Update CVS to 2020
|
||||
Log: intfns.txt,v
|
||||
|
||||
Revision 1.2 2000/03/18 05:51:55 kernel
|
||||
changes in supported functions
|
||||
|
@ -25,27 +25,24 @@
|
||||
; write to the Free Software Foundation, 675 Mass Ave,
|
||||
; Cambridge, MA 02139, USA.
|
||||
;
|
||||
; $Logfile: C:/dos-c/src/drivers/devend.asv $
|
||||
;
|
||||
; $Header$
|
||||
;
|
||||
; $Log$
|
||||
; Revision 1.5 2001/04/15 03:21:50 bartoldeman
|
||||
; See history.txt for the list of fixes.
|
||||
;
|
||||
; Revision 1.4 2001/03/21 02:56:25 bartoldeman
|
||||
; See history.txt for changes. Bug fixes and HMA support are the main ones.
|
||||
;
|
||||
; Revision 1.3 2000/05/25 20:56:19 jimtabor
|
||||
; Fixed project history
|
||||
;
|
||||
; Revision 1.2 2000/05/11 03:56:20 jimtabor
|
||||
; Clean up and Release
|
||||
;
|
||||
; Revision 1.1.1.1 2000/05/06 19:34:53 jhall1
|
||||
; The FreeDOS Kernel. A DOS kernel that aims to be 100% compatible with
|
||||
; MS-DOS. Distributed under the GNU GPL.
|
||||
;
|
||||
|
||||
%include "..\kernel\segs.inc"
|
||||
|
||||
|
||||
extern __bssend:wrt DGROUP
|
||||
|
||||
segment HMA_TEXT
|
||||
|
||||
global _device_end
|
||||
|
||||
_device_end:
|
||||
mov ax,__bssend
|
||||
mov dx,DGROUP
|
||||
ret
|
||||
|
||||
; Log: devend.asm,v
|
||||
; Revision 1.3 1999/08/10 17:21:08 jprice
|
||||
; ror4 2011-01 patch
|
||||
;
|
||||
@ -71,17 +68,3 @@
|
||||
; Rev 1.0 02 Jul 1995 7:56:50 patv
|
||||
;Initial revision.
|
||||
;
|
||||
|
||||
%include "..\kernel\segs.inc"
|
||||
|
||||
|
||||
extern __bssend:wrt DGROUP
|
||||
|
||||
segment HMA_TEXT
|
||||
|
||||
global _device_end
|
||||
|
||||
_device_end:
|
||||
mov ax,__bssend
|
||||
mov dx,DGROUP
|
||||
ret
|
||||
|
@ -25,79 +25,8 @@
|
||||
; write to the Free Software Foundation, 675 Mass Ave,
|
||||
; Cambridge, MA 02139, USA.
|
||||
;
|
||||
; $Logfile: C:/usr/patv/dos-c/src/drivers/floppy.asv $
|
||||
;
|
||||
; $Id$
|
||||
;
|
||||
; $Log$
|
||||
; Revision 1.9 2001/11/04 19:47:39 bartoldeman
|
||||
; kernel 2025a changes: see history.txt
|
||||
;
|
||||
; Revision 1.8 2001/09/23 20:39:44 bartoldeman
|
||||
; FAT32 support, misc fixes, INT2F/AH=12 support, drive B: handling
|
||||
;
|
||||
; Revision 1.7 2001/07/09 22:19:33 bartoldeman
|
||||
; LBA/FCB/FAT/SYS/Ctrl-C/ioctl fixes + memory savings
|
||||
;
|
||||
;
|
||||
; Revision 1.7 2001/04/29 brianreifsnyder
|
||||
; Added phase 1 support for LBA hard drives
|
||||
;
|
||||
; Revision 1.6 2001/04/22 01:19:33 bartoldeman
|
||||
; Avoid sys warning and have a VDISK signature in the HMA
|
||||
;
|
||||
; Revision 1.5 2001/04/15 03:21:50 bartoldeman
|
||||
; See history.txt for the list of fixes.
|
||||
;
|
||||
; Revision 1.4 2001/03/21 02:56:25 bartoldeman
|
||||
; See history.txt for changes. Bug fixes and HMA support are the main ones.
|
||||
;
|
||||
; Revision 1.3 2000/05/25 20:56:19 jimtabor
|
||||
; Fixed project history
|
||||
;
|
||||
; Revision 1.2 2000/05/11 03:56:20 jimtabor
|
||||
; Clean up and Release
|
||||
;
|
||||
; Revision 1.1.1.1 2000/05/06 19:34:53 jhall1
|
||||
; The FreeDOS Kernel. A DOS kernel that aims to be 100% compatible with
|
||||
; MS-DOS. Distributed under the GNU GPL.
|
||||
;
|
||||
; Revision 1.4 1999/08/10 17:21:08 jprice
|
||||
; ror4 2011-01 patch
|
||||
;
|
||||
; Revision 1.3 1999/04/16 21:29:17 jprice
|
||||
; ror4 multi-sector IO
|
||||
;
|
||||
; Revision 1.2 1999/03/29 17:08:31 jprice
|
||||
; ror4 changes
|
||||
;
|
||||
; Revision 1.1.1.1 1999/03/29 15:40:24 jprice
|
||||
; New version without IPL.SYS
|
||||
;
|
||||
; Revision 1.4 1999/02/14 04:25:16 jprice
|
||||
; Added functions to check if a floppy disk has been changed.
|
||||
;
|
||||
; Revision 1.3 1999/02/08 05:49:47 jprice
|
||||
; Added Pat's 1937 kernel patches
|
||||
;
|
||||
; Revision 1.2 1999/01/22 04:16:39 jprice
|
||||
; Formating
|
||||
;
|
||||
; Revision 1.1.1.1 1999/01/20 05:51:00 jprice
|
||||
; Imported sources
|
||||
;
|
||||
; Rev 1.3 06 Dec 1998 8:43:00 patv
|
||||
;New floppy support functions.
|
||||
;
|
||||
; Rev 1.2 29 Aug 1996 13:07:14 patv
|
||||
;Bug fixes for v0.91b
|
||||
;
|
||||
; Rev 1.1 01 Sep 1995 18:50:34 patv
|
||||
;Initial GPL release.
|
||||
;
|
||||
; Rev 1.0 02 Jul 1995 7:57:02 patv
|
||||
;Initial revision.
|
||||
;
|
||||
|
||||
%ifndef SYS
|
||||
%include "..\kernel\segs.inc"
|
||||
@ -521,3 +450,41 @@ skipint1e:
|
||||
ret
|
||||
|
||||
|
||||
; Log: floppy.asm,v
|
||||
;
|
||||
; Revision 1.4 1999/08/10 17:21:08 jprice
|
||||
; ror4 2011-01 patch
|
||||
;
|
||||
; Revision 1.3 1999/04/16 21:29:17 jprice
|
||||
; ror4 multi-sector IO
|
||||
;
|
||||
; Revision 1.2 1999/03/29 17:08:31 jprice
|
||||
; ror4 changes
|
||||
;
|
||||
; Revision 1.1.1.1 1999/03/29 15:40:24 jprice
|
||||
; New version without IPL.SYS
|
||||
;
|
||||
; Revision 1.4 1999/02/14 04:25:16 jprice
|
||||
; Added functions to check if a floppy disk has been changed.
|
||||
;
|
||||
; Revision 1.3 1999/02/08 05:49:47 jprice
|
||||
; Added Pat's 1937 kernel patches
|
||||
;
|
||||
; Revision 1.2 1999/01/22 04:16:39 jprice
|
||||
; Formating
|
||||
;
|
||||
; Revision 1.1.1.1 1999/01/20 05:51:00 jprice
|
||||
; Imported sources
|
||||
;
|
||||
; Rev 1.3 06 Dec 1998 8:43:00 patv
|
||||
;New floppy support functions.
|
||||
;
|
||||
; Rev 1.2 29 Aug 1996 13:07:14 patv
|
||||
;Bug fixes for v0.91b
|
||||
;
|
||||
; Rev 1.1 01 Sep 1995 18:50:34 patv
|
||||
;Initial GPL release.
|
||||
;
|
||||
; Rev 1.0 02 Jul 1995 7:57:02 patv
|
||||
;Initial revision.
|
||||
;
|
||||
|
@ -25,22 +25,38 @@
|
||||
; write to the Free Software Foundation, 675 Mass Ave,
|
||||
; Cambridge, MA 02139, USA.
|
||||
;
|
||||
; $Logfile: C:/dos-c/src/drivers/getvec.asv $
|
||||
;
|
||||
; $Header$
|
||||
;
|
||||
; $Log$
|
||||
; Revision 1.5 2001/04/15 03:21:50 bartoldeman
|
||||
; See history.txt for the list of fixes.
|
||||
|
||||
%include "..\kernel\segs.inc"
|
||||
|
||||
segment HMA_TEXT
|
||||
|
||||
global _getvec
|
||||
_getvec:
|
||||
mov bx,sp
|
||||
mov ax,[ss:bx+2]
|
||||
|
||||
;
|
||||
; Revision 1.4 2001/03/21 02:56:25 bartoldeman
|
||||
; See history.txt for changes. Bug fixes and HMA support are the main ones.
|
||||
; assembler version - ax = vector number
|
||||
; returns vector in dx:ax
|
||||
;
|
||||
; Revision 1.3 2000/05/25 20:56:19 jimtabor
|
||||
; Fixed project history
|
||||
;
|
||||
; Revision 1.2 2000/05/11 03:56:20 jimtabor
|
||||
; Clean up and Release
|
||||
|
||||
global getvec
|
||||
getvec:
|
||||
shl ax,1 ; Multiply by 4
|
||||
shl ax,1
|
||||
xor dx,dx ; and set segment to 0
|
||||
mov es,dx
|
||||
mov bx,ax
|
||||
pushf ; Push flags
|
||||
cli ; Disable interrupts
|
||||
mov ax,[es:bx]
|
||||
mov dx,[es:bx+2]
|
||||
popf ; Pop flags
|
||||
ret
|
||||
|
||||
; Log: getvec.asm,v
|
||||
;
|
||||
; Revision 1.1.1.1 2000/05/06 19:34:53 jhall1
|
||||
; The FreeDOS Kernel. A DOS kernel that aims to be 100% compatible with
|
||||
@ -71,31 +87,3 @@
|
||||
; Rev 1.0 02 Jul 1995 8:00:36 patv
|
||||
;Initial revision.
|
||||
;
|
||||
|
||||
%include "..\kernel\segs.inc"
|
||||
|
||||
segment HMA_TEXT
|
||||
|
||||
global _getvec
|
||||
_getvec:
|
||||
mov bx,sp
|
||||
mov ax,[ss:bx+2]
|
||||
|
||||
;
|
||||
; assembler version - ax = vector number
|
||||
; returns vector in dx:ax
|
||||
;
|
||||
|
||||
global getvec
|
||||
getvec:
|
||||
shl ax,1 ; Multiply by 4
|
||||
shl ax,1
|
||||
xor dx,dx ; and set segment to 0
|
||||
mov es,dx
|
||||
mov bx,ax
|
||||
pushf ; Push flags
|
||||
cli ; Disable interrupts
|
||||
mov ax,[es:bx]
|
||||
mov dx,[es:bx+2]
|
||||
popf ; Pop flags
|
||||
ret
|
||||
|
@ -4,60 +4,6 @@
|
||||
# $Id$
|
||||
#
|
||||
|
||||
# $Log$
|
||||
# Revision 1.2 2001/11/13 23:36:45 bartoldeman
|
||||
# Kernel 2025a final changes.
|
||||
#
|
||||
# Revision 1.1 2001/11/04 20:10:15 bartoldeman
|
||||
# Added new makefile names, utils sources, kconfig.h
|
||||
#
|
||||
# Revision 1.3 2000/05/25 20:56:19 jimtabor
|
||||
# Fixed project history
|
||||
#
|
||||
# Revision 1.2 2000/05/11 03:56:20 jimtabor
|
||||
# Clean up and Release
|
||||
#
|
||||
# Revision 1.1.1.1 2000/05/06 19:34:53 jhall1
|
||||
# The FreeDOS Kernel. A DOS kernel that aims to be 100% compatible with
|
||||
# MS-DOS. Distributed under the GNU GPL.
|
||||
#
|
||||
# Revision 1.6 1999/08/25 03:16:36 jprice
|
||||
# ror4 patches to allow TC 2.01 compile.
|
||||
#
|
||||
# Revision 1.5 1999/08/10 17:21:08 jprice
|
||||
# ror4 2011-01 patch
|
||||
#
|
||||
# Revision 1.4 1999/04/23 03:44:52 jprice
|
||||
# Improved by jprice
|
||||
#
|
||||
# Revision 1.3 1999/04/13 15:47:07 jprice
|
||||
# no message
|
||||
#
|
||||
# Revision 1.2 1999/03/29 17:08:31 jprice
|
||||
# ror4 changes
|
||||
#
|
||||
# Revision 1.1.1.1 1999/03/29 15:40:23 jprice
|
||||
# New version without IPL.SYS
|
||||
#
|
||||
# Revision 1.3 1999/02/09 04:49:25 jprice
|
||||
# Make makefile use common config.mak file
|
||||
#
|
||||
# Revision 1.2 1999/01/22 04:16:39 jprice
|
||||
# Formating
|
||||
#
|
||||
# Revision 1.1.1.1 1999/01/20 05:51:00 jprice
|
||||
# Imported sources
|
||||
#
|
||||
#
|
||||
# Rev 1.2 29 Aug 1996 13:07:12 patv
|
||||
#Bug fixes for v0.91b
|
||||
#
|
||||
# Rev 1.1 19 Feb 1996 3:19:26 patv
|
||||
#Added NLS, int2f and config.sys processing
|
||||
#
|
||||
# Rev 1.0 02 Jul 1995 7:54:52 patv
|
||||
#Initial revision.
|
||||
#
|
||||
|
||||
!include "..\mkfiles\generic.mak"
|
||||
|
||||
@ -101,3 +47,43 @@ clean:
|
||||
device.lib : $(OBJS)
|
||||
-$(RM) device.lib
|
||||
$(LIBUTIL) $(LIBFLAGS) device $(LIBOBJS) $(LIBTERM)
|
||||
|
||||
# Log: makefile,v
|
||||
#
|
||||
# Revision 1.6 1999/08/25 03:16:36 jprice
|
||||
# ror4 patches to allow TC 2.01 compile.
|
||||
#
|
||||
# Revision 1.5 1999/08/10 17:21:08 jprice
|
||||
# ror4 2011-01 patch
|
||||
#
|
||||
# Revision 1.4 1999/04/23 03:44:52 jprice
|
||||
# Improved by jprice
|
||||
#
|
||||
# Revision 1.3 1999/04/13 15:47:07 jprice
|
||||
# no message
|
||||
#
|
||||
# Revision 1.2 1999/03/29 17:08:31 jprice
|
||||
# ror4 changes
|
||||
#
|
||||
# Revision 1.1.1.1 1999/03/29 15:40:23 jprice
|
||||
# New version without IPL.SYS
|
||||
#
|
||||
# Revision 1.3 1999/02/09 04:49:25 jprice
|
||||
# Make makefile use common config.mak file
|
||||
#
|
||||
# Revision 1.2 1999/01/22 04:16:39 jprice
|
||||
# Formating
|
||||
#
|
||||
# Revision 1.1.1.1 1999/01/20 05:51:00 jprice
|
||||
# Imported sources
|
||||
#
|
||||
#
|
||||
# Rev 1.2 29 Aug 1996 13:07:12 patv
|
||||
#Bug fixes for v0.91b
|
||||
#
|
||||
# Rev 1.1 19 Feb 1996 3:19:26 patv
|
||||
#Added NLS, int2f and config.sys processing
|
||||
#
|
||||
# Rev 1.0 02 Jul 1995 7:54:52 patv
|
||||
#Initial revision.
|
||||
#
|
||||
|
@ -25,39 +25,9 @@
|
||||
; write to the Free Software Foundation, 675 Mass Ave,
|
||||
; Cambridge, MA 02139, USA.
|
||||
;
|
||||
; @Logfile: C:/dos-c/src/drivers/rdatclk.asv @
|
||||
; Logfile: C:/dos-c/src/drivers/rdatclk.asv
|
||||
;
|
||||
; @Header: /home/cvsroot/fdkernel/DRIVERS/RDATCLK.ASM,v 1.3 1999/04/12 03:19:44 jprice Exp @
|
||||
;
|
||||
; @Log: rdatclk.asm,v @
|
||||
; Revision 1.1.1.1 2000/05/06 19:34:53 jhall1
|
||||
; The FreeDOS Kernel. A DOS kernel that aims to be 100% compatible with
|
||||
; MS-DOS. Distributed under the GNU GPL.
|
||||
;
|
||||
; Revision 1.3 1999/04/12 03:19:44 jprice
|
||||
; more ror4 patches
|
||||
;
|
||||
; Revision 1.2 1999/03/29 17:08:31 jprice
|
||||
; ror4 changes
|
||||
;
|
||||
; Revision 1.1.1.1 1999/03/29 15:40:31 jprice
|
||||
; New version without IPL.SYS
|
||||
;
|
||||
; Revision 1.2 1999/01/22 04:16:39 jprice
|
||||
; Formating
|
||||
;
|
||||
; Revision 1.1.1.1 1999/01/20 05:51:00 jprice
|
||||
; Imported sources
|
||||
;
|
||||
;
|
||||
; Rev 1.2 29 Aug 1996 13:07:10 patv
|
||||
;Bug fixes for v0.91b
|
||||
;
|
||||
; Rev 1.1 01 Sep 1995 18:50:40 patv
|
||||
;Initial GPL release.
|
||||
;
|
||||
; Rev 1.0 02 Jul 1995 8:00:16 patv
|
||||
;Initial revision.
|
||||
; $Header$
|
||||
;
|
||||
|
||||
%include "..\kernel\segs.inc"
|
||||
@ -114,3 +84,31 @@ _ReadATClock:
|
||||
sub ax,ax
|
||||
pop bp
|
||||
ret
|
||||
|
||||
; Log: rdatclk.asm,v
|
||||
;
|
||||
; Revision 1.3 1999/04/12 03:19:44 jprice
|
||||
; more ror4 patches
|
||||
;
|
||||
; Revision 1.2 1999/03/29 17:08:31 jprice
|
||||
; ror4 changes
|
||||
;
|
||||
; Revision 1.1.1.1 1999/03/29 15:40:31 jprice
|
||||
; New version without IPL.SYS
|
||||
;
|
||||
; Revision 1.2 1999/01/22 04:16:39 jprice
|
||||
; Formating
|
||||
;
|
||||
; Revision 1.1.1.1 1999/01/20 05:51:00 jprice
|
||||
; Imported sources
|
||||
;
|
||||
;
|
||||
; Rev 1.2 29 Aug 1996 13:07:10 patv
|
||||
;Bug fixes for v0.91b
|
||||
;
|
||||
; Rev 1.1 01 Sep 1995 18:50:40 patv
|
||||
;Initial GPL release.
|
||||
;
|
||||
; Rev 1.0 02 Jul 1995 8:00:16 patv
|
||||
;Initial revision.
|
||||
;
|
||||
|
@ -25,27 +25,29 @@
|
||||
; write to the Free Software Foundation, 675 Mass Ave,
|
||||
; Cambridge, MA 02139, USA.
|
||||
;
|
||||
; $Logfile: C:/dos-c/src/drivers/rdpcclk.asv $
|
||||
;
|
||||
; $Header$
|
||||
;
|
||||
; $Log$
|
||||
; Revision 1.5 2001/04/15 03:21:50 bartoldeman
|
||||
; See history.txt for the list of fixes.
|
||||
|
||||
%include "..\kernel\segs.inc"
|
||||
|
||||
segment HMA_TEXT
|
||||
|
||||
;
|
||||
; Revision 1.4 2001/03/21 02:56:25 bartoldeman
|
||||
; See history.txt for changes. Bug fixes and HMA support are the main ones.
|
||||
;
|
||||
; Revision 1.3 2000/05/25 20:56:19 jimtabor
|
||||
; Fixed project history
|
||||
;
|
||||
; Revision 1.2 2000/05/11 03:56:20 jimtabor
|
||||
; Clean up and Release
|
||||
;
|
||||
; Revision 1.1.1.1 2000/05/06 19:34:53 jhall1
|
||||
; The FreeDOS Kernel. A DOS kernel that aims to be 100% compatible with
|
||||
; MS-DOS. Distributed under the GNU GPL.
|
||||
; BOOL ReadPCClock(Ticks)
|
||||
; ULONG *Ticks;
|
||||
;
|
||||
global _ReadPCClock
|
||||
_ReadPCClock:
|
||||
xor ah,ah
|
||||
int 1ah
|
||||
mov bx,sp
|
||||
mov bx,[bx+2]
|
||||
mov [bx],dx
|
||||
mov [bx+2],cx
|
||||
cbw
|
||||
ret
|
||||
|
||||
; Log: rdpcclk.asm,v
|
||||
; Revision 1.4 1999/08/10 17:21:08 jprice
|
||||
; ror4 2011-01 patch
|
||||
;
|
||||
@ -74,23 +76,3 @@
|
||||
; Rev 1.0 02 Jul 1995 8:00:26 patv
|
||||
;Initial revision.
|
||||
;
|
||||
|
||||
%include "..\kernel\segs.inc"
|
||||
|
||||
|
||||
segment HMA_TEXT
|
||||
|
||||
;
|
||||
; BOOL ReadPCClock(Ticks)
|
||||
; ULONG *Ticks;
|
||||
;
|
||||
global _ReadPCClock
|
||||
_ReadPCClock:
|
||||
xor ah,ah
|
||||
int 1ah
|
||||
mov bx,sp
|
||||
mov bx,[bx+2]
|
||||
mov [bx],dx
|
||||
mov [bx+2],cx
|
||||
cbw
|
||||
ret
|
||||
|
@ -25,51 +25,7 @@
|
||||
; write to the Free Software Foundation, 675 Mass Ave,
|
||||
; Cambridge, MA 02139, USA.
|
||||
;
|
||||
; $Logfile: C:/dos-c/src/drivers/timer.asv $
|
||||
;
|
||||
; $Header$
|
||||
;
|
||||
; $Log$
|
||||
; Revision 1.5 2001/04/15 03:21:50 bartoldeman
|
||||
; See history.txt for the list of fixes.
|
||||
;
|
||||
; Revision 1.4 2001/03/21 02:56:25 bartoldeman
|
||||
; See history.txt for changes. Bug fixes and HMA support are the main ones.
|
||||
;
|
||||
; Revision 1.3 2000/05/25 20:56:19 jimtabor
|
||||
; Fixed project history
|
||||
;
|
||||
; Revision 1.2 2000/05/11 03:56:20 jimtabor
|
||||
; Clean up and Release
|
||||
;
|
||||
; Revision 1.1.1.1 2000/05/06 19:34:53 jhall1
|
||||
; The FreeDOS Kernel. A DOS kernel that aims to be 100% compatible with
|
||||
; MS-DOS. Distributed under the GNU GPL.
|
||||
;
|
||||
; Revision 1.3 1999/08/10 17:21:08 jprice
|
||||
; ror4 2011-01 patch
|
||||
;
|
||||
; Revision 1.2 1999/03/29 17:08:31 jprice
|
||||
; ror4 changes
|
||||
;
|
||||
; Revision 1.1.1.1 1999/03/29 15:40:34 jprice
|
||||
; New version without IPL.SYS
|
||||
;
|
||||
; Revision 1.2 1999/01/22 04:16:39 jprice
|
||||
; Formating
|
||||
;
|
||||
; Revision 1.1.1.1 1999/01/20 05:51:00 jprice
|
||||
; Imported sources
|
||||
;
|
||||
;
|
||||
; Rev 1.2 29 Aug 1996 13:07:12 patv
|
||||
;Bug fixes for v0.91b
|
||||
;
|
||||
; Rev 1.1 01 Sep 1995 18:50:42 patv
|
||||
;Initial GPL release.
|
||||
;
|
||||
; Rev 1.0 02 Jul 1995 8:01:04 patv
|
||||
;Initial revision.
|
||||
;
|
||||
|
||||
%include "..\kernel\segs.inc"
|
||||
@ -159,3 +115,30 @@ twait_2:
|
||||
|
||||
segment _BSS
|
||||
LastTime: resd 1
|
||||
|
||||
; Log: timer.asm,v
|
||||
; Revision 1.3 1999/08/10 17:21:08 jprice
|
||||
; ror4 2011-01 patch
|
||||
;
|
||||
; Revision 1.2 1999/03/29 17:08:31 jprice
|
||||
; ror4 changes
|
||||
;
|
||||
; Revision 1.1.1.1 1999/03/29 15:40:34 jprice
|
||||
; New version without IPL.SYS
|
||||
;
|
||||
; Revision 1.2 1999/01/22 04:16:39 jprice
|
||||
; Formating
|
||||
;
|
||||
; Revision 1.1.1.1 1999/01/20 05:51:00 jprice
|
||||
; Imported sources
|
||||
;
|
||||
;
|
||||
; Rev 1.2 29 Aug 1996 13:07:12 patv
|
||||
;Bug fixes for v0.91b
|
||||
;
|
||||
; Rev 1.1 01 Sep 1995 18:50:42 patv
|
||||
;Initial GPL release.
|
||||
;
|
||||
; Rev 1.0 02 Jul 1995 8:01:04 patv
|
||||
;Initial revision.
|
||||
;
|
||||
|
@ -25,51 +25,7 @@
|
||||
; write to the Free Software Foundation, 675 Mass Ave,
|
||||
; Cambridge, MA 02139, USA.
|
||||
;
|
||||
; $Logfile: C:/dos-c/src/drivers/wratclk.asv $
|
||||
;
|
||||
; $Header$
|
||||
;
|
||||
; $Log$
|
||||
; Revision 1.5 2001/04/15 03:21:50 bartoldeman
|
||||
; See history.txt for the list of fixes.
|
||||
;
|
||||
; Revision 1.4 2001/03/21 02:56:25 bartoldeman
|
||||
; See history.txt for changes. Bug fixes and HMA support are the main ones.
|
||||
;
|
||||
; Revision 1.3 2000/05/25 20:56:19 jimtabor
|
||||
; Fixed project history
|
||||
;
|
||||
; Revision 1.2 2000/05/11 03:56:20 jimtabor
|
||||
; Clean up and Release
|
||||
;
|
||||
; Revision 1.1.1.1 2000/05/06 19:34:53 jhall1
|
||||
; The FreeDOS Kernel. A DOS kernel that aims to be 100% compatible with
|
||||
; MS-DOS. Distributed under the GNU GPL.
|
||||
;
|
||||
; Revision 1.3 1999/08/10 17:21:08 jprice
|
||||
; ror4 2011-01 patch
|
||||
;
|
||||
; Revision 1.2 1999/03/29 17:08:31 jprice
|
||||
; ror4 changes
|
||||
;
|
||||
; Revision 1.1.1.1 1999/03/29 15:40:34 jprice
|
||||
; New version without IPL.SYS
|
||||
;
|
||||
; Revision 1.2 1999/01/22 04:16:40 jprice
|
||||
; Formating
|
||||
;
|
||||
; Revision 1.1.1.1 1999/01/20 05:51:00 jprice
|
||||
; Imported sources
|
||||
;
|
||||
;
|
||||
; Rev 1.2 29 Aug 1996 13:07:12 patv
|
||||
;Bug fixes for v0.91b
|
||||
;
|
||||
; Rev 1.1 01 Sep 1995 18:50:42 patv
|
||||
;Initial GPL release.
|
||||
;
|
||||
; Rev 1.0 02 Jul 1995 8:01:18 patv
|
||||
;Initial revision.
|
||||
;
|
||||
|
||||
%include "..\kernel\segs.inc"
|
||||
@ -104,3 +60,31 @@ _WriteATClock:
|
||||
int 1ah
|
||||
pop bp
|
||||
ret
|
||||
|
||||
; Log: wratclk.asm,v
|
||||
;
|
||||
; Revision 1.3 1999/08/10 17:21:08 jprice
|
||||
; ror4 2011-01 patch
|
||||
;
|
||||
; Revision 1.2 1999/03/29 17:08:31 jprice
|
||||
; ror4 changes
|
||||
;
|
||||
; Revision 1.1.1.1 1999/03/29 15:40:34 jprice
|
||||
; New version without IPL.SYS
|
||||
;
|
||||
; Revision 1.2 1999/01/22 04:16:40 jprice
|
||||
; Formating
|
||||
;
|
||||
; Revision 1.1.1.1 1999/01/20 05:51:00 jprice
|
||||
; Imported sources
|
||||
;
|
||||
;
|
||||
; Rev 1.2 29 Aug 1996 13:07:12 patv
|
||||
;Bug fixes for v0.91b
|
||||
;
|
||||
; Rev 1.1 01 Sep 1995 18:50:42 patv
|
||||
;Initial GPL release.
|
||||
;
|
||||
; Rev 1.0 02 Jul 1995 8:01:18 patv
|
||||
;Initial revision.
|
||||
;
|
||||
|
@ -25,26 +25,28 @@
|
||||
; write to the Free Software Foundation, 675 Mass Ave,
|
||||
; Cambridge, MA 02139, USA.
|
||||
;
|
||||
; $Logfile: C:/dos-c/src/drivers/wrpcclk.asv $
|
||||
;
|
||||
; $Header$
|
||||
;
|
||||
; $Log$
|
||||
; Revision 1.5 2001/04/15 03:21:50 bartoldeman
|
||||
; See history.txt for the list of fixes.
|
||||
%include "..\kernel\segs.inc"
|
||||
|
||||
segment HMA_TEXT
|
||||
|
||||
|
||||
;
|
||||
; Revision 1.4 2001/03/21 02:56:25 bartoldeman
|
||||
; See history.txt for changes. Bug fixes and HMA support are the main ones.
|
||||
; VOID WritePCClock(Ticks)
|
||||
; ULONG Ticks;
|
||||
;
|
||||
; Revision 1.3 2000/05/25 20:56:19 jimtabor
|
||||
; Fixed project history
|
||||
;
|
||||
; Revision 1.2 2000/05/11 03:56:20 jimtabor
|
||||
; Clean up and Release
|
||||
;
|
||||
; Revision 1.1.1.1 2000/05/06 19:34:53 jhall1
|
||||
; The FreeDOS Kernel. A DOS kernel that aims to be 100% compatible with
|
||||
; MS-DOS. Distributed under the GNU GPL.
|
||||
global _WritePCClock
|
||||
_WritePCClock:
|
||||
mov bx,sp
|
||||
; Ticks = 4
|
||||
mov cx,word [ss:bx+4]
|
||||
mov dx,word [ss:bx+2] ;Ticks
|
||||
mov ah,1
|
||||
int 1ah
|
||||
ret
|
||||
|
||||
; Log: wrpcclk.asm,v
|
||||
;
|
||||
; Revision 1.3 1999/08/10 17:21:08 jprice
|
||||
; ror4 2011-01 patch
|
||||
@ -71,21 +73,3 @@
|
||||
; Rev 1.0 02 Jul 1995 8:01:30 patv
|
||||
;Initial revision.
|
||||
;
|
||||
%include "..\kernel\segs.inc"
|
||||
|
||||
segment HMA_TEXT
|
||||
|
||||
|
||||
;
|
||||
; VOID WritePCClock(Ticks)
|
||||
; ULONG Ticks;
|
||||
;
|
||||
global _WritePCClock
|
||||
_WritePCClock:
|
||||
mov bx,sp
|
||||
; Ticks = 4
|
||||
mov cx,word [ss:bx+4]
|
||||
mov dx,word [ss:bx+2] ;Ticks
|
||||
mov ah,1
|
||||
int 1ah
|
||||
ret
|
||||
|
@ -1,11 +1,11 @@
|
||||
Begin3
|
||||
Title: The FreeDOS Kernel
|
||||
Version: 1.1.25
|
||||
Entered-date: 26 Sep 2001
|
||||
Version: 2.0.25.b
|
||||
Entered-date: 17 Nov 2001
|
||||
Description: The FreeDOS Kernel.
|
||||
Keywords: kernel freedos dos msdos
|
||||
Author: (developers)
|
||||
Maintained-by: bart.oldeman@bristol.ac.uk
|
||||
Maintained-by: bart@dosemu.org
|
||||
Primary-site: http://freedos.sourceforge.net
|
||||
Alternate-site: www.dosemu.org/~bart
|
||||
Original-site: http://www.gcfl.net/pub/FreeDOS/kernel
|
||||
|
@ -1,4 +1,4 @@
|
||||
@if not \%MAKE% == \ goto make_set
|
||||
@if not "%MAKE%" == "" goto make_set
|
||||
|
||||
@if \%COMPILER% == \TC2 set MAKE=%TC2_BASE%\make
|
||||
@if \%COMPILER% == \TURBOCPP set MAKE=%TP1_BASE%\bin\make
|
||||
|
28
hdr/buffer.h
28
hdr/buffer.h
@ -36,27 +36,6 @@ static BYTE *buffer_hRcsId = "$Id$";
|
||||
#endif
|
||||
#endif
|
||||
|
||||
/*
|
||||
* $Log$
|
||||
* Revision 1.5 2001/09/23 20:39:44 bartoldeman
|
||||
* FAT32 support, misc fixes, INT2F/AH=12 support, drive B: handling
|
||||
*
|
||||
* Revision 1.4 2001/08/19 12:58:34 bartoldeman
|
||||
* Time and date fixes, Ctrl-S/P, findfirst/next, FCBs, buffers, tsr unloading
|
||||
*
|
||||
* Revision 1.3 2001/07/24 16:56:29 bartoldeman
|
||||
* fixes for FCBs, DJGPP ls, DBLBYTE, dyninit allocation (2024e).
|
||||
*
|
||||
* Revision 1.2 2001/06/03 14:16:17 bartoldeman
|
||||
* BUFFERS tuning and misc bug fixes/cleanups (2024c).
|
||||
*
|
||||
* Revision 1.1 2001/04/21 22:32:53 bartoldeman
|
||||
* Init DS=Init CS, fixed stack overflow problems and misc bugs.
|
||||
*
|
||||
* Rev 1.0 20 Apr 2001 17:30:00 Bart Oldeman
|
||||
* Initial revision.
|
||||
*/
|
||||
|
||||
#define BUFFERSIZE 512
|
||||
struct buffer
|
||||
{
|
||||
@ -94,3 +73,10 @@ struct buffer
|
||||
#define BFR_DIR 0x04 /* buffer is from dir area */
|
||||
#define BFR_FAT 0x02 /* buffer is from fat area */
|
||||
#define BFR_BOOT 0x01 /* buffer is boot disk */
|
||||
|
||||
/*
|
||||
* Log: buffer.h,v
|
||||
* Rev 1.0 20 Apr 2001 17:30:00 Bart Oldeman
|
||||
* Initial revision.
|
||||
*/
|
||||
|
||||
|
71
hdr/cds.h
71
hdr/cds.h
@ -32,50 +32,6 @@ static BYTE *Cds_hRcsId = "$Id$";
|
||||
#endif
|
||||
#endif
|
||||
|
||||
/*
|
||||
* $Log$
|
||||
* Revision 1.5 2001/11/04 19:47:39 bartoldeman
|
||||
* kernel 2025a changes: see history.txt
|
||||
*
|
||||
* Revision 1.4 2001/04/15 03:21:50 bartoldeman
|
||||
* See history.txt for the list of fixes.
|
||||
*
|
||||
* Revision 1.3 2000/05/25 20:56:19 jimtabor
|
||||
* Fixed project history
|
||||
*
|
||||
* Revision 1.2 2000/05/08 04:28:22 jimtabor
|
||||
* Update CVS to 2020
|
||||
*
|
||||
* Revision 1.1.1.1 2000/05/06 19:34:53 jhall1
|
||||
* The FreeDOS Kernel. A DOS kernel that aims to be 100% compatible with
|
||||
* MS-DOS. Distributed under the GNU GPL.
|
||||
*
|
||||
* Revision 1.2 2000/03/09 06:06:38 kernel
|
||||
* 2017f updates by James Tabor
|
||||
*
|
||||
* Revision 1.1.1.1 1999/03/29 15:39:22 jprice
|
||||
* New version without IPL.SYS
|
||||
*
|
||||
* Revision 1.4 1999/02/01 01:40:06 jprice
|
||||
* Clean up
|
||||
*
|
||||
* Revision 1.3 1999/01/30 08:21:43 jprice
|
||||
* Clean up
|
||||
*
|
||||
* Revision 1.2 1999/01/22 04:17:40 jprice
|
||||
* Formating
|
||||
*
|
||||
* Revision 1.1.1.1 1999/01/20 05:51:01 jprice
|
||||
* Imported sources
|
||||
*
|
||||
|
||||
Rev 1.1 04 Jan 1998 23:14:18 patv
|
||||
Changed Log for strip utility
|
||||
|
||||
Rev 1.0 19 Feb 1996 3:15:52 patv
|
||||
Added NLS, int2f and config.sys processing
|
||||
*/
|
||||
|
||||
#define MAX_CDSPATH 67
|
||||
|
||||
struct cds
|
||||
@ -124,3 +80,30 @@ cdstbl;
|
||||
#define CDSSUBST 0x1000
|
||||
#define CDSVALID (CDSNETWDRV | CDSPHYSDRV)
|
||||
|
||||
/*
|
||||
* Log: cds.h,v
|
||||
* Revision 1.2 2000/03/09 06:06:38 kernel
|
||||
* 2017f updates by James Tabor
|
||||
*
|
||||
* Revision 1.1.1.1 1999/03/29 15:39:22 jprice
|
||||
* New version without IPL.SYS
|
||||
*
|
||||
* Revision 1.4 1999/02/01 01:40:06 jprice
|
||||
* Clean up
|
||||
*
|
||||
* Revision 1.3 1999/01/30 08:21:43 jprice
|
||||
* Clean up
|
||||
*
|
||||
* Revision 1.2 1999/01/22 04:17:40 jprice
|
||||
* Formating
|
||||
*
|
||||
* Revision 1.1.1.1 1999/01/20 05:51:01 jprice
|
||||
* Imported sources
|
||||
*
|
||||
|
||||
Rev 1.1 04 Jan 1998 23:14:18 patv
|
||||
Changed Log for strip utility
|
||||
|
||||
Rev 1.0 19 Feb 1996 3:15:52 patv
|
||||
Added NLS, int2f and config.sys processing
|
||||
*/
|
||||
|
30
hdr/clock.h
30
hdr/clock.h
@ -36,17 +36,18 @@ static BYTE *clock_hRcsId = "$Id$";
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
||||
struct ClockRecord
|
||||
{
|
||||
UWORD clkDays; /* days since Jan 1, 1980. */
|
||||
UBYTE clkMinutes; /* residual minutes. */
|
||||
UBYTE clkHours; /* residual hours. */
|
||||
UBYTE clkHundredths; /* residual hundredths of a second. */
|
||||
UBYTE clkSeconds; /* residual seconds. */
|
||||
};
|
||||
|
||||
/*
|
||||
* $Log$
|
||||
* Revision 1.3 2000/05/25 20:56:19 jimtabor
|
||||
* Fixed project history
|
||||
*
|
||||
* Revision 1.2 2000/05/08 04:28:22 jimtabor
|
||||
* Update CVS to 2020
|
||||
*
|
||||
* Revision 1.1.1.1 2000/05/06 19:34:53 jhall1
|
||||
* The FreeDOS Kernel. A DOS kernel that aims to be 100% compatible with
|
||||
* MS-DOS. Distributed under the GNU GPL.
|
||||
* Log: clock.h,v
|
||||
*
|
||||
* Revision 1.1.1.1 1999/03/29 15:39:22 jprice
|
||||
* New version without IPL.SYS
|
||||
@ -82,12 +83,3 @@ static BYTE *clock_hRcsId = "$Id$";
|
||||
* Rev 1.0 02 Jul 1995 10:39:26 patv
|
||||
* Initial revision.
|
||||
*/
|
||||
|
||||
struct ClockRecord
|
||||
{
|
||||
UWORD clkDays; /* days since Jan 1, 1980. */
|
||||
UBYTE clkMinutes; /* residual minutes. */
|
||||
UBYTE clkHours; /* residual hours. */
|
||||
UBYTE clkHundredths; /* residual hundredths of a second. */
|
||||
UBYTE clkSeconds; /* residual seconds. */
|
||||
};
|
||||
|
47
hdr/date.h
47
hdr/date.h
@ -36,17 +36,26 @@ static BYTE *date_hRcsId = "$Id$";
|
||||
#endif
|
||||
#endif
|
||||
|
||||
/* FAT file date - takes the form of yyyy yyym mmmd dddd where physical */
|
||||
/* year=1980+yyyyyy */
|
||||
|
||||
#define DT_YEAR(d) (((d)>>9)&0x7f)
|
||||
#define DT_MONTH(d) (((d)>>5)&0x0f)
|
||||
#define DT_DAY(d) ((d)&0x1f)
|
||||
|
||||
#define DT_ENCODE(m,d,y) ((((m)&0x0f)<<5)|((d)&0x1f)|(((y)&0x7f)<<9))
|
||||
|
||||
#define EPOCH_WEEKDAY 2 /* Tuesday (i. e.- 0 == Sunday) */
|
||||
#define EPOCH_MONTH 1 /* January */
|
||||
#define EPOCH_DAY 1 /* 1 for January 1 */
|
||||
#define EPOCH_YEAR 1980 /* for Tues 1-1-80 epoch */
|
||||
|
||||
typedef UWORD date;
|
||||
|
||||
#endif
|
||||
|
||||
/*
|
||||
* $Log$
|
||||
* Revision 1.3 2000/05/25 20:56:19 jimtabor
|
||||
* Fixed project history
|
||||
*
|
||||
* Revision 1.2 2000/05/08 04:28:22 jimtabor
|
||||
* Update CVS to 2020
|
||||
*
|
||||
* Revision 1.1.1.1 2000/05/06 19:34:53 jhall1
|
||||
* The FreeDOS Kernel. A DOS kernel that aims to be 100% compatible with
|
||||
* MS-DOS. Distributed under the GNU GPL.
|
||||
* Log: date.h,v
|
||||
*
|
||||
* Revision 1.2 1999/08/25 03:17:11 jprice
|
||||
* ror4 patches to allow TC 2.01 compile.
|
||||
@ -82,21 +91,3 @@ static BYTE *date_hRcsId = "$Id$";
|
||||
* Rev 1.0 02 Jul 1995 10:39:28 patv
|
||||
* Initial revision.
|
||||
*/
|
||||
|
||||
/* FAT file date - takes the form of yyyy yyym mmmd dddd where physical */
|
||||
/* year=1980+yyyyyy */
|
||||
|
||||
#define DT_YEAR(d) (((d)>>9)&0x7f)
|
||||
#define DT_MONTH(d) (((d)>>5)&0x0f)
|
||||
#define DT_DAY(d) ((d)&0x1f)
|
||||
|
||||
#define DT_ENCODE(m,d,y) ((((m)&0x0f)<<5)|((d)&0x1f)|(((y)&0x7f)<<9))
|
||||
|
||||
#define EPOCH_WEEKDAY 2 /* Tuesday (i. e.- 0 == Sunday) */
|
||||
#define EPOCH_MONTH 1 /* January */
|
||||
#define EPOCH_DAY 1 /* 1 for January 1 */
|
||||
#define EPOCH_YEAR 1980 /* for Tues 1-1-80 epoch */
|
||||
|
||||
typedef UWORD date;
|
||||
|
||||
#endif
|
||||
|
99
hdr/dcb.h
99
hdr/dcb.h
@ -34,65 +34,6 @@ static BYTE *clock_hRcsId = "$Id$";
|
||||
#endif
|
||||
#endif
|
||||
|
||||
/*
|
||||
* $Log$
|
||||
* Revision 1.6 2001/11/04 19:47:39 bartoldeman
|
||||
* kernel 2025a changes: see history.txt
|
||||
*
|
||||
* Revision 1.5 2001/09/23 20:39:44 bartoldeman
|
||||
* FAT32 support, misc fixes, INT2F/AH=12 support, drive B: handling
|
||||
*
|
||||
* Revision 1.4 2001/04/15 03:21:50 bartoldeman
|
||||
* See history.txt for the list of fixes.
|
||||
*
|
||||
* Revision 1.3 2000/05/25 20:56:19 jimtabor
|
||||
* Fixed project history
|
||||
*
|
||||
* Revision 1.2 2000/05/08 04:28:22 jimtabor
|
||||
* Update CVS to 2020
|
||||
*
|
||||
* Revision 1.1.1.1 2000/05/06 19:34:53 jhall1
|
||||
* The FreeDOS Kernel. A DOS kernel that aims to be 100% compatible with
|
||||
* MS-DOS. Distributed under the GNU GPL.
|
||||
*
|
||||
* Revision 1.3 2000/03/09 06:06:38 kernel
|
||||
* 2017f updates by James Tabor
|
||||
*
|
||||
* Revision 1.2 1999/04/16 00:52:09 jprice
|
||||
* Optimized FAT handling
|
||||
*
|
||||
* Revision 1.1.1.1 1999/03/29 15:39:23 jprice
|
||||
* New version without IPL.SYS
|
||||
*
|
||||
* Revision 1.3 1999/02/01 01:40:06 jprice
|
||||
* Clean up
|
||||
*
|
||||
* Revision 1.2 1999/01/22 04:17:40 jprice
|
||||
* Formating
|
||||
*
|
||||
* Revision 1.1.1.1 1999/01/20 05:51:01 jprice
|
||||
* Imported sources
|
||||
*
|
||||
*
|
||||
* Rev 1.5 04 Jan 1998 23:14:18 patv
|
||||
* Changed Log for strip utility
|
||||
*
|
||||
* Rev 1.4 29 May 1996 21:25:20 patv
|
||||
* bug fixes for v0.91a
|
||||
*
|
||||
* Rev 1.3 19 Feb 1996 3:15:30 patv
|
||||
* Added NLS, int2f and config.sys processing
|
||||
*
|
||||
* Rev 1.2 01 Sep 1995 17:35:40 patv
|
||||
* First GPL release.
|
||||
*
|
||||
* Rev 1.1 30 Jul 1995 20:43:48 patv
|
||||
* Eliminated version strings in ipl
|
||||
*
|
||||
* Rev 1.0 02 Jul 1995 10:39:30 patv
|
||||
* Initial revision.
|
||||
*/
|
||||
|
||||
/* Internal drive parameter block */
|
||||
struct dpb
|
||||
{
|
||||
@ -151,3 +92,43 @@ struct dpb
|
||||
#define XUNKNCLSTFREE 0xffffffffl /* unknown for DOS */
|
||||
#define UNKNCLSTFREE 0xffff /* unknown for DOS */
|
||||
|
||||
/*
|
||||
* Log: dcb.h,v
|
||||
*
|
||||
* Revision 1.3 2000/03/09 06:06:38 kernel
|
||||
* 2017f updates by James Tabor
|
||||
*
|
||||
* Revision 1.2 1999/04/16 00:52:09 jprice
|
||||
* Optimized FAT handling
|
||||
*
|
||||
* Revision 1.1.1.1 1999/03/29 15:39:23 jprice
|
||||
* New version without IPL.SYS
|
||||
*
|
||||
* Revision 1.3 1999/02/01 01:40:06 jprice
|
||||
* Clean up
|
||||
*
|
||||
* Revision 1.2 1999/01/22 04:17:40 jprice
|
||||
* Formating
|
||||
*
|
||||
* Revision 1.1.1.1 1999/01/20 05:51:01 jprice
|
||||
* Imported sources
|
||||
*
|
||||
*
|
||||
* Rev 1.5 04 Jan 1998 23:14:18 patv
|
||||
* Changed Log for strip utility
|
||||
*
|
||||
* Rev 1.4 29 May 1996 21:25:20 patv
|
||||
* bug fixes for v0.91a
|
||||
*
|
||||
* Rev 1.3 19 Feb 1996 3:15:30 patv
|
||||
* Added NLS, int2f and config.sys processing
|
||||
*
|
||||
* Rev 1.2 01 Sep 1995 17:35:40 patv
|
||||
* First GPL release.
|
||||
*
|
||||
* Rev 1.1 30 Jul 1995 20:43:48 patv
|
||||
* Eliminated version strings in ipl
|
||||
*
|
||||
* Rev 1.0 02 Jul 1995 10:39:30 patv
|
||||
* Initial revision.
|
||||
*/
|
||||
|
143
hdr/device.h
143
hdr/device.h
@ -33,91 +33,6 @@ static BYTE *device_hRcsId = "$Id$";
|
||||
#endif
|
||||
#endif
|
||||
|
||||
/*
|
||||
* $Log$
|
||||
* Revision 1.9 2001/11/04 19:47:39 bartoldeman
|
||||
* kernel 2025a changes: see history.txt
|
||||
*
|
||||
* Revision 1.8 2001/09/23 20:39:44 bartoldeman
|
||||
* FAT32 support, misc fixes, INT2F/AH=12 support, drive B: handling
|
||||
*
|
||||
* Revision 1.7 2001/07/22 01:58:58 bartoldeman
|
||||
* Support for Brian's FORMAT, DJGPP libc compilation, cleanups, MSCDEX
|
||||
*
|
||||
* Revision 1.6 2001/06/03 14:16:17 bartoldeman
|
||||
* BUFFERS tuning and misc bug fixes/cleanups (2024c).
|
||||
*
|
||||
* Revision 1.5 2001/04/15 03:21:50 bartoldeman
|
||||
* See history.txt for the list of fixes.
|
||||
*
|
||||
* Revision 1.4 2000/05/25 20:56:19 jimtabor
|
||||
* Fixed project history
|
||||
*
|
||||
* Revision 1.3 2000/05/11 04:24:51 jimtabor
|
||||
* Added Boot blk structs
|
||||
*
|
||||
* Revision 1.2 2000/05/08 04:28:22 jimtabor
|
||||
* Update CVS to 2020
|
||||
*
|
||||
* Revision 1.1.1.1 2000/05/06 19:34:53 jhall1
|
||||
* The FreeDOS Kernel. A DOS kernel that aims to be 100% compatible with
|
||||
* MS-DOS. Distributed under the GNU GPL.
|
||||
*
|
||||
* Revision 1.4 2000/04/29 05:13:16 jtabor
|
||||
* Added new functions and clean up code
|
||||
*
|
||||
* Revision 1.3 2000/03/09 06:06:38 kernel
|
||||
* 2017f updates by James Tabor
|
||||
*
|
||||
* Revision 1.2 1999/04/04 18:50:14 jprice
|
||||
* no message
|
||||
*
|
||||
* Revision 1.1.1.1 1999/03/29 15:39:26 jprice
|
||||
* New version without IPL.SYS
|
||||
*
|
||||
* Revision 1.5 1999/02/08 05:58:24 jprice
|
||||
* Added Pat's 1937 kernel patches
|
||||
*
|
||||
* Revision 1.4 1999/02/04 03:08:47 jprice
|
||||
* no message
|
||||
*
|
||||
* Revision 1.3 1999/02/01 01:40:06 jprice
|
||||
* Clean up
|
||||
*
|
||||
* Revision 1.2 1999/01/22 04:17:40 jprice
|
||||
* Formating
|
||||
*
|
||||
* Revision 1.1.1.1 1999/01/20 05:51:01 jprice
|
||||
* Imported sources
|
||||
*
|
||||
*
|
||||
* Rev 1.8 06 Dec 1998 8:41:30 patv
|
||||
* Changed for new I/O subsystem
|
||||
*
|
||||
* Rev 1.7 11 Jan 1998 2:05:54 patv
|
||||
* Added functionality to ioctl.
|
||||
*
|
||||
* Rev 1.6 04 Jan 1998 23:14:20 patv
|
||||
* Changed Log for strip utility
|
||||
*
|
||||
* Rev 1.5 16 Jan 1997 12:46:06 patv
|
||||
* pre-Release 0.92 feature additions
|
||||
*
|
||||
* Rev 1.4 29 May 1996 21:25:12 patv
|
||||
* bug fixes for v0.91a
|
||||
*
|
||||
* Rev 1.3 19 Feb 1996 3:15:30 patv
|
||||
* Added NLS, int2f and config.sys processing
|
||||
*
|
||||
* Rev 1.2 01 Sep 1995 17:35:40 patv
|
||||
* First GPL release.
|
||||
*
|
||||
* Rev 1.1 30 Jul 1995 20:43:48 patv
|
||||
* Eliminated version strings in ipl
|
||||
*
|
||||
* Rev 1.0 02 Jul 1995 10:39:30 patv
|
||||
* Initial revision.
|
||||
*/
|
||||
|
||||
/*
|
||||
* Status Word Bits
|
||||
@ -574,3 +489,61 @@ typedef struct dhdr FAR *dhdrptr;
|
||||
* end of device.h
|
||||
*/
|
||||
|
||||
/*
|
||||
* Log: device.h,v
|
||||
*
|
||||
* Revision 1.4 2000/04/29 05:13:16 jtabor
|
||||
* Added new functions and clean up code
|
||||
*
|
||||
* Revision 1.3 2000/03/09 06:06:38 kernel
|
||||
* 2017f updates by James Tabor
|
||||
*
|
||||
* Revision 1.2 1999/04/04 18:50:14 jprice
|
||||
* no message
|
||||
*
|
||||
* Revision 1.1.1.1 1999/03/29 15:39:26 jprice
|
||||
* New version without IPL.SYS
|
||||
*
|
||||
* Revision 1.5 1999/02/08 05:58:24 jprice
|
||||
* Added Pat's 1937 kernel patches
|
||||
*
|
||||
* Revision 1.4 1999/02/04 03:08:47 jprice
|
||||
* no message
|
||||
*
|
||||
* Revision 1.3 1999/02/01 01:40:06 jprice
|
||||
* Clean up
|
||||
*
|
||||
* Revision 1.2 1999/01/22 04:17:40 jprice
|
||||
* Formating
|
||||
*
|
||||
* Revision 1.1.1.1 1999/01/20 05:51:01 jprice
|
||||
* Imported sources
|
||||
*
|
||||
*
|
||||
* Rev 1.8 06 Dec 1998 8:41:30 patv
|
||||
* Changed for new I/O subsystem
|
||||
*
|
||||
* Rev 1.7 11 Jan 1998 2:05:54 patv
|
||||
* Added functionality to ioctl.
|
||||
*
|
||||
* Rev 1.6 04 Jan 1998 23:14:20 patv
|
||||
* Changed Log for strip utility
|
||||
*
|
||||
* Rev 1.5 16 Jan 1997 12:46:06 patv
|
||||
* pre-Release 0.92 feature additions
|
||||
*
|
||||
* Rev 1.4 29 May 1996 21:25:12 patv
|
||||
* bug fixes for v0.91a
|
||||
*
|
||||
* Rev 1.3 19 Feb 1996 3:15:30 patv
|
||||
* Added NLS, int2f and config.sys processing
|
||||
*
|
||||
* Rev 1.2 01 Sep 1995 17:35:40 patv
|
||||
* First GPL release.
|
||||
*
|
||||
* Rev 1.1 30 Jul 1995 20:43:48 patv
|
||||
* Eliminated version strings in ipl
|
||||
*
|
||||
* Rev 1.0 02 Jul 1995 10:39:30 patv
|
||||
* Initial revision.
|
||||
*/
|
||||
|
@ -34,30 +34,45 @@ static BYTE *dirmatch_hRcsId = "$Id$";
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
||||
typedef struct
|
||||
{
|
||||
BYTE dm_drive;
|
||||
BYTE dm_name_pat[FNAME_SIZE + FEXT_SIZE];
|
||||
BYTE dm_attr_srch;
|
||||
UWORD dm_entry;
|
||||
#ifdef WITHFAT32
|
||||
ULONG dm_dircluster;
|
||||
#else
|
||||
UWORD dm_dircluster;
|
||||
UWORD reserved;
|
||||
#endif
|
||||
|
||||
struct
|
||||
{
|
||||
BITS /* directory has been modified */
|
||||
f_dmod:1;
|
||||
BITS /* directory is the root */
|
||||
f_droot:1;
|
||||
BITS /* fnode is new and needs fill */
|
||||
f_dnew:1;
|
||||
BITS /* fnode is assigned to dir */
|
||||
f_ddir:1;
|
||||
BITS /* filler to avoid a bad bug (feature?) in */
|
||||
f_filler:12; /* TC 2.01 */
|
||||
}
|
||||
dm_flags; /* file flags */
|
||||
|
||||
BYTE dm_attr_fnd; /* found file attribute */
|
||||
time dm_time; /* file time */
|
||||
date dm_date; /* file date */
|
||||
LONG dm_size; /* file size */
|
||||
BYTE dm_name[FNAME_SIZE + FEXT_SIZE + 2]; /* file name */
|
||||
}
|
||||
dmatch;
|
||||
|
||||
/*
|
||||
* $Log$
|
||||
* Revision 1.7 2001/11/04 19:47:39 bartoldeman
|
||||
* kernel 2025a changes: see history.txt
|
||||
*
|
||||
* Revision 1.6 2001/09/23 20:39:44 bartoldeman
|
||||
* FAT32 support, misc fixes, INT2F/AH=12 support, drive B: handling
|
||||
*
|
||||
* Revision 1.5 2001/07/09 22:19:33 bartoldeman
|
||||
* LBA/FCB/FAT/SYS/Ctrl-C/ioctl fixes + memory savings
|
||||
*
|
||||
* Revision 1.4 2001/04/16 01:45:26 bartoldeman
|
||||
* Fixed handles, config.sys drivers, warnings. Enabled INT21/AH=6C, printf %S/%Fs
|
||||
*
|
||||
* Revision 1.3 2000/05/25 20:56:19 jimtabor
|
||||
* Fixed project history
|
||||
*
|
||||
* Revision 1.2 2000/05/08 04:28:22 jimtabor
|
||||
* Update CVS to 2020
|
||||
*
|
||||
* Revision 1.1.1.1 2000/05/06 19:34:53 jhall1
|
||||
* The FreeDOS Kernel. A DOS kernel that aims to be 100% compatible with
|
||||
* MS-DOS. Distributed under the GNU GPL.
|
||||
*
|
||||
* Log: dirmatch.h,v
|
||||
* Revision 1.3 2000/03/09 06:06:38 kernel
|
||||
* 2017f updates by James Tabor
|
||||
*
|
||||
@ -99,40 +114,3 @@ static BYTE *dirmatch_hRcsId = "$Id$";
|
||||
* Initial revision.
|
||||
*
|
||||
*/
|
||||
|
||||
typedef struct
|
||||
{
|
||||
BYTE dm_drive;
|
||||
BYTE dm_name_pat[FNAME_SIZE + FEXT_SIZE];
|
||||
BYTE dm_attr_srch;
|
||||
UWORD dm_entry;
|
||||
#ifdef WITHFAT32
|
||||
ULONG dm_dircluster;
|
||||
#else
|
||||
UWORD dm_dircluster;
|
||||
UWORD reserved;
|
||||
#endif
|
||||
|
||||
struct
|
||||
{
|
||||
BITS /* directory has been modified */
|
||||
f_dmod:1;
|
||||
BITS /* directory is the root */
|
||||
f_droot:1;
|
||||
BITS /* fnode is new and needs fill */
|
||||
f_dnew:1;
|
||||
BITS /* fnode is assigned to dir */
|
||||
f_ddir:1;
|
||||
BITS /* filler to avoid a bad bug (feature?) in */
|
||||
f_filler:12; /* TC 2.01 */
|
||||
}
|
||||
dm_flags; /* file flags */
|
||||
|
||||
BYTE dm_attr_fnd; /* found file attribute */
|
||||
time dm_time; /* file time */
|
||||
date dm_date; /* file date */
|
||||
LONG dm_size; /* file size */
|
||||
BYTE dm_name[FNAME_SIZE + FEXT_SIZE + 2]; /* file name */
|
||||
}
|
||||
dmatch;
|
||||
|
||||
|
@ -34,8 +34,19 @@ static BYTE *dosnames_hRcsId = "$Id$";
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
||||
#define PARSE_MAX 64
|
||||
|
||||
struct dosnames
|
||||
{
|
||||
UBYTE dn_drive; /* the drive that was parsed */
|
||||
UBYTE dn_network[PARSE_MAX]; /* specified network */
|
||||
UBYTE dn_path[PARSE_MAX]; /* the path */
|
||||
UBYTE dn_name[FNAME_SIZE + FEXT_SIZE + 1]; /* the file name */
|
||||
};
|
||||
|
||||
/*
|
||||
* $Log$
|
||||
* Log: dosnames.h,v
|
||||
* Revision 1.2 2000/05/08 04:28:22 jimtabor
|
||||
* Update CVS to 2020
|
||||
*
|
||||
@ -67,13 +78,3 @@ static BYTE *dosnames_hRcsId = "$Id$";
|
||||
* Rev 1.0 02 Jul 1995 10:39:34 patv
|
||||
* Initial revision.
|
||||
*/
|
||||
|
||||
#define PARSE_MAX 64
|
||||
|
||||
struct dosnames
|
||||
{
|
||||
UBYTE dn_drive; /* the drive that was parsed */
|
||||
UBYTE dn_network[PARSE_MAX]; /* specified network */
|
||||
UBYTE dn_path[PARSE_MAX]; /* the path */
|
||||
UBYTE dn_name[FNAME_SIZE + FEXT_SIZE + 1]; /* the file name */
|
||||
};
|
||||
|
105
hdr/error.h
105
hdr/error.h
@ -34,67 +34,6 @@ static BYTE *error_hRcsId = "$Id$";
|
||||
#endif
|
||||
#endif
|
||||
|
||||
/*
|
||||
* $Log$
|
||||
* Revision 1.6 2001/09/23 20:39:44 bartoldeman
|
||||
* FAT32 support, misc fixes, INT2F/AH=12 support, drive B: handling
|
||||
*
|
||||
* Revision 1.5 2001/04/16 01:45:26 bartoldeman
|
||||
* Fixed handles, config.sys drivers, warnings. Enabled INT21/AH=6C, printf %S/%Fs
|
||||
*
|
||||
* Revision 1.4 2000/11/02 06:56:53 jimtabor
|
||||
* Fix Share Patch
|
||||
*
|
||||
* Revision 1.3 2000/05/25 20:56:19 jimtabor
|
||||
* Fixed project history
|
||||
*
|
||||
* Revision 1.2 2000/05/08 04:28:22 jimtabor
|
||||
* Update CVS to 2020
|
||||
*
|
||||
* Revision 1.1.1.1 2000/05/06 19:34:53 jhall1
|
||||
* The FreeDOS Kernel. A DOS kernel that aims to be 100% compatible with
|
||||
* MS-DOS. Distributed under the GNU GPL.
|
||||
*
|
||||
* Revision 1.1.1.1 1999/03/29 15:39:27 jprice
|
||||
* New version without IPL.SYS
|
||||
*
|
||||
* Revision 1.5 1999/02/08 05:58:24 jprice
|
||||
* Added Pat's 1937 kernel patches
|
||||
*
|
||||
* Revision 1.4 1999/02/01 01:40:06 jprice
|
||||
* Clean up
|
||||
*
|
||||
* Revision 1.3 1999/01/30 08:21:43 jprice
|
||||
* Clean up
|
||||
*
|
||||
* Revision 1.2 1999/01/22 04:17:40 jprice
|
||||
* Formating
|
||||
*
|
||||
* Revision 1.1.1.1 1999/01/20 05:51:01 jprice
|
||||
* Imported sources
|
||||
*
|
||||
*
|
||||
* Rev 1.6 06 Dec 1998 8:41:00 patv
|
||||
* Added new errors for new I/O subsystem.
|
||||
*
|
||||
* Rev 1.5 04 Jan 1998 23:14:16 patv
|
||||
* Changed Log for strip utility
|
||||
*
|
||||
* Rev 1.4 29 May 1996 21:25:18 patv
|
||||
* bug fixes for v0.91a
|
||||
*
|
||||
* Rev 1.3 19 Feb 1996 3:15:28 patv
|
||||
* Added NLS, int2f and config.sys processing
|
||||
*
|
||||
* Rev 1.2 01 Sep 1995 17:35:38 patv
|
||||
* First GPL release.
|
||||
*
|
||||
* Rev 1.1 30 Jul 1995 20:42:28 patv
|
||||
* fixed ipl
|
||||
*
|
||||
* Rev 1.0 02 Jul 1995 10:39:36 patv
|
||||
* Initial revision.
|
||||
*/
|
||||
|
||||
/* Internal system error returns */
|
||||
#define SUCCESS 0 /* Function was successful */
|
||||
@ -146,3 +85,47 @@ static BYTE *error_hRcsId = "$Id$";
|
||||
#define RETRY 1
|
||||
#define ABORT 2
|
||||
#define FAIL 3
|
||||
|
||||
/*
|
||||
* Log: error.h,v
|
||||
*
|
||||
* Revision 1.1.1.1 1999/03/29 15:39:27 jprice
|
||||
* New version without IPL.SYS
|
||||
*
|
||||
* Revision 1.5 1999/02/08 05:58:24 jprice
|
||||
* Added Pat's 1937 kernel patches
|
||||
*
|
||||
* Revision 1.4 1999/02/01 01:40:06 jprice
|
||||
* Clean up
|
||||
*
|
||||
* Revision 1.3 1999/01/30 08:21:43 jprice
|
||||
* Clean up
|
||||
*
|
||||
* Revision 1.2 1999/01/22 04:17:40 jprice
|
||||
* Formating
|
||||
*
|
||||
* Revision 1.1.1.1 1999/01/20 05:51:01 jprice
|
||||
* Imported sources
|
||||
*
|
||||
*
|
||||
* Rev 1.6 06 Dec 1998 8:41:00 patv
|
||||
* Added new errors for new I/O subsystem.
|
||||
*
|
||||
* Rev 1.5 04 Jan 1998 23:14:16 patv
|
||||
* Changed Log for strip utility
|
||||
*
|
||||
* Rev 1.4 29 May 1996 21:25:18 patv
|
||||
* bug fixes for v0.91a
|
||||
*
|
||||
* Rev 1.3 19 Feb 1996 3:15:28 patv
|
||||
* Added NLS, int2f and config.sys processing
|
||||
*
|
||||
* Rev 1.2 01 Sep 1995 17:35:38 patv
|
||||
* First GPL release.
|
||||
*
|
||||
* Rev 1.1 30 Jul 1995 20:42:28 patv
|
||||
* fixed ipl
|
||||
*
|
||||
* Rev 1.0 02 Jul 1995 10:39:36 patv
|
||||
* Initial revision.
|
||||
*/
|
||||
|
54
hdr/exe.h
54
hdr/exe.h
@ -34,17 +34,30 @@ static BYTE *exe_hRcsId = "$Id$";
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
||||
typedef struct
|
||||
{
|
||||
UWORD exSignature;
|
||||
UWORD exExtraBytes;
|
||||
UWORD exPages;
|
||||
UWORD exRelocItems;
|
||||
UWORD exHeaderSize;
|
||||
UWORD exMinAlloc;
|
||||
UWORD exMaxAlloc;
|
||||
UWORD exInitSS;
|
||||
UWORD exInitSP;
|
||||
UWORD exCheckSum;
|
||||
UWORD exInitIP;
|
||||
UWORD exInitCS;
|
||||
UWORD exRelocTable;
|
||||
UWORD exOverlay;
|
||||
}
|
||||
exe_header;
|
||||
|
||||
#define MAGIC 0x5a4d
|
||||
|
||||
/*
|
||||
* $Log$
|
||||
* Revision 1.3 2000/05/25 20:56:19 jimtabor
|
||||
* Fixed project history
|
||||
*
|
||||
* Revision 1.2 2000/05/08 04:28:22 jimtabor
|
||||
* Update CVS to 2020
|
||||
*
|
||||
* Revision 1.1.1.1 2000/05/06 19:34:53 jhall1
|
||||
* The FreeDOS Kernel. A DOS kernel that aims to be 100% compatible with
|
||||
* MS-DOS. Distributed under the GNU GPL.
|
||||
* Log: exe.h,v
|
||||
*
|
||||
* Revision 1.1.1.1 1999/03/29 15:39:28 jprice
|
||||
* New version without IPL.SYS
|
||||
@ -77,24 +90,3 @@ static BYTE *exe_hRcsId = "$Id$";
|
||||
* Rev 1.0 02 Jul 1995 10:39:38 patv
|
||||
* Initial revision.
|
||||
*/
|
||||
|
||||
typedef struct
|
||||
{
|
||||
UWORD exSignature;
|
||||
UWORD exExtraBytes;
|
||||
UWORD exPages;
|
||||
UWORD exRelocItems;
|
||||
UWORD exHeaderSize;
|
||||
UWORD exMinAlloc;
|
||||
UWORD exMaxAlloc;
|
||||
UWORD exInitSS;
|
||||
UWORD exInitSP;
|
||||
UWORD exCheckSum;
|
||||
UWORD exInitIP;
|
||||
UWORD exInitCS;
|
||||
UWORD exRelocTable;
|
||||
UWORD exOverlay;
|
||||
}
|
||||
exe_header;
|
||||
|
||||
#define MAGIC 0x5a4d
|
||||
|
108
hdr/fat.h
108
hdr/fat.h
@ -34,73 +34,6 @@ static BYTE *fat_hRcsId = "$Id$";
|
||||
#endif
|
||||
#endif
|
||||
|
||||
/*
|
||||
* $Log$
|
||||
* Revision 1.10 2001/11/13 23:36:45 bartoldeman
|
||||
* Kernel 2025a final changes.
|
||||
*
|
||||
* Revision 1.9 2001/11/04 19:47:39 bartoldeman
|
||||
* kernel 2025a changes: see history.txt
|
||||
*
|
||||
* Revision 1.8 2001/09/23 20:39:44 bartoldeman
|
||||
* FAT32 support, misc fixes, INT2F/AH=12 support, drive B: handling
|
||||
*
|
||||
* Revision 1.7 2001/07/09 22:19:33 bartoldeman
|
||||
* LBA/FCB/FAT/SYS/Ctrl-C/ioctl fixes + memory savings
|
||||
*
|
||||
* Revision 1.6 2001/04/15 03:21:50 bartoldeman
|
||||
* See history.txt for the list of fixes.
|
||||
*
|
||||
* Revision 1.5 2000/08/06 04:18:21 jimtabor
|
||||
* See history.txt
|
||||
*
|
||||
* Revision 1.3 2000/05/25 20:56:19 jimtabor
|
||||
* Fixed project history
|
||||
*
|
||||
* Revision 1.2 2000/05/08 04:28:22 jimtabor
|
||||
* Update CVS to 2020
|
||||
*
|
||||
* Revision 1.1.1.1 2000/05/06 19:34:53 jhall1
|
||||
* The FreeDOS Kernel. A DOS kernel that aims to be 100% compatible with
|
||||
* MS-DOS. Distributed under the GNU GPL.
|
||||
*
|
||||
* Revision 1.2 1999/05/03 06:28:00 jprice
|
||||
* Changed some variables from signed to unsigned.
|
||||
*
|
||||
* Revision 1.1.1.1 1999/03/29 15:39:28 jprice
|
||||
* New version without IPL.SYS
|
||||
*
|
||||
* Revision 1.4 1999/02/01 01:40:06 jprice
|
||||
* Clean up
|
||||
*
|
||||
* Revision 1.3 1999/01/30 08:21:43 jprice
|
||||
* Clean up
|
||||
*
|
||||
* Revision 1.2 1999/01/22 04:17:40 jprice
|
||||
* Formating
|
||||
*
|
||||
* Revision 1.1.1.1 1999/01/20 05:51:01 jprice
|
||||
* Imported sources
|
||||
*
|
||||
*
|
||||
* Rev 1.5 04 Jan 1998 23:14:18 patv
|
||||
* Changed Log for strip utility
|
||||
*
|
||||
* Rev 1.4 29 May 1996 21:25:14 patv
|
||||
* bug fixes for v0.91a
|
||||
*
|
||||
* Rev 1.3 19 Feb 1996 3:15:30 patv
|
||||
* Added NLS, int2f and config.sys processing
|
||||
*
|
||||
* Rev 1.2 01 Sep 1995 17:35:42 patv
|
||||
* First GPL release.
|
||||
*
|
||||
* Rev 1.1 30 Jul 1995 20:43:48 patv
|
||||
* Eliminated version strings in ipl
|
||||
*
|
||||
* Rev 1.0 02 Jul 1995 10:39:40 patv
|
||||
* Initial revision.
|
||||
*/
|
||||
|
||||
/* FAT file system attribute bits */
|
||||
#define D_NORMAL 0 /* normal */
|
||||
@ -219,3 +152,44 @@ struct lfn_inode
|
||||
};
|
||||
|
||||
typedef struct lfn_inode FAR * lfn_inode_ptr;
|
||||
|
||||
/*
|
||||
* Log: fat.h,v
|
||||
*
|
||||
* Revision 1.2 1999/05/03 06:28:00 jprice
|
||||
* Changed some variables from signed to unsigned.
|
||||
*
|
||||
* Revision 1.1.1.1 1999/03/29 15:39:28 jprice
|
||||
* New version without IPL.SYS
|
||||
*
|
||||
* Revision 1.4 1999/02/01 01:40:06 jprice
|
||||
* Clean up
|
||||
*
|
||||
* Revision 1.3 1999/01/30 08:21:43 jprice
|
||||
* Clean up
|
||||
*
|
||||
* Revision 1.2 1999/01/22 04:17:40 jprice
|
||||
* Formating
|
||||
*
|
||||
* Revision 1.1.1.1 1999/01/20 05:51:01 jprice
|
||||
* Imported sources
|
||||
*
|
||||
*
|
||||
* Rev 1.5 04 Jan 1998 23:14:18 patv
|
||||
* Changed Log for strip utility
|
||||
*
|
||||
* Rev 1.4 29 May 1996 21:25:14 patv
|
||||
* bug fixes for v0.91a
|
||||
*
|
||||
* Rev 1.3 19 Feb 1996 3:15:30 patv
|
||||
* Added NLS, int2f and config.sys processing
|
||||
*
|
||||
* Rev 1.2 01 Sep 1995 17:35:42 patv
|
||||
* First GPL release.
|
||||
*
|
||||
* Rev 1.1 30 Jul 1995 20:43:48 patv
|
||||
* Eliminated version strings in ipl
|
||||
*
|
||||
* Rev 1.0 02 Jul 1995 10:39:40 patv
|
||||
* Initial revision.
|
||||
*/
|
||||
|
93
hdr/fcb.h
93
hdr/fcb.h
@ -34,58 +34,6 @@ static BYTE *fcb_hRcsId = "$Id$";
|
||||
#endif
|
||||
#endif
|
||||
|
||||
/*
|
||||
* $Log$
|
||||
* Revision 1.4 2001/07/09 22:19:33 bartoldeman
|
||||
* LBA/FCB/FAT/SYS/Ctrl-C/ioctl fixes + memory savings
|
||||
*
|
||||
* Revision 1.3 2000/05/25 20:56:19 jimtabor
|
||||
* Fixed project history
|
||||
*
|
||||
* Revision 1.2 2000/05/08 04:28:22 jimtabor
|
||||
* Update CVS to 2020
|
||||
*
|
||||
* Revision 1.1.1.1 2000/05/06 19:34:53 jhall1
|
||||
* The FreeDOS Kernel. A DOS kernel that aims to be 100% compatible with
|
||||
* MS-DOS. Distributed under the GNU GPL.
|
||||
*
|
||||
* Revision 1.2 1999/09/20 21:24:54 jprice
|
||||
* *** empty log message ***
|
||||
*
|
||||
* Revision 1.1.1.1 1999/03/29 15:39:29 jprice
|
||||
* New version without IPL.SYS
|
||||
*
|
||||
* Revision 1.3 1999/02/01 01:40:06 jprice
|
||||
* Clean up
|
||||
*
|
||||
* Revision 1.2 1999/01/22 04:17:40 jprice
|
||||
* Formating
|
||||
*
|
||||
* Revision 1.1.1.1 1999/01/20 05:51:01 jprice
|
||||
* Imported sources
|
||||
*
|
||||
*
|
||||
* Rev 1.6 04 Jan 1998 23:14:16 patv
|
||||
* Changed Log for strip utility
|
||||
*
|
||||
* Rev 1.5 16 Jan 1997 12:46:06 patv
|
||||
* pre-Release 0.92 feature additions
|
||||
*
|
||||
* Rev 1.4 29 May 1996 21:25:14 patv
|
||||
* bug fixes for v0.91a
|
||||
*
|
||||
* Rev 1.3 19 Feb 1996 3:15:32 patv
|
||||
* Added NLS, int2f and config.sys processing
|
||||
*
|
||||
* Rev 1.2 01 Sep 1995 17:35:42 patv
|
||||
* First GPL release.
|
||||
*
|
||||
* Rev 1.1 30 Jul 1995 20:43:48 patv
|
||||
* Eliminated version strings in ipl
|
||||
*
|
||||
* Rev 1.0 02 Jul 1995 10:39:40 patv
|
||||
* Initial revision.
|
||||
*/
|
||||
|
||||
/* fcb convience defines */
|
||||
/* block device info */
|
||||
@ -175,3 +123,44 @@ typedef struct
|
||||
BYTE renReserved2[9];
|
||||
}
|
||||
rfcb;
|
||||
|
||||
/*
|
||||
* Log: fcb.h,v
|
||||
*
|
||||
* Revision 1.2 1999/09/20 21:24:54 jprice
|
||||
* *** empty log message ***
|
||||
*
|
||||
* Revision 1.1.1.1 1999/03/29 15:39:29 jprice
|
||||
* New version without IPL.SYS
|
||||
*
|
||||
* Revision 1.3 1999/02/01 01:40:06 jprice
|
||||
* Clean up
|
||||
*
|
||||
* Revision 1.2 1999/01/22 04:17:40 jprice
|
||||
* Formating
|
||||
*
|
||||
* Revision 1.1.1.1 1999/01/20 05:51:01 jprice
|
||||
* Imported sources
|
||||
*
|
||||
*
|
||||
* Rev 1.6 04 Jan 1998 23:14:16 patv
|
||||
* Changed Log for strip utility
|
||||
*
|
||||
* Rev 1.5 16 Jan 1997 12:46:06 patv
|
||||
* pre-Release 0.92 feature additions
|
||||
*
|
||||
* Rev 1.4 29 May 1996 21:25:14 patv
|
||||
* bug fixes for v0.91a
|
||||
*
|
||||
* Rev 1.3 19 Feb 1996 3:15:32 patv
|
||||
* Added NLS, int2f and config.sys processing
|
||||
*
|
||||
* Rev 1.2 01 Sep 1995 17:35:42 patv
|
||||
* First GPL release.
|
||||
*
|
||||
* Rev 1.1 30 Jul 1995 20:43:48 patv
|
||||
* Eliminated version strings in ipl
|
||||
*
|
||||
* Rev 1.0 02 Jul 1995 10:39:40 patv
|
||||
* Initial revision.
|
||||
*/
|
||||
|
47
hdr/file.h
47
hdr/file.h
@ -34,20 +34,25 @@ static BYTE *file_hRcsId = "$Id$";
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
||||
/* 0 = CON, standard input, can be redirected */
|
||||
/* 1 = CON, standard output, can be redirected */
|
||||
/* 2 = CON, standard error */
|
||||
/* 3 = AUX, auxiliary */
|
||||
/* 4 = PRN, list device */
|
||||
/* 5 = 1st user file ... */
|
||||
#define STDIN 0
|
||||
#define STDOUT 1
|
||||
#define STDERR 2
|
||||
#define STDAUX 3
|
||||
#define STDPRN 4
|
||||
|
||||
#define O_RDONLY SFT_MREAD
|
||||
#define O_WRONLY SFT_MWRITE
|
||||
#define O_RDWR SFT_MRDWR
|
||||
|
||||
/*
|
||||
* $Log$
|
||||
* Revision 1.4 2001/04/21 22:32:53 bartoldeman
|
||||
* Init DS=Init CS, fixed stack overflow problems and misc bugs.
|
||||
*
|
||||
* Revision 1.3 2000/05/25 20:56:19 jimtabor
|
||||
* Fixed project history
|
||||
*
|
||||
* Revision 1.2 2000/05/08 04:28:22 jimtabor
|
||||
* Update CVS to 2020
|
||||
*
|
||||
* Revision 1.1.1.1 2000/05/06 19:34:53 jhall1
|
||||
* The FreeDOS Kernel. A DOS kernel that aims to be 100% compatible with
|
||||
* MS-DOS. Distributed under the GNU GPL.
|
||||
* Log: file.h,v
|
||||
*
|
||||
* Revision 1.1.1.1 1999/03/29 15:39:30 jprice
|
||||
* New version without IPL.SYS
|
||||
@ -80,19 +85,3 @@ static BYTE *file_hRcsId = "$Id$";
|
||||
* Rev 1.0 02 Jul 1995 10:39:42 patv
|
||||
* Initial revision.
|
||||
*/
|
||||
|
||||
/* 0 = CON, standard input, can be redirected */
|
||||
/* 1 = CON, standard output, can be redirected */
|
||||
/* 2 = CON, standard error */
|
||||
/* 3 = AUX, auxiliary */
|
||||
/* 4 = PRN, list device */
|
||||
/* 5 = 1st user file ... */
|
||||
#define STDIN 0
|
||||
#define STDOUT 1
|
||||
#define STDERR 2
|
||||
#define STDAUX 3
|
||||
#define STDPRN 4
|
||||
|
||||
#define O_RDONLY SFT_MREAD
|
||||
#define O_WRONLY SFT_MWRITE
|
||||
#define O_RDWR SFT_MRDWR
|
||||
|
117
hdr/fnode.h
117
hdr/fnode.h
@ -34,79 +34,6 @@ static BYTE *fnode_hRcsId = "$Id$";
|
||||
#endif
|
||||
#endif
|
||||
|
||||
/*
|
||||
* $Log$
|
||||
* Revision 1.10 2001/11/04 19:47:39 bartoldeman
|
||||
* kernel 2025a changes: see history.txt
|
||||
*
|
||||
* Revision 1.9 2001/09/23 20:39:44 bartoldeman
|
||||
* FAT32 support, misc fixes, INT2F/AH=12 support, drive B: handling
|
||||
*
|
||||
* Revision 1.8 2001/08/19 12:58:34 bartoldeman
|
||||
* Time and date fixes, Ctrl-S/P, findfirst/next, FCBs, buffers, tsr unloading
|
||||
*
|
||||
* Revision 1.7 2001/07/09 22:19:33 bartoldeman
|
||||
* LBA/FCB/FAT/SYS/Ctrl-C/ioctl fixes + memory savings
|
||||
*
|
||||
* Revision 1.6 2001/06/03 14:16:17 bartoldeman
|
||||
* BUFFERS tuning and misc bug fixes/cleanups (2024c).
|
||||
*
|
||||
* Revision 1.5 2001/04/29 17:34:40 bartoldeman
|
||||
* A new SYS.COM/config.sys single stepping/console output/misc fixes.
|
||||
*
|
||||
* Revision 1.4 2001/04/15 03:21:50 bartoldeman
|
||||
* See history.txt for the list of fixes.
|
||||
*
|
||||
* Revision 1.3 2000/05/25 20:56:19 jimtabor
|
||||
* Fixed project history
|
||||
*
|
||||
* Revision 1.2 2000/05/08 04:28:22 jimtabor
|
||||
* Update CVS to 2020
|
||||
*
|
||||
* Revision 1.1.1.1 2000/05/06 19:34:53 jhall1
|
||||
* The FreeDOS Kernel. A DOS kernel that aims to be 100% compatible with
|
||||
* MS-DOS. Distributed under the GNU GPL.
|
||||
*
|
||||
* Revision 1.3 2000/03/09 06:06:38 kernel
|
||||
* 2017f updates by James Tabor
|
||||
*
|
||||
* Revision 1.2 1999/04/16 00:52:10 jprice
|
||||
* Optimized FAT handling
|
||||
*
|
||||
* Revision 1.1.1.1 1999/03/29 15:39:30 jprice
|
||||
* New version without IPL.SYS
|
||||
*
|
||||
* Revision 1.4 1999/02/01 01:40:06 jprice
|
||||
* Clean up
|
||||
*
|
||||
* Revision 1.3 1999/01/30 08:21:43 jprice
|
||||
* Clean up
|
||||
*
|
||||
* Revision 1.2 1999/01/22 04:17:40 jprice
|
||||
* Formating
|
||||
*
|
||||
* Revision 1.1.1.1 1999/01/20 05:51:01 jprice
|
||||
* Imported sources
|
||||
*
|
||||
*
|
||||
* Rev 1.5 04 Jan 1998 23:14:18 patv
|
||||
* Changed Log for strip utility
|
||||
*
|
||||
* Rev 1.4 29 May 1996 21:25:16 patv
|
||||
* bug fixes for v0.91a
|
||||
*
|
||||
* Rev 1.3 19 Feb 1996 3:15:32 patv
|
||||
* Added NLS, int2f and config.sys processing
|
||||
*
|
||||
* Rev 1.2 01 Sep 1995 17:35:42 patv
|
||||
* First GPL release.
|
||||
*
|
||||
* Rev 1.1 30 Jul 1995 20:43:48 patv
|
||||
* Eliminated version strings in ipl
|
||||
*
|
||||
* Rev 1.0 02 Jul 1995 10:39:44 patv
|
||||
* Initial revision.
|
||||
*/
|
||||
|
||||
struct f_node
|
||||
{
|
||||
@ -155,3 +82,47 @@ typedef struct lfn_inode FAR * lfn_inode_ptr;
|
||||
#endif
|
||||
|
||||
typedef struct f_node * f_node_ptr;
|
||||
|
||||
/*
|
||||
* Log: fnode.h,v
|
||||
*
|
||||
* Revision 1.3 2000/03/09 06:06:38 kernel
|
||||
* 2017f updates by James Tabor
|
||||
*
|
||||
* Revision 1.2 1999/04/16 00:52:10 jprice
|
||||
* Optimized FAT handling
|
||||
*
|
||||
* Revision 1.1.1.1 1999/03/29 15:39:30 jprice
|
||||
* New version without IPL.SYS
|
||||
*
|
||||
* Revision 1.4 1999/02/01 01:40:06 jprice
|
||||
* Clean up
|
||||
*
|
||||
* Revision 1.3 1999/01/30 08:21:43 jprice
|
||||
* Clean up
|
||||
*
|
||||
* Revision 1.2 1999/01/22 04:17:40 jprice
|
||||
* Formating
|
||||
*
|
||||
* Revision 1.1.1.1 1999/01/20 05:51:01 jprice
|
||||
* Imported sources
|
||||
*
|
||||
*
|
||||
* Rev 1.5 04 Jan 1998 23:14:18 patv
|
||||
* Changed Log for strip utility
|
||||
*
|
||||
* Rev 1.4 29 May 1996 21:25:16 patv
|
||||
* bug fixes for v0.91a
|
||||
*
|
||||
* Rev 1.3 19 Feb 1996 3:15:32 patv
|
||||
* Added NLS, int2f and config.sys processing
|
||||
*
|
||||
* Rev 1.2 01 Sep 1995 17:35:42 patv
|
||||
* First GPL release.
|
||||
*
|
||||
* Rev 1.1 30 Jul 1995 20:43:48 patv
|
||||
* Eliminated version strings in ipl
|
||||
*
|
||||
* Rev 1.0 02 Jul 1995 10:39:44 patv
|
||||
* Initial revision.
|
||||
*/
|
||||
|
34
hdr/kbd.h
34
hdr/kbd.h
@ -34,17 +34,20 @@ static BYTE *kbd_hRcsId = "$Id$";
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
||||
#define KBD_MAXLENGTH 256
|
||||
|
||||
/* Keyboard buffer */
|
||||
typedef struct
|
||||
{
|
||||
UBYTE kb_size; /* size of buffer in bytes */
|
||||
UBYTE kb_count; /* number of bytes returned */
|
||||
BYTE kb_buf[KBD_MAXLENGTH]; /* the buffer itself */
|
||||
}
|
||||
keyboard;
|
||||
|
||||
/*
|
||||
* $Log$
|
||||
* Revision 1.3 2000/05/25 20:56:19 jimtabor
|
||||
* Fixed project history
|
||||
*
|
||||
* Revision 1.2 2000/05/08 04:28:22 jimtabor
|
||||
* Update CVS to 2020
|
||||
*
|
||||
* Revision 1.1.1.1 2000/05/06 19:34:53 jhall1
|
||||
* The FreeDOS Kernel. A DOS kernel that aims to be 100% compatible with
|
||||
* MS-DOS. Distributed under the GNU GPL.
|
||||
* Log: kbd.h,v
|
||||
*
|
||||
* Revision 1.1.1.1 1999/03/29 15:39:31 jprice
|
||||
* New version without IPL.SYS
|
||||
@ -77,14 +80,3 @@ static BYTE *kbd_hRcsId = "$Id$";
|
||||
* Rev 1.0 02 Jul 1995 10:39:46 patv
|
||||
* Initial revision.
|
||||
*/
|
||||
|
||||
#define KBD_MAXLENGTH 256
|
||||
|
||||
/* Keyboard buffer */
|
||||
typedef struct
|
||||
{
|
||||
UBYTE kb_size; /* size of buffer in bytes */
|
||||
UBYTE kb_count; /* number of bytes returned */
|
||||
BYTE kb_buf[KBD_MAXLENGTH]; /* the buffer itself */
|
||||
}
|
||||
keyboard;
|
||||
|
88
hdr/mcb.h
88
hdr/mcb.h
@ -34,29 +34,40 @@ static BYTE *mcb_hRcsId = "$Id$";
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#define LARGEST -1
|
||||
#define FIRST_FIT 0
|
||||
#define BEST_FIT 1
|
||||
#define LAST_FIT 2
|
||||
#define FIRST_FIT_UO 0x40
|
||||
#define BEST_FIT_UO 0x41
|
||||
#define LAST_FIT_UO 0x42
|
||||
#define FIRST_FIT_U 0x80
|
||||
#define BEST_FIT_U 0x81
|
||||
#define LAST_FIT_U 0x82
|
||||
|
||||
#define MCB_NORMAL 0x4d
|
||||
#define MCB_LAST 0x5a
|
||||
|
||||
#define DOS_PSP 0x0060 /* 0x0008 What? seg 8 =0:0080 */
|
||||
#define FREE_PSP 0
|
||||
|
||||
#define MCB_SIZE(x) ((((LONG)(x))<<4)+sizeof(mcb))
|
||||
|
||||
typedef UWORD seg;
|
||||
typedef UWORD offset;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
BYTE m_type; /* mcb type - chain or end */
|
||||
UWORD m_psp; /* owner id via psp segment */
|
||||
UWORD m_size; /* size of segment in paragraphs */
|
||||
BYTE m_fill[3];
|
||||
BYTE m_name[8]; /* owner name limited to 8 bytes */
|
||||
}
|
||||
mcb;
|
||||
|
||||
/*
|
||||
* $Log$
|
||||
* Revision 1.7 2001/04/15 03:21:50 bartoldeman
|
||||
* See history.txt for the list of fixes.
|
||||
*
|
||||
* Revision 1.6 2000/08/06 04:27:07 jimtabor
|
||||
* See history.txt
|
||||
*
|
||||
* Revision 1.5 2000/08/06 04:18:21 jimtabor
|
||||
* See history.txt
|
||||
*
|
||||
* Revision 1.4 2000/06/21 18:16:46 jimtabor
|
||||
* Add UMB code, patch, and code fixes
|
||||
*
|
||||
* Revision 1.3 2000/05/25 20:56:19 jimtabor
|
||||
* Fixed project history
|
||||
*
|
||||
* Revision 1.2 2000/05/08 04:28:22 jimtabor
|
||||
* Update CVS to 2020
|
||||
*
|
||||
* Revision 1.1.1.1 2000/05/06 19:34:53 jhall1
|
||||
* The FreeDOS Kernel. A DOS kernel that aims to be 100% compatible with
|
||||
* MS-DOS. Distributed under the GNU GPL.
|
||||
* Log: mcb.h,v
|
||||
*
|
||||
* Revision 1.2 2000/03/09 06:06:38 kernel
|
||||
* 2017f updates by James Tabor
|
||||
@ -92,36 +103,3 @@ static BYTE *mcb_hRcsId = "$Id$";
|
||||
* Rev 1.0 02 Jul 1995 10:39:46 patv
|
||||
* Initial revision.
|
||||
*/
|
||||
|
||||
#define LARGEST -1
|
||||
#define FIRST_FIT 0
|
||||
#define BEST_FIT 1
|
||||
#define LAST_FIT 2
|
||||
#define FIRST_FIT_UO 0x40
|
||||
#define BEST_FIT_UO 0x41
|
||||
#define LAST_FIT_UO 0x42
|
||||
#define FIRST_FIT_U 0x80
|
||||
#define BEST_FIT_U 0x81
|
||||
#define LAST_FIT_U 0x82
|
||||
|
||||
#define MCB_NORMAL 0x4d
|
||||
#define MCB_LAST 0x5a
|
||||
|
||||
#define DOS_PSP 0x0060 /* 0x0008 What? seg 8 =0:0080 */
|
||||
#define FREE_PSP 0
|
||||
|
||||
#define MCB_SIZE(x) ((((LONG)(x))<<4)+sizeof(mcb))
|
||||
|
||||
typedef UWORD seg;
|
||||
typedef UWORD offset;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
BYTE m_type; /* mcb type - chain or end */
|
||||
UWORD m_psp; /* owner id via psp segment */
|
||||
UWORD m_size; /* size of segment in paragraphs */
|
||||
BYTE m_fill[3];
|
||||
BYTE m_name[8]; /* owner name limited to 8 bytes */
|
||||
}
|
||||
mcb;
|
||||
|
||||
|
92
hdr/pcb.h
92
hdr/pcb.h
@ -55,61 +55,6 @@ static BYTE *pcb_hRcsId = "$Id$";
|
||||
#endif
|
||||
#endif
|
||||
|
||||
/*
|
||||
* $Log$
|
||||
* Revision 1.6 2001/09/23 20:39:44 bartoldeman
|
||||
* FAT32 support, misc fixes, INT2F/AH=12 support, drive B: handling
|
||||
*
|
||||
* Revision 1.5 2001/04/15 03:21:50 bartoldeman
|
||||
* See history.txt for the list of fixes.
|
||||
*
|
||||
* Revision 1.4 2000/08/06 04:18:21 jimtabor
|
||||
* See history.txt
|
||||
*
|
||||
* Revision 1.3 2000/05/25 20:56:19 jimtabor
|
||||
* Fixed project history
|
||||
*
|
||||
* Revision 1.2 2000/05/08 04:28:22 jimtabor
|
||||
* Update CVS to 2020
|
||||
*
|
||||
* Revision 1.1.1.1 2000/05/06 19:34:53 jhall1
|
||||
* The FreeDOS Kernel. A DOS kernel that aims to be 100% compatible with
|
||||
* MS-DOS. Distributed under the GNU GPL.
|
||||
*
|
||||
* Revision 1.1.1.1 1999/03/29 15:39:32 jprice
|
||||
* New version without IPL.SYS
|
||||
*
|
||||
* Revision 1.3 1999/02/01 01:40:06 jprice
|
||||
* Clean up
|
||||
*
|
||||
* Revision 1.2 1999/01/22 04:17:40 jprice
|
||||
* Formating
|
||||
*
|
||||
* Revision 1.1.1.1 1999/01/20 05:51:01 jprice
|
||||
* Imported sources
|
||||
*
|
||||
*
|
||||
* Rev 1.6 07 Feb 1998 20:47:40 patv
|
||||
* Modified stack frame to match DOS standard
|
||||
*
|
||||
* Rev 1.5 04 Jan 1998 23:14:18 patv
|
||||
* Changed Log for strip utility
|
||||
*
|
||||
* Rev 1.4 29 May 1996 21:25:16 patv
|
||||
* bug fixes for v0.91a
|
||||
*
|
||||
* Rev 1.3 19 Feb 1996 3:15:32 patv
|
||||
* Added NLS, int2f and config.sys processing
|
||||
*
|
||||
* Rev 1.2 01 Sep 1995 17:35:44 patv
|
||||
* First GPL release.
|
||||
*
|
||||
* Rev 1.1 30 Jul 1995 20:43:50 patv
|
||||
* Eliminated version strings in ipl
|
||||
*
|
||||
* Rev 1.0 02 Jul 1995 10:39:48 patv
|
||||
* Initial revision.
|
||||
*/
|
||||
|
||||
/* Force one-byte alignment for all the internal structures, see above */
|
||||
#include <algnbyte.h>
|
||||
@ -246,3 +191,40 @@ void ASMCFUNC intr(int intnr, iregs * const pr);
|
||||
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Log: pcb.h,v
|
||||
*
|
||||
* Revision 1.1.1.1 1999/03/29 15:39:32 jprice
|
||||
* New version without IPL.SYS
|
||||
*
|
||||
* Revision 1.3 1999/02/01 01:40:06 jprice
|
||||
* Clean up
|
||||
*
|
||||
* Revision 1.2 1999/01/22 04:17:40 jprice
|
||||
* Formating
|
||||
*
|
||||
* Revision 1.1.1.1 1999/01/20 05:51:01 jprice
|
||||
* Imported sources
|
||||
*
|
||||
*
|
||||
* Rev 1.6 07 Feb 1998 20:47:40 patv
|
||||
* Modified stack frame to match DOS standard
|
||||
*
|
||||
* Rev 1.5 04 Jan 1998 23:14:18 patv
|
||||
* Changed Log for strip utility
|
||||
*
|
||||
* Rev 1.4 29 May 1996 21:25:16 patv
|
||||
* bug fixes for v0.91a
|
||||
*
|
||||
* Rev 1.3 19 Feb 1996 3:15:32 patv
|
||||
* Added NLS, int2f and config.sys processing
|
||||
*
|
||||
* Rev 1.2 01 Sep 1995 17:35:44 patv
|
||||
* First GPL release.
|
||||
*
|
||||
* Rev 1.1 30 Jul 1995 20:43:50 patv
|
||||
* Eliminated version strings in ipl
|
||||
*
|
||||
* Rev 1.0 02 Jul 1995 10:39:48 patv
|
||||
* Initial revision.
|
||||
*/
|
||||
|
101
hdr/portab.h
101
hdr/portab.h
@ -34,71 +34,6 @@ static char *portab_hRcsId = "$Id$";
|
||||
#endif
|
||||
#endif
|
||||
|
||||
/*
|
||||
* $Log$
|
||||
* Revision 1.10 2001/09/23 20:39:44 bartoldeman
|
||||
* FAT32 support, misc fixes, INT2F/AH=12 support, drive B: handling
|
||||
*
|
||||
* Revision 1.9 2001/06/03 14:16:17 bartoldeman
|
||||
* BUFFERS tuning and misc bug fixes/cleanups (2024c).
|
||||
*
|
||||
* Revision 1.8 2001/04/15 03:21:50 bartoldeman
|
||||
* See history.txt for the list of fixes.
|
||||
*
|
||||
* Revision 1.7 2001/03/21 02:56:25 bartoldeman
|
||||
* See history.txt for changes. Bug fixes and HMA support are the main ones.
|
||||
*
|
||||
* Revision 1.5 2001/03/08 21:15:00 bartoldeman
|
||||
* Fixes for MK_FP and friends from Tom Ehlert; reduces kernel by 1.5k.
|
||||
*
|
||||
* Revision 1.4 2000/08/06 04:18:21 jimtabor
|
||||
* See history.txt
|
||||
*
|
||||
* Revision 1.3 2000/05/25 20:56:19 jimtabor
|
||||
* Fixed project history
|
||||
*
|
||||
* Revision 1.2 2000/05/08 04:28:22 jimtabor
|
||||
* Update CVS to 2020
|
||||
*
|
||||
* Revision 1.1.1.1 2000/05/06 19:34:53 jhall1
|
||||
* The FreeDOS Kernel. A DOS kernel that aims to be 100% compatible with
|
||||
* MS-DOS. Distributed under the GNU GPL.
|
||||
*
|
||||
* Revision 1.2 1999/08/25 03:17:11 jprice
|
||||
* ror4 patches to allow TC 2.01 compile.
|
||||
*
|
||||
* Revision 1.1.1.1 1999/03/29 15:39:33 jprice
|
||||
* New version without IPL.SYS
|
||||
*
|
||||
* Revision 1.3 1999/02/01 01:40:06 jprice
|
||||
* Clean up
|
||||
*
|
||||
* Revision 1.2 1999/01/22 04:17:40 jprice
|
||||
* Formating
|
||||
*
|
||||
* Revision 1.1.1.1 1999/01/20 05:51:01 jprice
|
||||
* Imported sources
|
||||
*
|
||||
*
|
||||
* Rev 1.5 04 Jan 1998 23:14:16 patv
|
||||
* Changed Log for strip utility
|
||||
*
|
||||
* Rev 1.4 29 May 1996 21:25:16 patv
|
||||
* bug fixes for v0.91a
|
||||
*
|
||||
* Rev 1.3 19 Feb 1996 3:15:32 patv
|
||||
* Added NLS, int2f and config.sys processing
|
||||
*
|
||||
* Rev 1.2 01 Sep 1995 17:35:44 patv
|
||||
* First GPL release.
|
||||
*
|
||||
* Rev 1.1 30 Jul 1995 20:43:50 patv
|
||||
* Eliminated version strings in ipl
|
||||
*
|
||||
* Rev 1.0 02 Jul 1995 10:39:50 patv
|
||||
* Initial revision.
|
||||
*/
|
||||
|
||||
/****************************************************************/
|
||||
/* */
|
||||
/* Machine dependant portable types. Note that this section is */
|
||||
@ -297,3 +232,39 @@ typedef signed long LONG;
|
||||
#define PROTO
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Log: portab.h,v
|
||||
* Revision 1.2 1999/08/25 03:17:11 jprice
|
||||
* ror4 patches to allow TC 2.01 compile.
|
||||
*
|
||||
* Revision 1.1.1.1 1999/03/29 15:39:33 jprice
|
||||
* New version without IPL.SYS
|
||||
*
|
||||
* Revision 1.3 1999/02/01 01:40:06 jprice
|
||||
* Clean up
|
||||
*
|
||||
* Revision 1.2 1999/01/22 04:17:40 jprice
|
||||
* Formating
|
||||
*
|
||||
* Revision 1.1.1.1 1999/01/20 05:51:01 jprice
|
||||
* Imported sources
|
||||
*
|
||||
*
|
||||
* Rev 1.5 04 Jan 1998 23:14:16 patv
|
||||
* Changed Log for strip utility
|
||||
*
|
||||
* Rev 1.4 29 May 1996 21:25:16 patv
|
||||
* bug fixes for v0.91a
|
||||
*
|
||||
* Rev 1.3 19 Feb 1996 3:15:32 patv
|
||||
* Added NLS, int2f and config.sys processing
|
||||
*
|
||||
* Rev 1.2 01 Sep 1995 17:35:44 patv
|
||||
* First GPL release.
|
||||
*
|
||||
* Rev 1.1 30 Jul 1995 20:43:50 patv
|
||||
* Eliminated version strings in ipl
|
||||
*
|
||||
* Rev 1.0 02 Jul 1995 10:39:50 patv
|
||||
* Initial revision.
|
||||
*/
|
||||
|
100
hdr/process.h
100
hdr/process.h
@ -34,65 +34,6 @@ static BYTE *process_hRcsId = "$Id$";
|
||||
#endif
|
||||
#endif
|
||||
|
||||
/*
|
||||
* $Log$
|
||||
* Revision 1.6 2001/11/04 19:47:39 bartoldeman
|
||||
* kernel 2025a changes: see history.txt
|
||||
*
|
||||
* Revision 1.5 2001/09/23 20:39:44 bartoldeman
|
||||
* FAT32 support, misc fixes, INT2F/AH=12 support, drive B: handling
|
||||
*
|
||||
* Revision 1.4 2000/08/06 04:18:21 jimtabor
|
||||
* See history.txt
|
||||
*
|
||||
* Revision 1.3 2000/05/25 20:56:19 jimtabor
|
||||
* Fixed project history
|
||||
*
|
||||
* Revision 1.2 2000/05/08 04:28:22 jimtabor
|
||||
* Update CVS to 2020
|
||||
*
|
||||
* Revision 1.1.1.1 2000/05/06 19:34:53 jhall1
|
||||
* The FreeDOS Kernel. A DOS kernel that aims to be 100% compatible with
|
||||
* MS-DOS. Distributed under the GNU GPL.
|
||||
*
|
||||
* Revision 1.1.1.1 1999/03/29 15:39:34 jprice
|
||||
* New version without IPL.SYS
|
||||
*
|
||||
* Revision 1.3 1999/02/01 01:40:06 jprice
|
||||
* Clean up
|
||||
*
|
||||
* Revision 1.2 1999/01/22 04:17:40 jprice
|
||||
* Formating
|
||||
*
|
||||
* Revision 1.1.1.1 1999/01/20 05:51:01 jprice
|
||||
* Imported sources
|
||||
*
|
||||
*
|
||||
* Rev 1.7 22 Jan 1998 22:13:00 patv
|
||||
* Had to change ps_prevps to VOID FAR * due to BC++ error.
|
||||
*
|
||||
* Rev 1.6 22 Jan 1998 22:05:22 patv
|
||||
* Corrected ps_prevpsp declaration.
|
||||
*
|
||||
* Rev 1.5 04 Jan 1998 23:14:16 patv
|
||||
* Changed Log for strip utility
|
||||
*
|
||||
* Rev 1.4 29 May 1996 21:25:16 patv
|
||||
* bug fixes for v0.91a
|
||||
*
|
||||
* Rev 1.3 19 Feb 1996 3:15:32 patv
|
||||
* Added NLS, int2f and config.sys processing
|
||||
*
|
||||
* Rev 1.2 01 Sep 1995 17:35:44 patv
|
||||
* First GPL release.
|
||||
*
|
||||
* Rev 1.1 30 Jul 1995 20:43:50 patv
|
||||
* Eliminated version strings in ipl
|
||||
*
|
||||
* Rev 1.0 02 Jul 1995 10:39:52 patv
|
||||
* Initial revision.
|
||||
*/
|
||||
|
||||
/* Modes available as first argument to the spawnxx functions. */
|
||||
|
||||
#define P_WAIT 0 /* child runs separately, parent waits until exit */
|
||||
@ -186,3 +127,44 @@ psp;
|
||||
#define ps_fcb2 _u._u2._ps_fcb2
|
||||
#define ps_cmd _u._u3._u4._ps_cmd
|
||||
#define ps_cmd_count _u._u3._u4._ps_cmd_count
|
||||
|
||||
/*
|
||||
* Log: process.h,v
|
||||
*
|
||||
* Revision 1.1.1.1 1999/03/29 15:39:34 jprice
|
||||
* New version without IPL.SYS
|
||||
*
|
||||
* Revision 1.3 1999/02/01 01:40:06 jprice
|
||||
* Clean up
|
||||
*
|
||||
* Revision 1.2 1999/01/22 04:17:40 jprice
|
||||
* Formating
|
||||
*
|
||||
* Revision 1.1.1.1 1999/01/20 05:51:01 jprice
|
||||
* Imported sources
|
||||
*
|
||||
*
|
||||
* Rev 1.7 22 Jan 1998 22:13:00 patv
|
||||
* Had to change ps_prevps to VOID FAR * due to BC++ error.
|
||||
*
|
||||
* Rev 1.6 22 Jan 1998 22:05:22 patv
|
||||
* Corrected ps_prevpsp declaration.
|
||||
*
|
||||
* Rev 1.5 04 Jan 1998 23:14:16 patv
|
||||
* Changed Log for strip utility
|
||||
*
|
||||
* Rev 1.4 29 May 1996 21:25:16 patv
|
||||
* bug fixes for v0.91a
|
||||
*
|
||||
* Rev 1.3 19 Feb 1996 3:15:32 patv
|
||||
* Added NLS, int2f and config.sys processing
|
||||
*
|
||||
* Rev 1.2 01 Sep 1995 17:35:44 patv
|
||||
* First GPL release.
|
||||
*
|
||||
* Rev 1.1 30 Jul 1995 20:43:50 patv
|
||||
* Eliminated version strings in ipl
|
||||
*
|
||||
* Rev 1.0 02 Jul 1995 10:39:52 patv
|
||||
* Initial revision.
|
||||
*/
|
||||
|
104
hdr/sft.h
104
hdr/sft.h
@ -33,67 +33,6 @@ static BYTE *sft_hRcsId = "$Id$";
|
||||
#endif
|
||||
#endif
|
||||
|
||||
/*
|
||||
* $Log$
|
||||
* Revision 1.6 2001/11/04 19:47:39 bartoldeman
|
||||
* kernel 2025a changes: see history.txt
|
||||
*
|
||||
* Revision 1.5 2001/07/22 01:58:58 bartoldeman
|
||||
* Support for Brian's FORMAT, DJGPP libc compilation, cleanups, MSCDEX
|
||||
*
|
||||
* Revision 1.4 2001/07/09 22:19:33 bartoldeman
|
||||
* LBA/FCB/FAT/SYS/Ctrl-C/ioctl fixes + memory savings
|
||||
*
|
||||
* Revision 1.3 2000/05/25 20:56:19 jimtabor
|
||||
* Fixed project history
|
||||
*
|
||||
* Revision 1.2 2000/05/08 04:28:22 jimtabor
|
||||
* Update CVS to 2020
|
||||
*
|
||||
* Revision 1.1.1.1 2000/05/06 19:34:53 jhall1
|
||||
* The FreeDOS Kernel. A DOS kernel that aims to be 100% compatible with
|
||||
* MS-DOS. Distributed under the GNU GPL.
|
||||
*
|
||||
* Revision 1.3 2000/03/09 06:06:38 kernel
|
||||
* 2017f updates by James Tabor
|
||||
*
|
||||
* Revision 1.2 1999/04/04 18:50:25 jprice
|
||||
* no message
|
||||
*
|
||||
* Revision 1.1.1.1 1999/03/29 15:39:35 jprice
|
||||
* New version without IPL.SYS
|
||||
*
|
||||
* Revision 1.3 1999/02/01 01:40:06 jprice
|
||||
* Clean up
|
||||
*
|
||||
* Revision 1.2 1999/01/22 04:17:40 jprice
|
||||
* Formating
|
||||
*
|
||||
* Revision 1.1.1.1 1999/01/20 05:51:01 jprice
|
||||
* Imported sources
|
||||
*
|
||||
*
|
||||
* Rev 1.6 04 Jan 1998 23:14:18 patv
|
||||
* Changed Log for strip utility
|
||||
*
|
||||
* Rev 1.5 16 Jan 1997 12:46:04 patv
|
||||
* pre-Release 0.92 feature additions
|
||||
*
|
||||
* Rev 1.4 29 May 1996 21:25:18 patv
|
||||
* bug fixes for v0.91a
|
||||
*
|
||||
* Rev 1.3 19 Feb 1996 3:15:34 patv
|
||||
* Added NLS, int2f and config.sys processing
|
||||
*
|
||||
* Rev 1.2 01 Sep 1995 17:35:44 patv
|
||||
* First GPL release.
|
||||
*
|
||||
* Rev 1.1 30 Jul 1995 20:43:50 patv
|
||||
* Eliminated version strings in ipl
|
||||
*
|
||||
* Rev 1.0 02 Jul 1995 10:39:52 patv
|
||||
* Initial revision.
|
||||
*/
|
||||
|
||||
#define SFTMAX 128
|
||||
|
||||
@ -215,3 +154,46 @@ sfttbl;
|
||||
#define sft_flags_lo sft_flags_union._split_sft_flags._sft_flags_lo
|
||||
|
||||
|
||||
/*
|
||||
* Log: sft.h,v
|
||||
*
|
||||
* Revision 1.3 2000/03/09 06:06:38 kernel
|
||||
* 2017f updates by James Tabor
|
||||
*
|
||||
* Revision 1.2 1999/04/04 18:50:25 jprice
|
||||
* no message
|
||||
*
|
||||
* Revision 1.1.1.1 1999/03/29 15:39:35 jprice
|
||||
* New version without IPL.SYS
|
||||
*
|
||||
* Revision 1.3 1999/02/01 01:40:06 jprice
|
||||
* Clean up
|
||||
*
|
||||
* Revision 1.2 1999/01/22 04:17:40 jprice
|
||||
* Formating
|
||||
*
|
||||
* Revision 1.1.1.1 1999/01/20 05:51:01 jprice
|
||||
* Imported sources
|
||||
*
|
||||
*
|
||||
* Rev 1.6 04 Jan 1998 23:14:18 patv
|
||||
* Changed Log for strip utility
|
||||
*
|
||||
* Rev 1.5 16 Jan 1997 12:46:04 patv
|
||||
* pre-Release 0.92 feature additions
|
||||
*
|
||||
* Rev 1.4 29 May 1996 21:25:18 patv
|
||||
* bug fixes for v0.91a
|
||||
*
|
||||
* Rev 1.3 19 Feb 1996 3:15:34 patv
|
||||
* Added NLS, int2f and config.sys processing
|
||||
*
|
||||
* Rev 1.2 01 Sep 1995 17:35:44 patv
|
||||
* First GPL release.
|
||||
*
|
||||
* Rev 1.1 30 Jul 1995 20:43:50 patv
|
||||
* Eliminated version strings in ipl
|
||||
*
|
||||
* Rev 1.0 02 Jul 1995 10:39:52 patv
|
||||
* Initial revision.
|
||||
*/
|
||||
|
@ -25,53 +25,8 @@
|
||||
; write to the Free Software Foundation, 675 Mass Ave,
|
||||
; Cambridge, MA 02139, USA.
|
||||
;
|
||||
; $Logfile: C:/dos-c/hdr/stacks.inv $
|
||||
;
|
||||
; $Id$
|
||||
;
|
||||
; $Log$
|
||||
; Revision 1.6 2001/11/04 19:47:39 bartoldeman
|
||||
; kernel 2025a changes: see history.txt
|
||||
;
|
||||
; Revision 1.5 2000/08/06 04:18:21 jimtabor
|
||||
; See history.txt
|
||||
;
|
||||
; Revision 1.4 2000/05/26 19:46:52 jimtabor
|
||||
; Read History file for Change info
|
||||
;
|
||||
; Revision 1.3 2000/05/25 20:56:19 jimtabor
|
||||
; Fixed project history
|
||||
;
|
||||
; Revision 1.2 2000/05/08 04:28:22 jimtabor
|
||||
; Update CVS to 2020
|
||||
;
|
||||
; Revision 1.1.1.1 2000/05/06 19:34:53 jhall1
|
||||
; The FreeDOS Kernel. A DOS kernel that aims to be 100% compatible with
|
||||
; MS-DOS. Distributed under the GNU GPL.
|
||||
;
|
||||
; Revision 1.3 2000/03/09 06:06:38 kernel
|
||||
; 2017f updates by James Tabor
|
||||
;
|
||||
; Revision 1.2 1999/08/10 17:56:26 jprice
|
||||
; ror4 2011-02 patch
|
||||
;
|
||||
; Revision 1.1.1.1 1999/03/29 15:39:35 jprice
|
||||
; New version without IPL.SYS
|
||||
;
|
||||
; Revision 1.3 1999/02/01 01:40:06 jprice
|
||||
; Clean up
|
||||
;
|
||||
; Revision 1.2 1999/01/22 04:17:40 jprice
|
||||
; Formating
|
||||
;
|
||||
; Revision 1.1.1.1 1999/01/20 05:51:01 jprice
|
||||
; Imported sources
|
||||
;
|
||||
;
|
||||
; Rev 1.0 07 Feb 1998 20:59:16 patv
|
||||
;Modified stack frame to match DOS standard
|
||||
; $EndLog$
|
||||
|
||||
|
||||
;
|
||||
; Standard stack frame used throughout DOS-C
|
||||
@ -216,3 +171,28 @@ irp_hi equ 26
|
||||
%endmacro
|
||||
|
||||
%ENDIF
|
||||
|
||||
; Log: stacks.inc,v
|
||||
; Revision 1.3 2000/03/09 06:06:38 kernel
|
||||
; 2017f updates by James Tabor
|
||||
;
|
||||
; Revision 1.2 1999/08/10 17:56:26 jprice
|
||||
; ror4 2011-02 patch
|
||||
;
|
||||
; Revision 1.1.1.1 1999/03/29 15:39:35 jprice
|
||||
; New version without IPL.SYS
|
||||
;
|
||||
; Revision 1.3 1999/02/01 01:40:06 jprice
|
||||
; Clean up
|
||||
;
|
||||
; Revision 1.2 1999/01/22 04:17:40 jprice
|
||||
; Formating
|
||||
;
|
||||
; Revision 1.1.1.1 1999/01/20 05:51:01 jprice
|
||||
; Imported sources
|
||||
;
|
||||
;
|
||||
; Rev 1.0 07 Feb 1998 20:59:16 patv
|
||||
;Modified stack frame to match DOS standard
|
||||
; EndLog
|
||||
|
||||
|
34
hdr/tail.h
34
hdr/tail.h
@ -34,17 +34,20 @@ static BYTE *tail_hRcsId = "$Id$";
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
||||
#ifndef LINESIZE
|
||||
#define LINESIZE 127
|
||||
#endif
|
||||
|
||||
typedef struct
|
||||
{
|
||||
UBYTE ctCount; /* number of bytes returned */
|
||||
BYTE ctBuffer[LINESIZE]; /* the buffer itself */
|
||||
}
|
||||
CommandTail;
|
||||
|
||||
/*
|
||||
* $Log$
|
||||
* Revision 1.3 2000/05/25 20:56:19 jimtabor
|
||||
* Fixed project history
|
||||
*
|
||||
* Revision 1.2 2000/05/08 04:28:22 jimtabor
|
||||
* Update CVS to 2020
|
||||
*
|
||||
* Revision 1.1.1.1 2000/05/06 19:34:53 jhall1
|
||||
* The FreeDOS Kernel. A DOS kernel that aims to be 100% compatible with
|
||||
* MS-DOS. Distributed under the GNU GPL.
|
||||
* Log: tail.h,v
|
||||
*
|
||||
* Revision 1.1.1.1 1999/03/29 15:39:36 jprice
|
||||
* New version without IPL.SYS
|
||||
@ -77,14 +80,3 @@ static BYTE *tail_hRcsId = "$Id$";
|
||||
* Rev 1.0 02 Jul 1995 10:39:54 patv
|
||||
* Initial revision.
|
||||
*/
|
||||
|
||||
#ifndef LINESIZE
|
||||
#define LINESIZE 127
|
||||
#endif
|
||||
|
||||
typedef struct
|
||||
{
|
||||
UBYTE ctCount; /* number of bytes returned */
|
||||
BYTE ctBuffer[LINESIZE]; /* the buffer itself */
|
||||
}
|
||||
CommandTail;
|
||||
|
34
hdr/time.h
34
hdr/time.h
@ -38,17 +38,20 @@ static BYTE *time_hRcsId = "$Id$";
|
||||
#endif
|
||||
#endif
|
||||
|
||||
/* FAT Time notation in the form of hhhh hmmm mmmd dddd */
|
||||
|
||||
#define TM_HOUR(t) (((t)>>11)&0x1f)
|
||||
#define TM_MIN(t) (((t)>>5)&0x3f)
|
||||
#define TM_DEC(t) ((t)&0x1f)
|
||||
|
||||
#define TM_ENCODE(h,m,d) ((((h&0x1f))<<11)|(((m)&0x3f)<<5)|((d)&0x1f))
|
||||
|
||||
typedef UWORD time;
|
||||
|
||||
#endif
|
||||
|
||||
/*
|
||||
* $Log$
|
||||
* Revision 1.3 2000/05/25 20:56:19 jimtabor
|
||||
* Fixed project history
|
||||
*
|
||||
* Revision 1.2 2000/05/08 04:28:22 jimtabor
|
||||
* Update CVS to 2020
|
||||
*
|
||||
* Revision 1.1.1.1 2000/05/06 19:34:53 jhall1
|
||||
* The FreeDOS Kernel. A DOS kernel that aims to be 100% compatible with
|
||||
* MS-DOS. Distributed under the GNU GPL.
|
||||
* Log: time.h,v
|
||||
*
|
||||
* Revision 1.2 1999/08/25 03:17:11 jprice
|
||||
* ror4 patches to allow TC 2.01 compile.
|
||||
@ -85,14 +88,3 @@ static BYTE *time_hRcsId = "$Id$";
|
||||
* Initial revision.
|
||||
*/
|
||||
|
||||
/* FAT Time notation in the form of hhhh hmmm mmmd dddd */
|
||||
|
||||
#define TM_HOUR(t) (((t)>>11)&0x1f)
|
||||
#define TM_MIN(t) (((t)>>5)&0x3f)
|
||||
#define TM_DEC(t) ((t)&0x1f)
|
||||
|
||||
#define TM_ENCODE(h,m,d) ((((h&0x1f))<<11)|(((m)&0x3f)<<5)|((d)&0x1f))
|
||||
|
||||
typedef UWORD time;
|
||||
|
||||
#endif
|
||||
|
@ -44,6 +44,6 @@ static BYTE *date_hRcsId = "$Id$";
|
||||
#define REVISION_MINOR 1
|
||||
#define REVISION_SEQ 25
|
||||
#define BUILD "2025"
|
||||
#define SUB_BUILD "a"
|
||||
#define KERNEL_VERSION_STRING "1.1.25a" /*#REVISION_MAJOR "." #REVISION_MINOR "." #REVISION_SEQ*/
|
||||
#define KERNEL_BUILD_STRING "2025a" /*#BUILD SUB_BUILD*/
|
||||
#define SUB_BUILD "b"
|
||||
#define KERNEL_VERSION_STRING "1.1.25b" /*#REVISION_MAJOR "." #REVISION_MINOR "." #REVISION_SEQ*/
|
||||
#define KERNEL_BUILD_STRING "2025b" /*#BUILD SUB_BUILD*/
|
||||
|
@ -25,60 +25,6 @@
|
||||
; Cambridge, MA 02139, USA.
|
||||
;
|
||||
; $Id$
|
||||
;
|
||||
; $Log$
|
||||
; Revision 1.6 2001/04/15 02:23:43 bartoldeman
|
||||
; apisupt.asm is not necessary anymore.
|
||||
;
|
||||
; Revision 1.5 2001/03/22 20:46:46 bartoldeman
|
||||
; cli/sti corrections (Bart) and int25, 26 stack corrections (Tom)
|
||||
;
|
||||
; Revision 1.4 2001/03/21 02:56:25 bartoldeman
|
||||
; See history.txt for changes. Bug fixes and HMA support are the main ones.
|
||||
;
|
||||
; Revision 1.3 2000/05/25 20:56:21 jimtabor
|
||||
; Fixed project history
|
||||
;
|
||||
; Revision 1.2 2000/05/08 04:29:59 jimtabor
|
||||
; Update CVS to 2020
|
||||
;
|
||||
; Revision 1.1.1.1 2000/05/06 19:34:53 jhall1
|
||||
; The FreeDOS Kernel. A DOS kernel that aims to be 100% compatible with
|
||||
; MS-DOS. Distributed under the GNU GPL.
|
||||
;
|
||||
; Revision 1.2 1999/08/10 17:57:12 jprice
|
||||
; ror4 2011-02 patch
|
||||
;
|
||||
; Revision 1.1.1.1 1999/03/29 15:40:38 jprice
|
||||
; New version without IPL.SYS
|
||||
;
|
||||
; Revision 1.4 1999/02/08 05:55:57 jprice
|
||||
; Added Pat's 1937 kernel patches
|
||||
;
|
||||
; Revision 1.3 1999/02/01 01:48:41 jprice
|
||||
; Clean up; Now you can use hex numbers in config.sys. added config.sys screen function to change screen mode (28 or 43/50 lines)
|
||||
;
|
||||
; Revision 1.2 1999/01/22 04:13:25 jprice
|
||||
; Formating
|
||||
;
|
||||
; Revision 1.1.1.1 1999/01/20 05:51:01 jprice
|
||||
; Imported sources
|
||||
;
|
||||
; Rev 1.4 06 Dec 1998 8:47:02 patv
|
||||
;Expanded due to new I/O subsystem.
|
||||
;
|
||||
; Rev 1.3 16 Jan 1997 12:46:44 patv
|
||||
;pre-Release 0.92 feature additions
|
||||
;
|
||||
; Rev 1.2 29 May 1996 21:03:38 patv
|
||||
;bug fixes for v0.91a
|
||||
;
|
||||
; Rev 1.1 01 Sep 1995 17:54:26 patv
|
||||
;First GPL release.
|
||||
;
|
||||
; Rev 1.0 02 Jul 1995 9:04:50 patv
|
||||
;Initial revision.
|
||||
; $EndLog$
|
||||
;
|
||||
|
||||
%include "segs.inc"
|
||||
@ -181,3 +127,40 @@ _restore_stack:
|
||||
|
||||
ret
|
||||
%endif
|
||||
|
||||
; Log: apisupt.asm,v
|
||||
;
|
||||
; Revision 1.2 1999/08/10 17:57:12 jprice
|
||||
; ror4 2011-02 patch
|
||||
;
|
||||
; Revision 1.1.1.1 1999/03/29 15:40:38 jprice
|
||||
; New version without IPL.SYS
|
||||
;
|
||||
; Revision 1.4 1999/02/08 05:55:57 jprice
|
||||
; Added Pat's 1937 kernel patches
|
||||
;
|
||||
; Revision 1.3 1999/02/01 01:48:41 jprice
|
||||
; Clean up; Now you can use hex numbers in config.sys. added config.sys screen function to change screen mode (28 or 43/50 lines)
|
||||
;
|
||||
; Revision 1.2 1999/01/22 04:13:25 jprice
|
||||
; Formating
|
||||
;
|
||||
; Revision 1.1.1.1 1999/01/20 05:51:01 jprice
|
||||
; Imported sources
|
||||
;
|
||||
; Rev 1.4 06 Dec 1998 8:47:02 patv
|
||||
;Expanded due to new I/O subsystem.
|
||||
;
|
||||
; Rev 1.3 16 Jan 1997 12:46:44 patv
|
||||
;pre-Release 0.92 feature additions
|
||||
;
|
||||
; Rev 1.2 29 May 1996 21:03:38 patv
|
||||
;bug fixes for v0.91a
|
||||
;
|
||||
; Rev 1.1 01 Sep 1995 17:54:26 patv
|
||||
;First GPL release.
|
||||
;
|
||||
; Rev 1.0 02 Jul 1995 9:04:50 patv
|
||||
;Initial revision.
|
||||
; EndLog
|
||||
;
|
||||
|
@ -32,63 +32,6 @@
|
||||
; glibc 2.2
|
||||
;
|
||||
; $Id$
|
||||
;
|
||||
; $Log$
|
||||
; Revision 1.6 2001/09/23 20:39:44 bartoldeman
|
||||
; FAT32 support, misc fixes, INT2F/AH=12 support, drive B: handling
|
||||
;
|
||||
; Revision 1.5 2001/04/15 03:21:50 bartoldeman
|
||||
; See history.txt for the list of fixes.
|
||||
;
|
||||
; Revision 1.4 2001/03/21 02:56:25 bartoldeman
|
||||
; See history.txt for changes. Bug fixes and HMA support are the main ones.
|
||||
;
|
||||
; Revision 1.3 2000/05/25 20:56:21 jimtabor
|
||||
; Fixed project history
|
||||
;
|
||||
; Revision 1.2 2000/05/08 04:29:59 jimtabor
|
||||
; Update CVS to 2020
|
||||
;
|
||||
; Revision 1.1.1.1 2000/05/06 19:34:53 jhall1
|
||||
; The FreeDOS Kernel. A DOS kernel that aims to be 100% compatible with
|
||||
; MS-DOS. Distributed under the GNU GPL.
|
||||
;
|
||||
; Revision 1.3 1999/08/10 17:57:12 jprice
|
||||
; ror4 2011-02 patch
|
||||
;
|
||||
; Revision 1.2 1999/04/23 04:24:39 jprice
|
||||
; Memory manager changes made by ska
|
||||
;
|
||||
; Revision 1.1.1.1 1999/03/29 15:40:41 jprice
|
||||
; New version without IPL.SYS
|
||||
;
|
||||
; Revision 1.4 1999/02/08 05:55:57 jprice
|
||||
; Added Pat's 1937 kernel patches
|
||||
;
|
||||
; Revision 1.3 1999/02/01 01:48:41 jprice
|
||||
; Clean up; Now you can use hex numbers in config.sys. added config.sys screen function to change screen mode (28 or 43/50 lines)
|
||||
;
|
||||
; Revision 1.2 1999/01/22 04:13:25 jprice
|
||||
; Formating
|
||||
;
|
||||
; Revision 1.1.1.1 1999/01/20 05:51:01 jprice
|
||||
; Imported sources
|
||||
;
|
||||
; Rev 1.4 06 Dec 1998 8:46:50 patv
|
||||
; Bug fixes.
|
||||
;
|
||||
; Rev 1.3 03 Jan 1998 8:36:44 patv
|
||||
; Converted data area to SDA format
|
||||
;
|
||||
; Rev 1.2 29 May 1996 21:03:38 patv
|
||||
; bug fixes for v0.91a
|
||||
;
|
||||
; Rev 1.1 01 Sep 1995 17:54:26 patv
|
||||
; First GPL release.
|
||||
;
|
||||
; Rev 1.0 05 Jul 1995 11:38:42 patv
|
||||
; Initial revision.
|
||||
; $EndLog$
|
||||
;
|
||||
|
||||
%include "segs.inc"
|
||||
@ -460,3 +403,42 @@ strncmp_done:
|
||||
or al,1
|
||||
strncmp_done2: jmp common_return
|
||||
|
||||
; Log: asmsupt.asm,v
|
||||
;
|
||||
; Revision 1.3 1999/08/10 17:57:12 jprice
|
||||
; ror4 2011-02 patch
|
||||
;
|
||||
; Revision 1.2 1999/04/23 04:24:39 jprice
|
||||
; Memory manager changes made by ska
|
||||
;
|
||||
; Revision 1.1.1.1 1999/03/29 15:40:41 jprice
|
||||
; New version without IPL.SYS
|
||||
;
|
||||
; Revision 1.4 1999/02/08 05:55:57 jprice
|
||||
; Added Pat's 1937 kernel patches
|
||||
;
|
||||
; Revision 1.3 1999/02/01 01:48:41 jprice
|
||||
; Clean up; Now you can use hex numbers in config.sys. added config.sys screen function to change screen mode (28 or 43/50 lines)
|
||||
;
|
||||
; Revision 1.2 1999/01/22 04:13:25 jprice
|
||||
; Formating
|
||||
;
|
||||
; Revision 1.1.1.1 1999/01/20 05:51:01 jprice
|
||||
; Imported sources
|
||||
;
|
||||
; Rev 1.4 06 Dec 1998 8:46:50 patv
|
||||
; Bug fixes.
|
||||
;
|
||||
; Rev 1.3 03 Jan 1998 8:36:44 patv
|
||||
; Converted data area to SDA format
|
||||
;
|
||||
; Rev 1.2 29 May 1996 21:03:38 patv
|
||||
; bug fixes for v0.91a
|
||||
;
|
||||
; Rev 1.1 01 Sep 1995 17:54:26 patv
|
||||
; First GPL release.
|
||||
;
|
||||
; Rev 1.0 05 Jul 1995 11:38:42 patv
|
||||
; Initial revision.
|
||||
; EndLog
|
||||
;
|
||||
|
236
kernel/blockio.c
236
kernel/blockio.c
@ -35,145 +35,6 @@
|
||||
static BYTE *blockioRcsId = "$Id$";
|
||||
#endif
|
||||
|
||||
/*
|
||||
* $Log$
|
||||
* Revision 1.15 2001/11/13 23:36:45 bartoldeman
|
||||
* Kernel 2025a final changes.
|
||||
*
|
||||
* Revision 1.14 2001/11/04 19:47:39 bartoldeman
|
||||
* kernel 2025a changes: see history.txt
|
||||
*
|
||||
* Revision 1.13 2001/09/23 20:39:44 bartoldeman
|
||||
* FAT32 support, misc fixes, INT2F/AH=12 support, drive B: handling
|
||||
*
|
||||
* Revision 1.12 2001/07/22 01:58:58 bartoldeman
|
||||
* Support for Brian's FORMAT, DJGPP libc compilation, cleanups, MSCDEX
|
||||
*
|
||||
* Revision 1.11 2001/07/09 22:19:33 bartoldeman
|
||||
* LBA/FCB/FAT/SYS/Ctrl-C/ioctl fixes + memory savings
|
||||
*
|
||||
* Revision 1.10 2001/06/03 14:16:17 bartoldeman
|
||||
* BUFFERS tuning and misc bug fixes/cleanups (2024c).
|
||||
*
|
||||
* Revision 1.9 2001/04/21 22:32:53 bartoldeman
|
||||
* Init DS=Init CS, fixed stack overflow problems and misc bugs.
|
||||
*
|
||||
* Revision 1.8 2001/04/15 03:21:50 bartoldeman
|
||||
* See history.txt for the list of fixes.
|
||||
*
|
||||
* Revision 1.7 2001/03/21 02:56:25 bartoldeman
|
||||
* See history.txt for changes. Bug fixes and HMA support are the main ones.
|
||||
*
|
||||
* Revision 1.6 2000/10/30 00:32:08 jimtabor
|
||||
* Minor Fixes
|
||||
*
|
||||
* Revision 1.5 2000/10/30 00:21:15 jimtabor
|
||||
* Adding Brian Reifsnyder Fix for Int 25/26
|
||||
* 2000/9/04 Brian Reifsnyder
|
||||
* Modified dskxfer() such that error codes are now returned.
|
||||
* Functions that rely on dskxfer() have also been modified accordingly.
|
||||
*
|
||||
* Revision 1.4 2000/05/25 20:56:21 jimtabor
|
||||
* Fixed project history
|
||||
*
|
||||
* Revision 1.3 2000/05/11 04:26:26 jimtabor
|
||||
* Added code for DOS FN 69 & 6C
|
||||
*
|
||||
* Revision 1.2 2000/05/08 04:29:59 jimtabor
|
||||
* Update CVS to 2020
|
||||
*
|
||||
* Revision 1.1.1.1 2000/05/06 19:34:53 jhall1
|
||||
* The FreeDOS Kernel. A DOS kernel that aims to be 100% compatible with
|
||||
* MS-DOS. Distributed under the GNU GPL.
|
||||
*
|
||||
* Revision 1.15 2000/04/29 05:13:16 jtabor
|
||||
* Added new functions and clean up code
|
||||
*
|
||||
* Revision 1.14 2000/03/09 06:07:10 kernel
|
||||
* 2017f updates by James Tabor
|
||||
*
|
||||
* Revision 1.13 1999/08/25 03:18:07 jprice
|
||||
* ror4 patches to allow TC 2.01 compile.
|
||||
*
|
||||
* Revision 1.12 1999/08/10 18:03:39 jprice
|
||||
* ror4 2011-03 patch
|
||||
*
|
||||
* Revision 1.11 1999/05/03 06:25:45 jprice
|
||||
* Patches from ror4 and many changed of signed to unsigned variables.
|
||||
*
|
||||
* Revision 1.10 1999/05/03 04:55:35 jprice
|
||||
* Changed getblock & getbuf so that they leave at least 3 buffer for FAT data.
|
||||
*
|
||||
* Revision 1.9 1999/04/21 01:44:40 jprice
|
||||
* no message
|
||||
*
|
||||
* Revision 1.8 1999/04/18 05:28:39 jprice
|
||||
* no message
|
||||
*
|
||||
* Revision 1.7 1999/04/16 21:43:40 jprice
|
||||
* ror4 multi-sector IO
|
||||
*
|
||||
* Revision 1.6 1999/04/16 00:53:32 jprice
|
||||
* Optimized FAT handling
|
||||
*
|
||||
* Revision 1.5 1999/04/12 23:41:53 jprice
|
||||
* Using getbuf to write data instead of getblock
|
||||
* using getblock made it read the block before it wrote it
|
||||
*
|
||||
* Revision 1.4 1999/04/11 05:28:10 jprice
|
||||
* Working on multi-block IO
|
||||
*
|
||||
* Revision 1.3 1999/04/11 04:33:38 jprice
|
||||
* ror4 patches
|
||||
*
|
||||
* Revision 1.1.1.1 1999/03/29 15:41:43 jprice
|
||||
* New version without IPL.SYS
|
||||
*
|
||||
* Revision 1.5 1999/02/09 02:54:23 jprice
|
||||
* Added Pat's 1937 kernel patches
|
||||
*
|
||||
* Revision 1.4 1999/02/01 01:43:27 jprice
|
||||
* Fixed findfirst function to find volume label with Windows long filenames
|
||||
*
|
||||
* Revision 1.3 1999/01/30 08:25:34 jprice
|
||||
* Clean up; Fixed bug with set attribute function. If you tried to
|
||||
* change the attributes of a directory, it would erase it.
|
||||
*
|
||||
* Revision 1.2 1999/01/22 04:15:28 jprice
|
||||
* Formating
|
||||
*
|
||||
* Revision 1.1.1.1 1999/01/20 05:51:00 jprice
|
||||
* Imported sources
|
||||
*
|
||||
*
|
||||
* Rev 1.8 06 Dec 1998 8:43:16 patv
|
||||
* Changes in block I/O because of new I/O subsystem.
|
||||
*
|
||||
* Rev 1.7 22 Jan 1998 4:09:00 patv
|
||||
* Fixed pointer problems affecting SDA
|
||||
*
|
||||
* Rev 1.6 04 Jan 1998 23:14:36 patv
|
||||
* Changed Log for strip utility
|
||||
*
|
||||
* Rev 1.5 03 Jan 1998 8:36:02 patv
|
||||
* Converted data area to SDA format
|
||||
*
|
||||
* Rev 1.4 16 Jan 1997 12:46:34 patv
|
||||
* pre-Release 0.92 feature additions
|
||||
*
|
||||
* Rev 1.3 29 May 1996 21:15:10 patv
|
||||
* bug fixes for v0.91a
|
||||
*
|
||||
* Rev 1.2 01 Sep 1995 17:48:46 patv
|
||||
* First GPL release.
|
||||
*
|
||||
* Rev 1.1 30 Jul 1995 20:50:28 patv
|
||||
* Eliminated version strings in ipl
|
||||
*
|
||||
* Rev 1.0 02 Jul 1995 8:04:06 patv
|
||||
* Initial revision.
|
||||
*/
|
||||
|
||||
/************************************************************************/
|
||||
/* */
|
||||
/* block cache routines */
|
||||
@ -681,3 +542,100 @@ UWORD dskxfer(COUNT dsk, ULONG blkno, VOID FAR * buf, UWORD numblocks, COUNT mod
|
||||
/* End of change */
|
||||
|
||||
}
|
||||
|
||||
/*
|
||||
* 2000/9/04 Brian Reifsnyder
|
||||
* Modified dskxfer() such that error codes are now returned.
|
||||
* Functions that rely on dskxfer() have also been modified accordingly.
|
||||
*/
|
||||
|
||||
/*
|
||||
* Log: blockio.c,v - for newer entries do "cvs log blockio.c"
|
||||
*
|
||||
* Revision 1.15 2000/04/29 05:13:16 jtabor
|
||||
* Added new functions and clean up code
|
||||
*
|
||||
* Revision 1.14 2000/03/09 06:07:10 kernel
|
||||
* 2017f updates by James Tabor
|
||||
*
|
||||
* Revision 1.13 1999/08/25 03:18:07 jprice
|
||||
* ror4 patches to allow TC 2.01 compile.
|
||||
*
|
||||
* Revision 1.12 1999/08/10 18:03:39 jprice
|
||||
* ror4 2011-03 patch
|
||||
*
|
||||
* Revision 1.11 1999/05/03 06:25:45 jprice
|
||||
* Patches from ror4 and many changed of signed to unsigned variables.
|
||||
*
|
||||
* Revision 1.10 1999/05/03 04:55:35 jprice
|
||||
* Changed getblock & getbuf so that they leave at least 3 buffer for FAT data.
|
||||
*
|
||||
* Revision 1.9 1999/04/21 01:44:40 jprice
|
||||
* no message
|
||||
*
|
||||
* Revision 1.8 1999/04/18 05:28:39 jprice
|
||||
* no message
|
||||
*
|
||||
* Revision 1.7 1999/04/16 21:43:40 jprice
|
||||
* ror4 multi-sector IO
|
||||
*
|
||||
* Revision 1.6 1999/04/16 00:53:32 jprice
|
||||
* Optimized FAT handling
|
||||
*
|
||||
* Revision 1.5 1999/04/12 23:41:53 jprice
|
||||
* Using getbuf to write data instead of getblock
|
||||
* using getblock made it read the block before it wrote it
|
||||
*
|
||||
* Revision 1.4 1999/04/11 05:28:10 jprice
|
||||
* Working on multi-block IO
|
||||
*
|
||||
* Revision 1.3 1999/04/11 04:33:38 jprice
|
||||
* ror4 patches
|
||||
*
|
||||
* Revision 1.1.1.1 1999/03/29 15:41:43 jprice
|
||||
* New version without IPL.SYS
|
||||
*
|
||||
* Revision 1.5 1999/02/09 02:54:23 jprice
|
||||
* Added Pat's 1937 kernel patches
|
||||
*
|
||||
* Revision 1.4 1999/02/01 01:43:27 jprice
|
||||
* Fixed findfirst function to find volume label with Windows long filenames
|
||||
*
|
||||
* Revision 1.3 1999/01/30 08:25:34 jprice
|
||||
* Clean up; Fixed bug with set attribute function. If you tried to
|
||||
* change the attributes of a directory, it would erase it.
|
||||
*
|
||||
* Revision 1.2 1999/01/22 04:15:28 jprice
|
||||
* Formating
|
||||
*
|
||||
* Revision 1.1.1.1 1999/01/20 05:51:00 jprice
|
||||
* Imported sources
|
||||
*
|
||||
*
|
||||
* Rev 1.8 06 Dec 1998 8:43:16 patv
|
||||
* Changes in block I/O because of new I/O subsystem.
|
||||
*
|
||||
* Rev 1.7 22 Jan 1998 4:09:00 patv
|
||||
* Fixed pointer problems affecting SDA
|
||||
*
|
||||
* Rev 1.6 04 Jan 1998 23:14:36 patv
|
||||
* Changed Log for strip utility
|
||||
*
|
||||
* Rev 1.5 03 Jan 1998 8:36:02 patv
|
||||
* Converted data area to SDA format
|
||||
*
|
||||
* Rev 1.4 16 Jan 1997 12:46:34 patv
|
||||
* pre-Release 0.92 feature additions
|
||||
*
|
||||
* Rev 1.3 29 May 1996 21:15:10 patv
|
||||
* bug fixes for v0.91a
|
||||
*
|
||||
* Rev 1.2 01 Sep 1995 17:48:46 patv
|
||||
* First GPL release.
|
||||
*
|
||||
* Rev 1.1 30 Jul 1995 20:50:28 patv
|
||||
* Eliminated version strings in ipl
|
||||
*
|
||||
* Rev 1.0 02 Jul 1995 8:04:06 patv
|
||||
* Initial revision.
|
||||
*/
|
||||
|
@ -36,38 +36,6 @@ extern void ASMCFUNC spawn_int23(void);
|
||||
static BYTE *RcsId = "$Id$";
|
||||
#endif
|
||||
|
||||
/*
|
||||
* $Log$
|
||||
* Revision 1.7 2001/09/23 20:39:44 bartoldeman
|
||||
* FAT32 support, misc fixes, INT2F/AH=12 support, drive B: handling
|
||||
*
|
||||
* Revision 1.6 2001/08/19 12:58:36 bartoldeman
|
||||
* Time and date fixes, Ctrl-S/P, findfirst/next, FCBs, buffers, tsr unloading
|
||||
*
|
||||
* Revision 1.5 2001/04/15 03:21:50 bartoldeman
|
||||
* See history.txt for the list of fixes.
|
||||
*
|
||||
* Revision 1.4 2001/03/21 02:56:25 bartoldeman
|
||||
* See history.txt for changes. Bug fixes and HMA support are the main ones.
|
||||
*
|
||||
* Revision 1.3 2000/05/25 20:56:21 jimtabor
|
||||
* Fixed project history
|
||||
*
|
||||
* Revision 1.2 2000/05/08 04:29:59 jimtabor
|
||||
* Update CVS to 2020
|
||||
*
|
||||
* Revision 1.1.1.1 2000/05/06 19:34:53 jhall1
|
||||
* The FreeDOS Kernel. A DOS kernel that aims to be 100% compatible with
|
||||
* MS-DOS. Distributed under the GNU GPL.
|
||||
*
|
||||
* Revision 1.2 2000/03/09 06:07:10 kernel
|
||||
* 2017f updates by James Tabor
|
||||
*
|
||||
* Revision 1.1 1999/04/16 21:18:17 jprice
|
||||
* Steffen contributed.
|
||||
*
|
||||
*/
|
||||
|
||||
#define CB_FLG *(UBYTE FAR*)MK_FP(0x40, 0x71)
|
||||
#define CB_MSK 0x80
|
||||
|
||||
@ -102,3 +70,15 @@ void handle_break(void)
|
||||
|
||||
spawn_int23(); /* invoke user INT-23 and never come back */
|
||||
}
|
||||
|
||||
/*
|
||||
* Log: break.c,v - for newer entries see "cvs log break.c"
|
||||
*
|
||||
* Revision 1.2 2000/03/09 06:07:10 kernel
|
||||
* 2017f updates by James Tabor
|
||||
*
|
||||
* Revision 1.1 1999/04/16 21:18:17 jprice
|
||||
* Steffen contributed.
|
||||
*
|
||||
*/
|
||||
|
||||
|
183
kernel/chario.c
183
kernel/chario.c
@ -34,114 +34,6 @@
|
||||
static BYTE *charioRcsId = "$Id$";
|
||||
#endif
|
||||
|
||||
/*
|
||||
* $Log$
|
||||
* Revision 1.13 2001/09/23 20:39:44 bartoldeman
|
||||
* FAT32 support, misc fixes, INT2F/AH=12 support, drive B: handling
|
||||
*
|
||||
* Revision 1.12 2001/08/20 20:32:15 bartoldeman
|
||||
* Truename, get free space and ctrl-break fixes.
|
||||
*
|
||||
* Revision 1.11 2001/08/19 12:58:36 bartoldeman
|
||||
* Time and date fixes, Ctrl-S/P, findfirst/next, FCBs, buffers, tsr unloading
|
||||
*
|
||||
* Revision 1.10 2001/07/23 12:47:42 bartoldeman
|
||||
* FCB fixes and clean-ups, exec int21/ax=4b01, initdisk.c printf
|
||||
*
|
||||
* Revision 1.9 2001/06/03 14:16:17 bartoldeman
|
||||
* BUFFERS tuning and misc bug fixes/cleanups (2024c).
|
||||
*
|
||||
* Revision 1.8 2001/04/29 17:34:40 bartoldeman
|
||||
* A new SYS.COM/config.sys single stepping/console output/misc fixes.
|
||||
*
|
||||
* Revision 1.7 2001/04/21 22:32:53 bartoldeman
|
||||
* Init DS=Init CS, fixed stack overflow problems and misc bugs.
|
||||
*
|
||||
* Revision 1.6 2001/04/16 01:45:26 bartoldeman
|
||||
* Fixed handles, config.sys drivers, warnings. Enabled INT21/AH=6C, printf %S/%Fs
|
||||
*
|
||||
* Revision 1.5 2001/04/15 03:21:50 bartoldeman
|
||||
* See history.txt for the list of fixes.
|
||||
*
|
||||
* Revision 1.4 2000/05/26 19:25:19 jimtabor
|
||||
* Read History file for Change info
|
||||
*
|
||||
* Revision 1.3 2000/05/25 20:56:21 jimtabor
|
||||
* Fixed project history
|
||||
*
|
||||
* Revision 1.2 2000/05/08 04:29:59 jimtabor
|
||||
* Update CVS to 2020
|
||||
*
|
||||
* Revision 1.1.1.1 2000/05/06 19:34:53 jhall1
|
||||
* The FreeDOS Kernel. A DOS kernel that aims to be 100% compatible with
|
||||
* MS-DOS. Distributed under the GNU GPL.
|
||||
*
|
||||
* Revision 1.7 2000/03/09 06:07:10 kernel
|
||||
* 2017f updates by James Tabor
|
||||
*
|
||||
* Revision 1.6 1999/09/23 04:40:45 jprice
|
||||
* *** empty log message ***
|
||||
*
|
||||
* Revision 1.4 1999/08/25 03:18:07 jprice
|
||||
* ror4 patches to allow TC 2.01 compile.
|
||||
*
|
||||
* Revision 1.3 1999/04/16 12:21:21 jprice
|
||||
* Steffen c-break handler changes
|
||||
*
|
||||
* Revision 1.2 1999/04/04 18:51:42 jprice
|
||||
* no message
|
||||
*
|
||||
* Revision 1.1.1.1 1999/03/29 15:41:45 jprice
|
||||
* New version without IPL.SYS
|
||||
*
|
||||
* Revision 1.5 1999/02/09 02:54:23 jprice
|
||||
* Added Pat's 1937 kernel patches
|
||||
*
|
||||
* Revision 1.4 1999/02/04 03:18:37 jprice
|
||||
* Formating. Added comments.
|
||||
*
|
||||
* Revision 1.3 1999/02/01 01:43:28 jprice
|
||||
* Fixed findfirst function to find volume label with Windows long filenames
|
||||
*
|
||||
* Revision 1.2 1999/01/22 04:15:28 jprice
|
||||
* Formating
|
||||
*
|
||||
* Revision 1.1.1.1 1999/01/20 05:51:00 jprice
|
||||
* Imported sources
|
||||
*
|
||||
*
|
||||
* Rev 1.9 06 Dec 1998 8:43:36 patv
|
||||
* changes in character I/O because of new I/O subsystem.
|
||||
*
|
||||
* Rev 1.8 11 Jan 1998 2:06:08 patv
|
||||
* Added functionality to ioctl.
|
||||
*
|
||||
* Rev 1.7 08 Jan 1998 21:36:40 patv
|
||||
* Changed automatic requestic packets to static to save stack space.
|
||||
*
|
||||
* Rev 1.6 04 Jan 1998 23:14:38 patv
|
||||
* Changed Log for strip utility
|
||||
*
|
||||
* Rev 1.5 30 Dec 1997 4:00:20 patv
|
||||
* Modified to support SDA
|
||||
*
|
||||
* Rev 1.4 16 Jan 1997 12:46:36 patv
|
||||
* pre-Release 0.92 feature additions
|
||||
*
|
||||
* Rev 1.3 29 May 1996 21:15:12 patv
|
||||
* bug fixes for v0.91a
|
||||
*
|
||||
* Rev 1.2 01 Sep 1995 17:48:42 patv
|
||||
* First GPL release.
|
||||
*
|
||||
* Rev 1.1 30 Jul 1995 20:50:26 patv
|
||||
* Eliminated version strings in ipl
|
||||
*
|
||||
* Rev 1.0 02 Jul 1995 8:05:44 patv
|
||||
* Initial revision.
|
||||
*
|
||||
*/
|
||||
|
||||
#include "globals.h"
|
||||
|
||||
#ifdef PROTO
|
||||
@ -435,8 +327,10 @@ UCOUNT sti_0a(keyboard FAR * kp)
|
||||
break;
|
||||
}
|
||||
|
||||
case F1:
|
||||
case RIGHT:
|
||||
c = local_buffer[kp->kb_count];
|
||||
if (c)
|
||||
kbfill(kp, c, FALSE, &virt_pos);
|
||||
break;
|
||||
}
|
||||
@ -475,8 +369,7 @@ UCOUNT sti_0a(keyboard FAR * kp)
|
||||
|
||||
case CR:
|
||||
#ifndef NOSPCL
|
||||
fbcopy((BYTE FAR *) kp->kb_buf,
|
||||
(BYTE FAR *) local_buffer, (COUNT) kp->kb_count);
|
||||
fmemcpy(local_buffer, kp->kb_buf, (COUNT) kp->kb_count);
|
||||
local_buffer[kp->kb_count] = '\0';
|
||||
#endif
|
||||
kbfill(kp, CR, TRUE, &virt_pos);
|
||||
@ -521,3 +414,73 @@ UCOUNT sti(keyboard * kp)
|
||||
}
|
||||
return ReadCount;
|
||||
}
|
||||
|
||||
/*
|
||||
* Log: chario.c,v - for newer logs do "cvs log chario.c"
|
||||
*
|
||||
* Revision 1.7 2000/03/09 06:07:10 kernel
|
||||
* 2017f updates by James Tabor
|
||||
*
|
||||
* Revision 1.6 1999/09/23 04:40:45 jprice
|
||||
* *** empty log message ***
|
||||
*
|
||||
* Revision 1.4 1999/08/25 03:18:07 jprice
|
||||
* ror4 patches to allow TC 2.01 compile.
|
||||
*
|
||||
* Revision 1.3 1999/04/16 12:21:21 jprice
|
||||
* Steffen c-break handler changes
|
||||
*
|
||||
* Revision 1.2 1999/04/04 18:51:42 jprice
|
||||
* no message
|
||||
*
|
||||
* Revision 1.1.1.1 1999/03/29 15:41:45 jprice
|
||||
* New version without IPL.SYS
|
||||
*
|
||||
* Revision 1.5 1999/02/09 02:54:23 jprice
|
||||
* Added Pat's 1937 kernel patches
|
||||
*
|
||||
* Revision 1.4 1999/02/04 03:18:37 jprice
|
||||
* Formating. Added comments.
|
||||
*
|
||||
* Revision 1.3 1999/02/01 01:43:28 jprice
|
||||
* Fixed findfirst function to find volume label with Windows long filenames
|
||||
*
|
||||
* Revision 1.2 1999/01/22 04:15:28 jprice
|
||||
* Formating
|
||||
*
|
||||
* Revision 1.1.1.1 1999/01/20 05:51:00 jprice
|
||||
* Imported sources
|
||||
*
|
||||
*
|
||||
* Rev 1.9 06 Dec 1998 8:43:36 patv
|
||||
* changes in character I/O because of new I/O subsystem.
|
||||
*
|
||||
* Rev 1.8 11 Jan 1998 2:06:08 patv
|
||||
* Added functionality to ioctl.
|
||||
*
|
||||
* Rev 1.7 08 Jan 1998 21:36:40 patv
|
||||
* Changed automatic requestic packets to static to save stack space.
|
||||
*
|
||||
* Rev 1.6 04 Jan 1998 23:14:38 patv
|
||||
* Changed Log for strip utility
|
||||
*
|
||||
* Rev 1.5 30 Dec 1997 4:00:20 patv
|
||||
* Modified to support SDA
|
||||
*
|
||||
* Rev 1.4 16 Jan 1997 12:46:36 patv
|
||||
* pre-Release 0.92 feature additions
|
||||
*
|
||||
* Rev 1.3 29 May 1996 21:15:12 patv
|
||||
* bug fixes for v0.91a
|
||||
*
|
||||
* Rev 1.2 01 Sep 1995 17:48:42 patv
|
||||
* First GPL release.
|
||||
*
|
||||
* Rev 1.1 30 Jul 1995 20:50:26 patv
|
||||
* Eliminated version strings in ipl
|
||||
*
|
||||
* Rev 1.0 02 Jul 1995 8:05:44 patv
|
||||
* Initial revision.
|
||||
*
|
||||
*/
|
||||
|
||||
|
282
kernel/config.c
282
kernel/config.c
@ -32,6 +32,21 @@
|
||||
#include "init-dat.h"
|
||||
#include "dyndata.h"
|
||||
|
||||
#ifdef VERSION_STRINGS
|
||||
static BYTE *RcsId = "$Id$";
|
||||
#endif
|
||||
|
||||
#ifdef DEBUG
|
||||
#define DebugPrintf(x) printf x
|
||||
#else
|
||||
#define DebugPrintf(x)
|
||||
#endif
|
||||
|
||||
#ifdef KDB
|
||||
#include <alloc.h>
|
||||
|
||||
#define KernelAlloc(x) adjust_far((void far *)malloc((unsigned long)(x)))
|
||||
#endif
|
||||
|
||||
/*
|
||||
These are the far variables from the DOS data segment that we need here. The
|
||||
@ -77,192 +92,6 @@ extern UWORD DOSFAR ram_top, /* How much ram in Kbytes
|
||||
DOSFAR uppermem_root,
|
||||
DOSFAR LoL_nbuffers;
|
||||
|
||||
#ifdef VERSION_STRINGS
|
||||
static BYTE *RcsId = "$Id$";
|
||||
#endif
|
||||
|
||||
#ifdef DEBUG
|
||||
#define DebugPrintf(x) printf x
|
||||
#else
|
||||
#define DebugPrintf(x)
|
||||
#endif
|
||||
|
||||
/*
|
||||
* $Log$
|
||||
* Revision 1.30 2001/11/13 23:36:45 bartoldeman
|
||||
* Kernel 2025a final changes.
|
||||
*
|
||||
* Revision 1.29 2001/11/04 19:47:39 bartoldeman
|
||||
* kernel 2025a changes: see history.txt
|
||||
*
|
||||
* Revision 1.28 2001/09/23 20:39:44 bartoldeman
|
||||
* FAT32 support, misc fixes, INT2F/AH=12 support, drive B: handling
|
||||
*
|
||||
* Revision 1.27 2001/08/19 12:58:36 bartoldeman
|
||||
* Time and date fixes, Ctrl-S/P, findfirst/next, FCBs, buffers, tsr unloading
|
||||
*
|
||||
* Revision 1.26 2001/07/28 18:13:06 bartoldeman
|
||||
* Fixes for FORMAT+SYS, FATFS, get current dir, kernel init memory situation.
|
||||
*
|
||||
* Revision 1.25 2001/07/22 01:58:58 bartoldeman
|
||||
* Support for Brian's FORMAT, DJGPP libc compilation, cleanups, MSCDEX
|
||||
*
|
||||
* Revision 1.24 2001/07/09 22:19:33 bartoldeman
|
||||
* LBA/FCB/FAT/SYS/Ctrl-C/ioctl fixes + memory savings
|
||||
*
|
||||
* Revision 1.23 2001/06/03 14:16:17 bartoldeman
|
||||
* BUFFERS tuning and misc bug fixes/cleanups (2024c).
|
||||
*
|
||||
* Revision 1.22 2001/04/29 17:34:40 bartoldeman
|
||||
* A new SYS.COM/config.sys single stepping/console output/misc fixes.
|
||||
*
|
||||
* Revision 1.21 2001/04/21 22:32:53 bartoldeman
|
||||
* Init DS=Init CS, fixed stack overflow problems and misc bugs.
|
||||
*
|
||||
* Revision 1.20 2001/04/16 14:44:29 bartoldeman
|
||||
* Removed debug printf.
|
||||
*
|
||||
* Revision 1.19 2001/04/16 14:28:32 bartoldeman
|
||||
* Kernel build 2024. Fixed critical error handler/config.sys/makefiles/UMBs
|
||||
*
|
||||
* Revision 1.18 2001/04/16 01:45:26 bartoldeman
|
||||
* Fixed handles, config.sys drivers, warnings. Enabled INT21/AH=6C, printf %S/%Fs
|
||||
*
|
||||
* Revision 1.17 2001/04/15 03:21:50 bartoldeman
|
||||
* See history.txt for the list of fixes.
|
||||
*
|
||||
* Revision 1.16 2001/04/02 23:18:30 bartoldeman
|
||||
* Misc, zero terminated device names and redirector bugs fixed.
|
||||
*
|
||||
* Revision 1.15 2001/03/30 22:27:42 bartoldeman
|
||||
* Saner lastdrive handling.
|
||||
*
|
||||
* Revision 1.14 2001/03/30 19:30:00 bartoldeman
|
||||
* Misc fixes and implementation of SHELLHIGH. See history.txt for details.
|
||||
*
|
||||
* Revision 1.13 2001/03/27 20:27:27 bartoldeman
|
||||
* dsk.c (reported by Nagy Daniel), inthndlr and int25/26 fixes by Tom Ehlert.
|
||||
*
|
||||
* Revision 1.12 2001/03/25 17:11:54 bartoldeman
|
||||
* Fixed sys.com compilation. Updated to 2023. Also: see history.txt.
|
||||
*
|
||||
* Revision 1.11 2001/03/22 04:55:36 bartoldeman
|
||||
* Fix prototypes.
|
||||
*
|
||||
* Revision 1.10 2001/03/21 02:56:25 bartoldeman
|
||||
* See history.txt for changes. Bug fixes and HMA support are the main ones.
|
||||
*
|
||||
* Revision 1.9 2001/03/08 21:15:00 bartoldeman
|
||||
* Fixed handling of "DOS=UMB", use toupper instead of tolower consistently.
|
||||
*
|
||||
* Revision 1.8 2000/08/07 22:51:34 jimtabor
|
||||
* Remove unused code
|
||||
*
|
||||
* Revision 1.7 2000/08/07 03:03:12 jimtabor
|
||||
* Fix problem with devicehigh
|
||||
*
|
||||
* Revision 1.6 2000/08/06 05:50:17 jimtabor
|
||||
* Add new files and update cvs with patches and changes
|
||||
*
|
||||
* Revision 1.5 2000/06/21 18:16:46 jimtabor
|
||||
* Add UMB code, patch, and code fixes
|
||||
*
|
||||
* Revision 1.4 2000/05/26 19:25:19 jimtabor
|
||||
* Read History file for Change info
|
||||
*
|
||||
* Revision 1.3 2000/05/25 20:56:21 jimtabor
|
||||
* Fixed project history
|
||||
*
|
||||
* Revision 1.2 2000/05/08 04:29:59 jimtabor
|
||||
* Update CVS to 2020
|
||||
*
|
||||
* Revision 1.1.1.1 2000/05/06 19:34:53 jhall1
|
||||
* The FreeDOS Kernel. A DOS kernel that aims to be 100% compatible with
|
||||
* MS-DOS. Distributed under the GNU GPL.
|
||||
*
|
||||
* Revision 1.15 2000/03/31 05:40:09 jtabor
|
||||
* Added Eric W. Biederman Patches
|
||||
*
|
||||
* Revision 1.14 2000/03/17 22:59:04 kernel
|
||||
* Steffen Kaiser's NLS changes
|
||||
*
|
||||
* Revision 1.13 2000/03/09 06:07:10 kernel
|
||||
* 2017f updates by James Tabor
|
||||
*
|
||||
* Revision 1.12 1999/09/23 04:40:46 jprice
|
||||
* *** empty log message ***
|
||||
*
|
||||
* Revision 1.10 1999/08/25 03:18:07 jprice
|
||||
* ror4 patches to allow TC 2.01 compile.
|
||||
*
|
||||
* Revision 1.9 1999/05/03 06:25:45 jprice
|
||||
* Patches from ror4 and many changed of signed to unsigned variables.
|
||||
*
|
||||
* Revision 1.8 1999/04/16 21:43:40 jprice
|
||||
* ror4 multi-sector IO
|
||||
*
|
||||
* Revision 1.7 1999/04/16 12:21:21 jprice
|
||||
* Steffen c-break handler changes
|
||||
*
|
||||
* Revision 1.6 1999/04/16 00:53:32 jprice
|
||||
* Optimized FAT handling
|
||||
*
|
||||
* Revision 1.5 1999/04/12 03:21:17 jprice
|
||||
* more ror4 patches. Changes for multi-block IO
|
||||
*
|
||||
* Revision 1.4 1999/04/11 04:33:38 jprice
|
||||
* ror4 patches
|
||||
*
|
||||
* Revision 1.2 1999/04/04 22:57:47 jprice
|
||||
* no message
|
||||
*
|
||||
* Revision 1.1.1.1 1999/03/29 15:40:46 jprice
|
||||
* New version without IPL.SYS
|
||||
*
|
||||
* Revision 1.6 1999/03/23 23:38:15 jprice
|
||||
* Now checks for a reads fdconfig.sys file, if exists
|
||||
*
|
||||
* Revision 1.5 1999/02/08 05:55:57 jprice
|
||||
* Added Pat's 1937 kernel patches
|
||||
*
|
||||
* Revision 1.4 1999/02/01 01:48:41 jprice
|
||||
* Clean up; Now you can use hex numbers in config.sys. added config.sys screen function to change screen mode (28 or 43/50 lines)
|
||||
*
|
||||
* Revision 1.3 1999/01/30 08:28:11 jprice
|
||||
* Clean up; Fixed bug with set attribute function.
|
||||
*
|
||||
* Revision 1.2 1999/01/22 04:13:25 jprice
|
||||
* Formating
|
||||
*
|
||||
* Revision 1.1.1.1 1999/01/20 05:51:01 jprice
|
||||
* Imported sources
|
||||
*
|
||||
*
|
||||
* Rev 1.6 22 Jan 1998 4:09:24 patv
|
||||
* Fixed pointer problems affecting SDA
|
||||
*
|
||||
* Rev 1.5 04 Jan 1998 23:15:18 patv
|
||||
* Changed Log for strip utility
|
||||
*
|
||||
* Rev 1.4 04 Jan 1998 17:26:14 patv
|
||||
* Corrected subdirectory bug
|
||||
*
|
||||
* Rev 1.3 16 Jan 1997 12:46:50 patv
|
||||
* pre-Release 0.92 feature additions
|
||||
*
|
||||
* Rev 1.1 29 May 1996 21:03:44 patv
|
||||
* bug fixes for v0.91a
|
||||
*
|
||||
* Rev 1.0 19 Feb 1996 3:22:16 patv
|
||||
* Added NLS, int2f and config.sys processing
|
||||
*/
|
||||
|
||||
#ifdef KDB
|
||||
#include <alloc.h>
|
||||
|
||||
#define KernelAlloc(x) adjust_far((void far *)malloc((unsigned long)(x)))
|
||||
#endif
|
||||
|
||||
struct config Config
|
||||
=
|
||||
{
|
||||
@ -992,6 +821,7 @@ INIT STATIC VOID sysScreenMode(BYTE * pLine)
|
||||
asm {
|
||||
mov al, byte ptr nMode;
|
||||
mov ah, 0x11;
|
||||
mov bl, 0;
|
||||
int 0x10;
|
||||
}
|
||||
#endif
|
||||
@ -1713,3 +1543,83 @@ INIT VOID SetAnyDos(BYTE * pLine)
|
||||
ReturnAnyDosVersionExpected = TRUE;
|
||||
}
|
||||
|
||||
/*
|
||||
* Log: config.c,v - for newer log entries see "cvs log config.c"
|
||||
*
|
||||
* Revision 1.15 2000/03/31 05:40:09 jtabor
|
||||
* Added Eric W. Biederman Patches
|
||||
*
|
||||
* Revision 1.14 2000/03/17 22:59:04 kernel
|
||||
* Steffen Kaiser's NLS changes
|
||||
*
|
||||
* Revision 1.13 2000/03/09 06:07:10 kernel
|
||||
* 2017f updates by James Tabor
|
||||
*
|
||||
* Revision 1.12 1999/09/23 04:40:46 jprice
|
||||
* *** empty log message ***
|
||||
*
|
||||
* Revision 1.10 1999/08/25 03:18:07 jprice
|
||||
* ror4 patches to allow TC 2.01 compile.
|
||||
*
|
||||
* Revision 1.9 1999/05/03 06:25:45 jprice
|
||||
* Patches from ror4 and many changed of signed to unsigned variables.
|
||||
*
|
||||
* Revision 1.8 1999/04/16 21:43:40 jprice
|
||||
* ror4 multi-sector IO
|
||||
*
|
||||
* Revision 1.7 1999/04/16 12:21:21 jprice
|
||||
* Steffen c-break handler changes
|
||||
*
|
||||
* Revision 1.6 1999/04/16 00:53:32 jprice
|
||||
* Optimized FAT handling
|
||||
*
|
||||
* Revision 1.5 1999/04/12 03:21:17 jprice
|
||||
* more ror4 patches. Changes for multi-block IO
|
||||
*
|
||||
* Revision 1.4 1999/04/11 04:33:38 jprice
|
||||
* ror4 patches
|
||||
*
|
||||
* Revision 1.2 1999/04/04 22:57:47 jprice
|
||||
* no message
|
||||
*
|
||||
* Revision 1.1.1.1 1999/03/29 15:40:46 jprice
|
||||
* New version without IPL.SYS
|
||||
*
|
||||
* Revision 1.6 1999/03/23 23:38:15 jprice
|
||||
* Now checks for a reads fdconfig.sys file, if exists
|
||||
*
|
||||
* Revision 1.5 1999/02/08 05:55:57 jprice
|
||||
* Added Pat's 1937 kernel patches
|
||||
*
|
||||
* Revision 1.4 1999/02/01 01:48:41 jprice
|
||||
* Clean up; Now you can use hex numbers in config.sys. added config.sys screen function to change screen mode (28 or 43/50 lines)
|
||||
*
|
||||
* Revision 1.3 1999/01/30 08:28:11 jprice
|
||||
* Clean up; Fixed bug with set attribute function.
|
||||
*
|
||||
* Revision 1.2 1999/01/22 04:13:25 jprice
|
||||
* Formating
|
||||
*
|
||||
* Revision 1.1.1.1 1999/01/20 05:51:01 jprice
|
||||
* Imported sources
|
||||
*
|
||||
*
|
||||
* Rev 1.6 22 Jan 1998 4:09:24 patv
|
||||
* Fixed pointer problems affecting SDA
|
||||
*
|
||||
* Rev 1.5 04 Jan 1998 23:15:18 patv
|
||||
* Changed Log for strip utility
|
||||
*
|
||||
* Rev 1.4 04 Jan 1998 17:26:14 patv
|
||||
* Corrected subdirectory bug
|
||||
*
|
||||
* Rev 1.3 16 Jan 1997 12:46:50 patv
|
||||
* pre-Release 0.92 feature additions
|
||||
*
|
||||
* Rev 1.1 29 May 1996 21:03:44 patv
|
||||
* bug fixes for v0.91a
|
||||
*
|
||||
* Rev 1.0 19 Feb 1996 3:22:16 patv
|
||||
* Added NLS, int2f and config.sys processing
|
||||
*/
|
||||
|
||||
|
@ -26,55 +26,6 @@
|
||||
; Cambridge, MA 02139, USA.
|
||||
;
|
||||
; $Header$
|
||||
;
|
||||
; $Log$
|
||||
; Revision 1.7 2001/07/09 22:19:33 bartoldeman
|
||||
; LBA/FCB/FAT/SYS/Ctrl-C/ioctl fixes + memory savings
|
||||
;
|
||||
; Revision 1.6 2001/04/15 03:21:50 bartoldeman
|
||||
; See history.txt for the list of fixes.
|
||||
;
|
||||
; Revision 1.5 2001/03/21 02:56:25 bartoldeman
|
||||
; See history.txt for changes. Bug fixes and HMA support are the main ones.
|
||||
;
|
||||
; Revision 1.4 2000/05/26 19:25:19 jimtabor
|
||||
; Read History file for Change info
|
||||
;
|
||||
; Revision 1.3 2000/05/25 20:56:21 jimtabor
|
||||
; Fixed project history
|
||||
;
|
||||
; Revision 1.2 2000/05/08 04:29:59 jimtabor
|
||||
; Update CVS to 2020
|
||||
;
|
||||
; Revision 1.1.1.1 2000/05/06 19:34:53 jhall1
|
||||
; The FreeDOS Kernel. A DOS kernel that aims to be 100% compatible with
|
||||
; MS-DOS. Distributed under the GNU GPL.
|
||||
;
|
||||
; Revision 1.8 2000/03/09 06:07:10 kernel
|
||||
; 2017f updates by James Tabor
|
||||
;
|
||||
; Revision 1.7 1999/09/23 04:40:46 jprice
|
||||
; *** empty log message ***
|
||||
;
|
||||
; Revision 1.5 1999/09/14 16:31:38 jprice
|
||||
; no message
|
||||
;
|
||||
; Revision 1.4 1999/09/13 22:16:14 jprice
|
||||
; Fix 210B function
|
||||
;
|
||||
; Revision 1.3 1999/09/13 21:00:19 jprice
|
||||
; Changes from Helmut Fritsch to fix INT21 func B
|
||||
;
|
||||
; Revision 1.2 1999/08/10 17:57:12 jprice
|
||||
; ror4 2011-02 patch
|
||||
;
|
||||
; Revision 1.1.1.1 1999/03/29 15:40:47 jprice
|
||||
; New version without IPL.SYS
|
||||
;
|
||||
; Revision 1.1 1999/02/08 05:55:57 jprice
|
||||
; Added Pat's 1937 kernel patches
|
||||
;
|
||||
; $EndLog$
|
||||
;
|
||||
|
||||
%include "io.inc"
|
||||
@ -296,3 +247,31 @@ ConNoChar:
|
||||
jmp _IODone ; no key ready (busy=1)
|
||||
|
||||
|
||||
; Log: console.asm,v
|
||||
;
|
||||
; Revision 1.8 2000/03/09 06:07:10 kernel
|
||||
; 2017f updates by James Tabor
|
||||
;
|
||||
; Revision 1.7 1999/09/23 04:40:46 jprice
|
||||
; *** empty log message ***
|
||||
;
|
||||
; Revision 1.5 1999/09/14 16:31:38 jprice
|
||||
; no message
|
||||
;
|
||||
; Revision 1.4 1999/09/13 22:16:14 jprice
|
||||
; Fix 210B function
|
||||
;
|
||||
; Revision 1.3 1999/09/13 21:00:19 jprice
|
||||
; Changes from Helmut Fritsch to fix INT21 func B
|
||||
;
|
||||
; Revision 1.2 1999/08/10 17:57:12 jprice
|
||||
; ror4 2011-02 patch
|
||||
;
|
||||
; Revision 1.1.1.1 1999/03/29 15:40:47 jprice
|
||||
; New version without IPL.SYS
|
||||
;
|
||||
; Revision 1.1 1999/02/08 05:55:57 jprice
|
||||
; Added Pat's 1937 kernel patches
|
||||
;
|
||||
; EndLog
|
||||
;
|
||||
|
273
kernel/dosfns.c
273
kernel/dosfns.c
@ -32,181 +32,6 @@
|
||||
static BYTE *dosfnsRcsId = "$Id$";
|
||||
#endif
|
||||
|
||||
/*
|
||||
*
|
||||
* /// Added SHARE support. 2000/09/04 Ron Cemer
|
||||
*
|
||||
* $Log$
|
||||
* Revision 1.30 2001/11/13 23:36:45 bartoldeman
|
||||
* Kernel 2025a final changes.
|
||||
*
|
||||
* Revision 1.29 2001/11/04 19:47:39 bartoldeman
|
||||
* kernel 2025a changes: see history.txt
|
||||
*
|
||||
* Revision 1.28 2001/09/26 01:06:05 bartoldeman
|
||||
* Change dir gives error for path too long, 2025 without test.
|
||||
*
|
||||
* Revision 1.26 2001/09/23 20:39:44 bartoldeman
|
||||
* FAT32 support, misc fixes, INT2F/AH=12 support, drive B: handling
|
||||
*
|
||||
* Revision 1.25 2001/08/20 20:32:15 bartoldeman
|
||||
* Truename, get free space and ctrl-break fixes.
|
||||
*
|
||||
* Revision 1.24 2001/08/19 12:58:36 bartoldeman
|
||||
* Time and date fixes, Ctrl-S/P, findfirst/next, FCBs, buffers, tsr unloading
|
||||
*
|
||||
* Revision 1.23 2001/07/28 18:13:06 bartoldeman
|
||||
* Fixes for FORMAT+SYS, FATFS, get current dir, kernel init memory situation.
|
||||
*
|
||||
* Revision 1.22 2001/07/24 16:56:29 bartoldeman
|
||||
* fixes for FCBs, DJGPP ls, DBLBYTE, dyninit allocation (2024e).
|
||||
*
|
||||
* Revision 1.21 2001/07/23 12:47:42 bartoldeman
|
||||
* FCB fixes and clean-ups, exec int21/ax=4b01, initdisk.c printf
|
||||
*
|
||||
* Revision 1.20 2001/07/22 01:58:58 bartoldeman
|
||||
* Support for Brian's FORMAT, DJGPP libc compilation, cleanups, MSCDEX
|
||||
*
|
||||
* Revision 1.19 2001/07/09 22:19:33 bartoldeman
|
||||
* LBA/FCB/FAT/SYS/Ctrl-C/ioctl fixes + memory savings
|
||||
*
|
||||
* Revision 1.18 2001/06/03 14:16:17 bartoldeman
|
||||
* BUFFERS tuning and misc bug fixes/cleanups (2024c).
|
||||
*
|
||||
* Revision 1.17 2001/04/29 17:34:40 bartoldeman
|
||||
* A new SYS.COM/config.sys single stepping/console output/misc fixes.
|
||||
*
|
||||
* Revision 1.16 2001/04/21 22:32:53 bartoldeman
|
||||
* Init DS=Init CS, fixed stack overflow problems and misc bugs.
|
||||
*
|
||||
* Revision 1.15 2001/04/15 03:21:50 bartoldeman
|
||||
* See history.txt for the list of fixes.
|
||||
*
|
||||
* Revision 1.14 2001/04/02 23:18:30 bartoldeman
|
||||
* Misc, zero terminated device names and redirector bugs fixed.
|
||||
*
|
||||
* Revision 1.13 2001/03/30 22:27:42 bartoldeman
|
||||
* Saner lastdrive handling.
|
||||
*
|
||||
* Revision 1.12 2001/03/30 19:30:06 bartoldeman
|
||||
* Misc fixes and implementation of SHELLHIGH. See history.txt for details.
|
||||
*
|
||||
* Revision 1.11 2001/03/21 02:56:25 bartoldeman
|
||||
* See history.txt for changes. Bug fixes and HMA support are the main ones.
|
||||
*
|
||||
* Revision 1.10 2001/03/08 21:15:00 bartoldeman
|
||||
* Redirector and DosSelectDrv() (Martin Stromberg) fixes
|
||||
*
|
||||
* Revision 1.9 2000/10/29 23:51:56 jimtabor
|
||||
* Adding Share Support by Ron Cemer
|
||||
*
|
||||
* Revision 1.8 2000/08/06 05:50:17 jimtabor
|
||||
* Add new files and update cvs with patches and changes
|
||||
*
|
||||
* Revision 1.7 2000/06/21 18:16:46 jimtabor
|
||||
* Add UMB code, patch, and code fixes
|
||||
*
|
||||
* Revision 1.6 2000/06/01 06:37:38 jimtabor
|
||||
* Read History for Changes
|
||||
*
|
||||
* Revision 1.5 2000/05/26 19:25:19 jimtabor
|
||||
* Read History file for Change info
|
||||
*
|
||||
* Revision 1.4 2000/05/25 20:56:21 jimtabor
|
||||
* Fixed project history
|
||||
*
|
||||
* Revision 1.3 2000/05/17 19:15:12 jimtabor
|
||||
* Cleanup, add and fix source.
|
||||
*
|
||||
* Revision 1.2 2000/05/08 04:29:59 jimtabor
|
||||
* Update CVS to 2020
|
||||
*
|
||||
* Revision 1.1.1.1 2000/05/06 19:34:53 jhall1
|
||||
* The FreeDOS Kernel. A DOS kernel that aims to be 100% compatible with
|
||||
* MS-DOS. Distributed under the GNU GPL.
|
||||
*
|
||||
* Revision 1.14 2000/04/02 05:01:08 jtabor
|
||||
* Replaced ChgDir Code
|
||||
*
|
||||
* Revision 1.13 2000/04/02 04:53:56 jtabor
|
||||
* Fix to DosChgDir
|
||||
*
|
||||
* Revision 1.12 2000/03/31 05:40:09 jtabor
|
||||
* Added Eric W. Biederman Patches
|
||||
*
|
||||
* Revision 1.11 2000/03/09 06:07:11 kernel
|
||||
* 2017f updates by James Tabor
|
||||
*
|
||||
* Revision 1.10 1999/09/23 04:40:46 jprice
|
||||
* *** empty log message ***
|
||||
*
|
||||
* Revision 1.8 1999/09/14 01:01:53 jprice
|
||||
* Fixed bug where you could write over directories.
|
||||
*
|
||||
* Revision 1.7 1999/08/25 03:18:07 jprice
|
||||
* ror4 patches to allow TC 2.01 compile.
|
||||
*
|
||||
* Revision 1.6 1999/05/03 06:25:45 jprice
|
||||
* Patches from ror4 and many changed of signed to unsigned variables.
|
||||
*
|
||||
* Revision 1.5 1999/04/16 12:21:22 jprice
|
||||
* Steffen c-break handler changes
|
||||
*
|
||||
* Revision 1.4 1999/04/12 03:21:17 jprice
|
||||
* more ror4 patches. Changes for multi-block IO
|
||||
*
|
||||
* Revision 1.3 1999/04/11 04:33:38 jprice
|
||||
* ror4 patches
|
||||
*
|
||||
* Revision 1.2 1999/04/04 18:51:43 jprice
|
||||
* no message
|
||||
*
|
||||
* Revision 1.1.1.1 1999/03/29 15:41:52 jprice
|
||||
* New version without IPL.SYS
|
||||
*
|
||||
* Revision 1.4 1999/02/09 02:54:23 jprice
|
||||
* Added Pat's 1937 kernel patches
|
||||
*
|
||||
* Revision 1.3 1999/02/01 01:43:28 jprice
|
||||
* Fixed findfirst function to find volume label with Windows long filenames
|
||||
*
|
||||
* Revision 1.2 1999/01/22 04:15:28 jprice
|
||||
* Formating
|
||||
*
|
||||
* Revision 1.1.1.1 1999/01/20 05:51:00 jprice
|
||||
* Imported sources
|
||||
*
|
||||
* Rev 1.10 06 Dec 1998 8:44:42 patv
|
||||
* Expanded dos functions due to new I/O subsystem.
|
||||
*
|
||||
* Rev 1.9 04 Jan 1998 23:14:38 patv
|
||||
* Changed Log for strip utility
|
||||
*
|
||||
* Rev 1.8 03 Jan 1998 8:36:04 patv
|
||||
* Converted data area to SDA format
|
||||
*
|
||||
* Rev 1.7 22 Jan 1997 12:59:56 patv
|
||||
* pre-0.92 bug fixes
|
||||
*
|
||||
* Rev 1.6 16 Jan 1997 12:46:32 patv
|
||||
* pre-Release 0.92 feature additions
|
||||
*
|
||||
* Rev 1.5 29 May 1996 21:15:20 patv
|
||||
* bug fixes for v0.91a
|
||||
*
|
||||
* Rev 1.4 19 Feb 1996 3:20:08 patv
|
||||
* Added NLS, int2f and config.sys processing
|
||||
*
|
||||
* Rev 1.2 01 Sep 1995 17:48:48 patv
|
||||
* First GPL release.
|
||||
*
|
||||
* Rev 1.1 30 Jul 1995 20:50:24 patv
|
||||
* Eliminated version strings in ipl
|
||||
*
|
||||
* Rev 1.0 02 Jul 1995 8:04:20 patv
|
||||
* Initial revision.
|
||||
*/
|
||||
|
||||
#include "globals.h"
|
||||
|
||||
COUNT get_free_hndl(VOID);
|
||||
@ -304,8 +129,8 @@ static VOID DosGetFile(BYTE * lpszPath, BYTE FAR * lpszDosFileName)
|
||||
szLclName, szLclExt, FALSE);
|
||||
SpacePad(szLclName, FNAME_SIZE);
|
||||
SpacePad(szLclExt, FEXT_SIZE);
|
||||
fbcopy((BYTE FAR *) szLclName, lpszDosFileName, FNAME_SIZE);
|
||||
fbcopy((BYTE FAR *) szLclExt, &lpszDosFileName[FNAME_SIZE], FEXT_SIZE);
|
||||
fmemcpy(lpszDosFileName, (BYTE FAR *) szLclName, FNAME_SIZE);
|
||||
fmemcpy(&lpszDosFileName[FNAME_SIZE], (BYTE FAR *) szLclExt, FEXT_SIZE);
|
||||
}
|
||||
|
||||
sft FAR *idx_to_sft(COUNT SftIndex)
|
||||
@ -432,7 +257,7 @@ UCOUNT GenericReadSft(sft FAR *s, UCOUNT n, BYTE FAR * bp, COUNT FAR * err,
|
||||
ReadCount = sti(&kb_buf);
|
||||
if (ReadCount < kb_buf.kb_count)
|
||||
s->sft_flags &= ~SFT_FEOF;
|
||||
fbcopy((BYTE FAR *) kb_buf.kb_buf, bp, kb_buf.kb_count);
|
||||
fmemcpy(bp, (BYTE FAR *) kb_buf.kb_buf, kb_buf.kb_count);
|
||||
*err = SUCCESS;
|
||||
return ReadCount;
|
||||
}
|
||||
@ -849,7 +674,7 @@ COUNT DosCreatSft(BYTE * fname, COUNT attrib)
|
||||
sftp->sft_count += 1;
|
||||
sftp->sft_flags =
|
||||
((dhp->dh_attr & ~SFT_MASK) & ~SFT_FSHARED) | SFT_FDEVICE | SFT_FEOF;
|
||||
fbcopy((BYTE FAR *) SecPathName, sftp->sft_name, FNAME_SIZE + FEXT_SIZE);
|
||||
fmemcpy(sftp->sft_name, (BYTE FAR *) SecPathName, FNAME_SIZE + FEXT_SIZE);
|
||||
sftp->sft_dev = dhp;
|
||||
return sft_idx;
|
||||
}
|
||||
@ -1034,7 +859,7 @@ COUNT DosOpenSft(BYTE * fname, COUNT mode)
|
||||
sftp->sft_count += 1;
|
||||
sftp->sft_flags =
|
||||
((dhp->dh_attr & ~SFT_MASK) & ~SFT_FSHARED) | SFT_FDEVICE | SFT_FEOF;
|
||||
fbcopy((BYTE FAR *) SecPathName, sftp->sft_name, FNAME_SIZE + FEXT_SIZE);
|
||||
fmemcpy(sftp->sft_name, (BYTE FAR *) SecPathName, FNAME_SIZE + FEXT_SIZE);
|
||||
sftp->sft_dev = dhp;
|
||||
sftp->sft_date = dos_getdate();
|
||||
sftp->sft_time = dos_gettime();
|
||||
@ -1993,3 +1818,91 @@ static int share_lock_unlock
|
||||
|
||||
/* /// End of additions for SHARE. - Ron Cemer */
|
||||
|
||||
/*
|
||||
*
|
||||
* /// Added SHARE support. 2000/09/04 Ron Cemer
|
||||
*
|
||||
* Log: dosfns.c,v - for newer log entries do a "cvs log dosfns.c"
|
||||
*
|
||||
* Revision 1.14 2000/04/02 05:01:08 jtabor
|
||||
* Replaced ChgDir Code
|
||||
*
|
||||
* Revision 1.13 2000/04/02 04:53:56 jtabor
|
||||
* Fix to DosChgDir
|
||||
*
|
||||
* Revision 1.12 2000/03/31 05:40:09 jtabor
|
||||
* Added Eric W. Biederman Patches
|
||||
*
|
||||
* Revision 1.11 2000/03/09 06:07:11 kernel
|
||||
* 2017f updates by James Tabor
|
||||
*
|
||||
* Revision 1.10 1999/09/23 04:40:46 jprice
|
||||
* *** empty log message ***
|
||||
*
|
||||
* Revision 1.8 1999/09/14 01:01:53 jprice
|
||||
* Fixed bug where you could write over directories.
|
||||
*
|
||||
* Revision 1.7 1999/08/25 03:18:07 jprice
|
||||
* ror4 patches to allow TC 2.01 compile.
|
||||
*
|
||||
* Revision 1.6 1999/05/03 06:25:45 jprice
|
||||
* Patches from ror4 and many changed of signed to unsigned variables.
|
||||
*
|
||||
* Revision 1.5 1999/04/16 12:21:22 jprice
|
||||
* Steffen c-break handler changes
|
||||
*
|
||||
* Revision 1.4 1999/04/12 03:21:17 jprice
|
||||
* more ror4 patches. Changes for multi-block IO
|
||||
*
|
||||
* Revision 1.3 1999/04/11 04:33:38 jprice
|
||||
* ror4 patches
|
||||
*
|
||||
* Revision 1.2 1999/04/04 18:51:43 jprice
|
||||
* no message
|
||||
*
|
||||
* Revision 1.1.1.1 1999/03/29 15:41:52 jprice
|
||||
* New version without IPL.SYS
|
||||
*
|
||||
* Revision 1.4 1999/02/09 02:54:23 jprice
|
||||
* Added Pat's 1937 kernel patches
|
||||
*
|
||||
* Revision 1.3 1999/02/01 01:43:28 jprice
|
||||
* Fixed findfirst function to find volume label with Windows long filenames
|
||||
*
|
||||
* Revision 1.2 1999/01/22 04:15:28 jprice
|
||||
* Formating
|
||||
*
|
||||
* Revision 1.1.1.1 1999/01/20 05:51:00 jprice
|
||||
* Imported sources
|
||||
*
|
||||
* Rev 1.10 06 Dec 1998 8:44:42 patv
|
||||
* Expanded dos functions due to new I/O subsystem.
|
||||
*
|
||||
* Rev 1.9 04 Jan 1998 23:14:38 patv
|
||||
* Changed Log for strip utility
|
||||
*
|
||||
* Rev 1.8 03 Jan 1998 8:36:04 patv
|
||||
* Converted data area to SDA format
|
||||
*
|
||||
* Rev 1.7 22 Jan 1997 12:59:56 patv
|
||||
* pre-0.92 bug fixes
|
||||
*
|
||||
* Rev 1.6 16 Jan 1997 12:46:32 patv
|
||||
* pre-Release 0.92 feature additions
|
||||
*
|
||||
* Rev 1.5 29 May 1996 21:15:20 patv
|
||||
* bug fixes for v0.91a
|
||||
*
|
||||
* Rev 1.4 19 Feb 1996 3:20:08 patv
|
||||
* Added NLS, int2f and config.sys processing
|
||||
*
|
||||
* Rev 1.2 01 Sep 1995 17:48:48 patv
|
||||
* First GPL release.
|
||||
*
|
||||
* Rev 1.1 30 Jul 1995 20:50:24 patv
|
||||
* Eliminated version strings in ipl
|
||||
*
|
||||
* Rev 1.0 02 Jul 1995 8:04:20 patv
|
||||
* Initial revision.
|
||||
*/
|
||||
|
||||
|
@ -34,109 +34,15 @@
|
||||
static BYTE *dosnamesRcsId = "$Id$";
|
||||
#endif
|
||||
|
||||
/*
|
||||
* $Log$
|
||||
* Revision 1.12 2001/11/04 19:47:39 bartoldeman
|
||||
* kernel 2025a changes: see history.txt
|
||||
*
|
||||
* Revision 1.11 2001/07/24 16:56:29 bartoldeman
|
||||
* fixes for FCBs, DJGPP ls, DBLBYTE, dyninit allocation (2024e).
|
||||
*
|
||||
* Revision 1.10 2001/07/22 01:58:58 bartoldeman
|
||||
* Support for Brian's FORMAT, DJGPP libc compilation, cleanups, MSCDEX
|
||||
*
|
||||
* Revision 1.9 2001/06/03 14:16:17 bartoldeman
|
||||
* BUFFERS tuning and misc bug fixes/cleanups (2024c).
|
||||
*
|
||||
* Revision 1.8 2001/04/15 03:21:50 bartoldeman
|
||||
* See history.txt for the list of fixes.
|
||||
*
|
||||
* Revision 1.7 2001/03/21 02:56:25 bartoldeman
|
||||
* See history.txt for changes. Bug fixes and HMA support are the main ones.
|
||||
*
|
||||
* Revision 1.6 2000/06/21 18:16:46 jimtabor
|
||||
* Add UMB code, patch, and code fixes
|
||||
*
|
||||
* Revision 1.5 2000/06/01 06:37:38 jimtabor
|
||||
* Read History for Changes
|
||||
*
|
||||
* Revision 1.4 2000/05/26 19:25:19 jimtabor
|
||||
* Read History file for Change info
|
||||
*
|
||||
* Revision 1.3 2000/05/25 20:56:21 jimtabor
|
||||
* Fixed project history
|
||||
*
|
||||
* Revision 1.2 2000/05/08 04:29:59 jimtabor
|
||||
* Update CVS to 2020
|
||||
*
|
||||
* Revision 1.1.1.1 2000/05/06 19:34:53 jhall1
|
||||
* The FreeDOS Kernel. A DOS kernel that aims to be 100% compatible with
|
||||
* MS-DOS. Distributed under the GNU GPL.
|
||||
*
|
||||
* Revision 1.2 2000/05/08 04:29:59 jimtabor
|
||||
* Update CVS to 2020
|
||||
*
|
||||
* Revision 1.4 2000/03/31 05:40:09 jtabor
|
||||
* Added Eric W. Biederman Patches
|
||||
*
|
||||
* Revision 1.3 2000/03/09 06:07:11 kernel
|
||||
* 2017f updates by James Tabor
|
||||
*
|
||||
* Revision 1.2 1999/04/04 18:51:43 jprice
|
||||
* no message
|
||||
*
|
||||
* Revision 1.1.1.1 1999/03/29 15:41:54 jprice
|
||||
* New version without IPL.SYS
|
||||
*
|
||||
* Revision 1.4 1999/02/02 04:40:49 jprice
|
||||
* Steve Miller fixed a bug with doing "cd ." would lock the machine.
|
||||
*
|
||||
* Revision 1.3 1999/02/01 01:43:28 jprice
|
||||
* Fixed findfirst function to find volume label with Windows long filenames
|
||||
*
|
||||
* Revision 1.2 1999/01/22 04:15:28 jprice
|
||||
* Formating
|
||||
*
|
||||
* Revision 1.1.1.1 1999/01/20 05:51:00 jprice
|
||||
* Imported sources
|
||||
*
|
||||
*
|
||||
* Rev 1.8 22 Jan 1998 4:09:00 patv
|
||||
* Fixed pointer problems affecting SDA
|
||||
*
|
||||
* Rev 1.7 04 Jan 1998 23:14:38 patv
|
||||
* Changed Log for strip utility
|
||||
*
|
||||
* Rev 1.6 03 Jan 1998 8:36:04 patv
|
||||
* Converted data area to SDA format
|
||||
*
|
||||
* Rev 1.5 16 Jan 1997 12:46:36 patv
|
||||
* pre-Release 0.92 feature additions
|
||||
*
|
||||
* Rev 1.4 29 May 1996 21:15:12 patv
|
||||
* bug fixes for v0.91a
|
||||
*
|
||||
* Rev 1.3 19 Feb 1996 3:20:08 patv
|
||||
* Added NLS, int2f and config.sys processing
|
||||
*
|
||||
* Rev 1.2 01 Sep 1995 17:48:44 patv
|
||||
* First GPL release.
|
||||
*
|
||||
* Rev 1.1 30 Jul 1995 20:50:26 patv
|
||||
* Eliminated version strings in ipl
|
||||
*
|
||||
* Rev 1.0 02 Jul 1995 8:05:56 patv
|
||||
* Initial revision.
|
||||
*
|
||||
*/
|
||||
|
||||
#include "globals.h"
|
||||
|
||||
char _DirWildNameChars[] = "*?./\\\"[]:|<>+=;,";
|
||||
|
||||
#define PathSep(c) ((c)=='/'||(c)=='\\')
|
||||
#define DriveChar(c) (((c)>='A'&&(c)<='Z')||((c)>='a'&&(c)<='z'))
|
||||
#define DirChar(c) (!strchr("\"[]:|<>+=;,", (c)))
|
||||
#define NameChar(c) (!strchr(".\"/\\[]:|<>+=;,*?", (c)))
|
||||
#define WildChar(c) (!strchr(".\"/\\[]:|<>+=;,", (c)))
|
||||
#define DirChar(c) (!strchr(_DirWildNameChars+5, (c)))
|
||||
#define WildChar(c) (!strchr(_DirWildNameChars+2, (c)))
|
||||
#define NameChar(c) (!strchr(_DirWildNameChars, (c)))
|
||||
|
||||
VOID XlateLcase(BYTE * szFname, COUNT nChars);
|
||||
VOID DosTrimPath(BYTE * lpszPathNamep);
|
||||
@ -357,7 +263,7 @@ COUNT ParseDosPath(BYTE * lpszFileName,
|
||||
/* buffers. */
|
||||
if (pszDir)
|
||||
{
|
||||
bcopy(lpszLclDir, pszDir, nDirCnt);
|
||||
memcpy(pszDir, lpszLclDir, nDirCnt);
|
||||
pszDir[nDirCnt] = '\0';
|
||||
}
|
||||
|
||||
@ -495,3 +401,63 @@ VOID DosTrimPath(BYTE * lpszPathNamep)
|
||||
}
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Log: dosnames.c,v - for newer log entries do "cvs log dosnames.c"
|
||||
*
|
||||
* Revision 1.2 2000/05/08 04:29:59 jimtabor
|
||||
* Update CVS to 2020
|
||||
*
|
||||
* Revision 1.4 2000/03/31 05:40:09 jtabor
|
||||
* Added Eric W. Biederman Patches
|
||||
*
|
||||
* Revision 1.3 2000/03/09 06:07:11 kernel
|
||||
* 2017f updates by James Tabor
|
||||
*
|
||||
* Revision 1.2 1999/04/04 18:51:43 jprice
|
||||
* no message
|
||||
*
|
||||
* Revision 1.1.1.1 1999/03/29 15:41:54 jprice
|
||||
* New version without IPL.SYS
|
||||
*
|
||||
* Revision 1.4 1999/02/02 04:40:49 jprice
|
||||
* Steve Miller fixed a bug with doing "cd ." would lock the machine.
|
||||
*
|
||||
* Revision 1.3 1999/02/01 01:43:28 jprice
|
||||
* Fixed findfirst function to find volume label with Windows long filenames
|
||||
*
|
||||
* Revision 1.2 1999/01/22 04:15:28 jprice
|
||||
* Formating
|
||||
*
|
||||
* Revision 1.1.1.1 1999/01/20 05:51:00 jprice
|
||||
* Imported sources
|
||||
*
|
||||
*
|
||||
* Rev 1.8 22 Jan 1998 4:09:00 patv
|
||||
* Fixed pointer problems affecting SDA
|
||||
*
|
||||
* Rev 1.7 04 Jan 1998 23:14:38 patv
|
||||
* Changed Log for strip utility
|
||||
*
|
||||
* Rev 1.6 03 Jan 1998 8:36:04 patv
|
||||
* Converted data area to SDA format
|
||||
*
|
||||
* Rev 1.5 16 Jan 1997 12:46:36 patv
|
||||
* pre-Release 0.92 feature additions
|
||||
*
|
||||
* Rev 1.4 29 May 1996 21:15:12 patv
|
||||
* bug fixes for v0.91a
|
||||
*
|
||||
* Rev 1.3 19 Feb 1996 3:20:08 patv
|
||||
* Added NLS, int2f and config.sys processing
|
||||
*
|
||||
* Rev 1.2 01 Sep 1995 17:48:44 patv
|
||||
* First GPL release.
|
||||
*
|
||||
* Rev 1.1 30 Jul 1995 20:50:26 patv
|
||||
* Eliminated version strings in ipl
|
||||
*
|
||||
* Rev 1.0 02 Jul 1995 8:05:56 patv
|
||||
* Initial revision.
|
||||
*
|
||||
*/
|
||||
|
||||
|
252
kernel/dsk.c
252
kernel/dsk.c
@ -32,136 +32,6 @@
|
||||
static BYTE *dskRcsId = "$Id$";
|
||||
#endif
|
||||
|
||||
/*
|
||||
* $Log$
|
||||
* Revision 1.22 2001/11/13 23:36:45 bartoldeman
|
||||
* Kernel 2025a final changes.
|
||||
*
|
||||
* Revision 1.21 2001/11/04 19:47:39 bartoldeman
|
||||
* kernel 2025a changes: see history.txt
|
||||
*
|
||||
* Revision 1.20 2001/09/23 20:39:44 bartoldeman
|
||||
* FAT32 support, misc fixes, INT2F/AH=12 support, drive B: handling
|
||||
*
|
||||
* Revision 1.19 2001/07/28 18:13:06 bartoldeman
|
||||
* Fixes for FORMAT+SYS, FATFS, get current dir, kernel init memory situation.
|
||||
*
|
||||
* Revision 1.18 2001/07/22 01:58:58 bartoldeman
|
||||
* Support for Brian's FORMAT, DJGPP libc compilation, cleanups, MSCDEX
|
||||
*
|
||||
* Revision 1.17 2001/07/09 22:19:33 bartoldeman
|
||||
* LBA/FCB/FAT/SYS/Ctrl-C/ioctl fixes + memory savings
|
||||
*
|
||||
* Revision 1.17 2001/05/13 tomehlert
|
||||
* Added full support for LBA hard drives
|
||||
* initcode moved (mostly) to initdisk.c
|
||||
* lower interface partly redesigned
|
||||
*
|
||||
* Revision 1.16 2001/04/29 brianreifsnyder
|
||||
* Added phase 1 support for LBA hard drives
|
||||
*
|
||||
* Revision 1.15 2001/04/16 01:45:26 bartoldeman
|
||||
* Fixed handles, config.sys drivers, warnings. Enabled INT21/AH=6C, printf %S/%Fs
|
||||
*
|
||||
* Revision 1.14 2001/04/15 03:21:50 bartoldeman
|
||||
* See history.txt for the list of fixes.
|
||||
*
|
||||
* Revision 1.13 2001/03/27 20:27:43 bartoldeman
|
||||
* dsk.c (reported by Nagy Daniel), inthndlr and int25/26 fixes by Tom Ehlert.
|
||||
*
|
||||
* Revision 1.12 2001/03/24 22:13:05 bartoldeman
|
||||
* See history.txt: dsk.c changes, warning removal and int21 entry handling.
|
||||
*
|
||||
* Revision 1.11 2001/03/21 02:56:25 bartoldeman
|
||||
* See history.txt for changes. Bug fixes and HMA support are the main ones.
|
||||
*
|
||||
* Revision 1.9 2001/03/08 21:15:00 bartoldeman
|
||||
* Space saving fixes from Tom Ehlert
|
||||
*
|
||||
* Revision 1.8 2000/06/21 18:16:46 jimtabor
|
||||
* Add UMB code, patch, and code fixes
|
||||
*
|
||||
* Revision 1.7 2000/06/01 06:37:38 jimtabor
|
||||
* Read History for Changes
|
||||
*
|
||||
* Revision 1.6 2000/05/26 19:25:19 jimtabor
|
||||
* Read History file for Change info
|
||||
*
|
||||
* Revision 1.5 2000/05/25 20:56:21 jimtabor
|
||||
* Fixed project history
|
||||
*
|
||||
* Revision 1.4 2000/05/17 19:15:12 jimtabor
|
||||
* Cleanup, add and fix source.
|
||||
*
|
||||
* Revision 1.3 2000/05/11 04:26:26 jimtabor
|
||||
* Added code for DOS FN 69 & 6C
|
||||
*
|
||||
* Revision 1.2 2000/05/08 04:29:59 jimtabor
|
||||
* Update CVS to 2020
|
||||
*
|
||||
* Revision 1.1.1.1 2000/05/06 19:34:53 jhall1
|
||||
* The FreeDOS Kernel. A DOS kernel that aims to be 100% compatible with
|
||||
* MS-DOS. Distributed under the GNU GPL.
|
||||
*
|
||||
* Revision 1.6 2000/04/29 05:13:16 jtabor
|
||||
* Added new functions and clean up code
|
||||
*
|
||||
* Revision 1.5 2000/03/09 06:07:11 kernel
|
||||
* 2017f updates by James Tabor
|
||||
*
|
||||
* Revision 1.4 1999/08/10 18:07:57 jprice
|
||||
* ror4 2011-04 patch
|
||||
*
|
||||
* Revision 1.3 1999/04/16 21:43:40 jprice
|
||||
* ror4 multi-sector IO
|
||||
*
|
||||
* Revision 1.2 1999/04/16 00:53:32 jprice
|
||||
* Optimized FAT handling
|
||||
*
|
||||
* Revision 1.1.1.1 1999/03/29 15:40:51 jprice
|
||||
* New version without IPL.SYS
|
||||
*
|
||||
* Revision 1.5 1999/02/14 04:26:46 jprice
|
||||
* Changed check media so that it checks if a floppy disk has been changed.
|
||||
*
|
||||
* Revision 1.4 1999/02/08 05:55:57 jprice
|
||||
* Added Pat's 1937 kernel patches
|
||||
*
|
||||
* Revision 1.3 1999/02/01 01:48:41 jprice
|
||||
* Clean up; Now you can use hex numbers in config.sys. added config.sys screen function to change screen mode (28 or 43/50 lines)
|
||||
*
|
||||
* Revision 1.2 1999/01/22 04:13:25 jprice
|
||||
* Formating
|
||||
*
|
||||
* Revision 1.1.1.1 1999/01/20 05:51:01 jprice
|
||||
* Imported sources
|
||||
*
|
||||
*
|
||||
* Rev 1.7 06 Dec 1998 8:45:18 patv
|
||||
* Changed due to new I/O subsystem.
|
||||
*
|
||||
* Rev 1.6 04 Jan 1998 23:15:16 patv
|
||||
* Changed Log for strip utility
|
||||
*
|
||||
* Rev 1.5 10 Jan 1997 5:41:48 patv
|
||||
* Modified for extended partition support
|
||||
*
|
||||
* Rev 1.4 29 May 1996 21:03:32 patv
|
||||
* bug fixes for v0.91a
|
||||
*
|
||||
* Rev 1.3 19 Feb 1996 3:21:36 patv
|
||||
* Added NLS, int2f and config.sys processing
|
||||
*
|
||||
* Rev 1.2 01 Sep 1995 17:54:18 patv
|
||||
* First GPL release.
|
||||
*
|
||||
* Rev 1.1 30 Jul 1995 20:52:00 patv
|
||||
* Eliminated version strings in ipl
|
||||
*
|
||||
* Rev 1.0 02 Jul 1995 8:32:42 patv
|
||||
* Initial revision.
|
||||
*/
|
||||
|
||||
#if defined(DEBUG)
|
||||
#define DebugPrintf(x) printf x
|
||||
#else
|
||||
@ -508,22 +378,22 @@ static WORD blk_Media(rqptr rp, ddt *pddt)
|
||||
return S_DONE; /* Floppy */
|
||||
}
|
||||
|
||||
static getbpb(ddt *pddt)
|
||||
static WORD getbpb(ddt *pddt)
|
||||
{
|
||||
ULONG count;
|
||||
bpb *pbpbarray = &pddt->ddt_bpb;
|
||||
WORD head,/*track,*/sector,ret;
|
||||
|
||||
ret = RWzero(pddt, LBA_READ);
|
||||
getword(&((((BYTE *) & DiskTransferBuffer[BT_BPB]))[0]), &pbpbarray->bpb_nbyte);
|
||||
|
||||
pddt->ddt_descflags |= DF_NOACCESS; /* set drive to not accessible and changed */
|
||||
if (diskchange(pddt) != M_NOT_CHANGED)
|
||||
pddt->ddt_descflags |= DF_DISKCHANGE;
|
||||
|
||||
ret = RWzero(pddt, LBA_READ);
|
||||
if (ret != 0)
|
||||
return (dskerr(ret));
|
||||
|
||||
getword(&((((BYTE *) & DiskTransferBuffer[BT_BPB]))[0]), &pbpbarray->bpb_nbyte);
|
||||
|
||||
if (DiskTransferBuffer[0x1fe]!=0x55 || DiskTransferBuffer[0x1ff]!=0xaa ||
|
||||
pbpbarray->bpb_nbyte != 512) {
|
||||
/* copy default bpb to be sure that there is no bogus data */
|
||||
@ -1196,3 +1066,117 @@ int LBA_Transfer(ddt *pddt ,UWORD mode, VOID FAR *buffer,
|
||||
|
||||
return(error_code);
|
||||
}
|
||||
|
||||
/*
|
||||
* Revision 1.17 2001/05/13 tomehlert
|
||||
* Added full support for LBA hard drives
|
||||
* initcode moved (mostly) to initdisk.c
|
||||
* lower interface partly redesigned
|
||||
*/
|
||||
|
||||
/* Log: dsk.c,v - for newer log entries: "cvs log dsk.c"
|
||||
*
|
||||
* Revision 1.16 2001/04/29 brianreifsnyder
|
||||
* Added phase 1 support for LBA hard drives
|
||||
*
|
||||
* Revision 1.15 2001/04/16 01:45:26 bartoldeman
|
||||
* Fixed handles, config.sys drivers, warnings. Enabled INT21/AH=6C, printf %S/%Fs
|
||||
*
|
||||
* Revision 1.14 2001/04/15 03:21:50 bartoldeman
|
||||
* See history.txt for the list of fixes.
|
||||
*
|
||||
* Revision 1.13 2001/03/27 20:27:43 bartoldeman
|
||||
* dsk.c (reported by Nagy Daniel), inthndlr and int25/26 fixes by Tom Ehlert.
|
||||
*
|
||||
* Revision 1.12 2001/03/24 22:13:05 bartoldeman
|
||||
* See history.txt: dsk.c changes, warning removal and int21 entry handling.
|
||||
*
|
||||
* Revision 1.11 2001/03/21 02:56:25 bartoldeman
|
||||
* See history.txt for changes. Bug fixes and HMA support are the main ones.
|
||||
*
|
||||
* Revision 1.9 2001/03/08 21:15:00 bartoldeman
|
||||
* Space saving fixes from Tom Ehlert
|
||||
*
|
||||
* Revision 1.8 2000/06/21 18:16:46 jimtabor
|
||||
* Add UMB code, patch, and code fixes
|
||||
*
|
||||
* Revision 1.7 2000/06/01 06:37:38 jimtabor
|
||||
* Read History for Changes
|
||||
*
|
||||
* Revision 1.6 2000/05/26 19:25:19 jimtabor
|
||||
* Read History file for Change info
|
||||
*
|
||||
* Revision 1.5 2000/05/25 20:56:21 jimtabor
|
||||
* Fixed project history
|
||||
*
|
||||
* Revision 1.4 2000/05/17 19:15:12 jimtabor
|
||||
* Cleanup, add and fix source.
|
||||
*
|
||||
* Revision 1.3 2000/05/11 04:26:26 jimtabor
|
||||
* Added code for DOS FN 69 & 6C
|
||||
*
|
||||
* Revision 1.2 2000/05/08 04:29:59 jimtabor
|
||||
* Update CVS to 2020
|
||||
*
|
||||
* Revision 1.1.1.1 2000/05/06 19:34:53 jhall1
|
||||
* The FreeDOS Kernel. A DOS kernel that aims to be 100% compatible with
|
||||
* MS-DOS. Distributed under the GNU GPL.
|
||||
*
|
||||
* Revision 1.6 2000/04/29 05:13:16 jtabor
|
||||
* Added new functions and clean up code
|
||||
*
|
||||
* Revision 1.5 2000/03/09 06:07:11 kernel
|
||||
* 2017f updates by James Tabor
|
||||
*
|
||||
* Revision 1.4 1999/08/10 18:07:57 jprice
|
||||
* ror4 2011-04 patch
|
||||
*
|
||||
* Revision 1.3 1999/04/16 21:43:40 jprice
|
||||
* ror4 multi-sector IO
|
||||
*
|
||||
* Revision 1.2 1999/04/16 00:53:32 jprice
|
||||
* Optimized FAT handling
|
||||
*
|
||||
* Revision 1.1.1.1 1999/03/29 15:40:51 jprice
|
||||
* New version without IPL.SYS
|
||||
*
|
||||
* Revision 1.5 1999/02/14 04:26:46 jprice
|
||||
* Changed check media so that it checks if a floppy disk has been changed.
|
||||
*
|
||||
* Revision 1.4 1999/02/08 05:55:57 jprice
|
||||
* Added Pat's 1937 kernel patches
|
||||
*
|
||||
* Revision 1.3 1999/02/01 01:48:41 jprice
|
||||
* Clean up; Now you can use hex numbers in config.sys. added config.sys screen function to change screen mode (28 or 43/50 lines)
|
||||
*
|
||||
* Revision 1.2 1999/01/22 04:13:25 jprice
|
||||
* Formating
|
||||
*
|
||||
* Revision 1.1.1.1 1999/01/20 05:51:01 jprice
|
||||
* Imported sources
|
||||
*
|
||||
*
|
||||
* Rev 1.7 06 Dec 1998 8:45:18 patv
|
||||
* Changed due to new I/O subsystem.
|
||||
*
|
||||
* Rev 1.6 04 Jan 1998 23:15:16 patv
|
||||
* Changed Log for strip utility
|
||||
*
|
||||
* Rev 1.5 10 Jan 1997 5:41:48 patv
|
||||
* Modified for extended partition support
|
||||
*
|
||||
* Rev 1.4 29 May 1996 21:03:32 patv
|
||||
* bug fixes for v0.91a
|
||||
*
|
||||
* Rev 1.3 19 Feb 1996 3:21:36 patv
|
||||
* Added NLS, int2f and config.sys processing
|
||||
*
|
||||
* Rev 1.2 01 Sep 1995 17:54:18 patv
|
||||
* First GPL release.
|
||||
*
|
||||
* Rev 1.1 30 Jul 1995 20:52:00 patv
|
||||
* Eliminated version strings in ipl
|
||||
*
|
||||
* Rev 1.0 02 Jul 1995 8:32:42 patv
|
||||
* Initial revision.
|
||||
*/
|
||||
|
106
kernel/entry.asm
106
kernel/entry.asm
@ -27,80 +27,6 @@
|
||||
;
|
||||
; $Id$
|
||||
;
|
||||
; $Log$
|
||||
; Revision 1.16 2001/11/13 23:36:45 bartoldeman
|
||||
; Kernel 2025a final changes.
|
||||
;
|
||||
; Revision 1.15 2001/11/04 19:47:39 bartoldeman
|
||||
; kernel 2025a changes: see history.txt
|
||||
;
|
||||
; Revision 1.14 2001/09/23 20:39:44 bartoldeman
|
||||
; FAT32 support, misc fixes, INT2F/AH=12 support, drive B: handling
|
||||
;
|
||||
; Revision 1.13 2001/04/21 22:32:53 bartoldeman
|
||||
; Init DS=Init CS, fixed stack overflow problems and misc bugs.
|
||||
;
|
||||
; Revision 1.12 2001/04/16 14:28:32 bartoldeman
|
||||
; Kernel build 2024. Fixed critical error handler/config.sys/makefiles/UMBs
|
||||
;
|
||||
; Revision 1.11 2001/04/15 02:26:23 bartoldeman
|
||||
; Hans Lermen: critical error handler destroyed AH (entry.asm).
|
||||
;
|
||||
; Revision 1.10 2001/04/02 23:18:30 bartoldeman
|
||||
; Misc, zero terminated device names and redirector bugs fixed.
|
||||
;
|
||||
; Revision 1.9 2001/03/30 19:30:06 bartoldeman
|
||||
; Misc fixes and implementation of SHELLHIGH. See history.txt for details.
|
||||
;
|
||||
; Revision 1.8 2001/03/27 20:27:43 bartoldeman
|
||||
; dsk.c (reported by Nagy Daniel), inthndlr and int25/26 fixes by Tom Ehlert.
|
||||
;
|
||||
; Revision 1.6 2001/03/24 22:13:05 bartoldeman
|
||||
; See history.txt: dsk.c changes, warning removal and int21 entry handling.
|
||||
;
|
||||
; Revision 1.4 2001/03/21 02:56:25 bartoldeman
|
||||
; See history.txt for changes. Bug fixes and HMA support are the main ones.
|
||||
;
|
||||
; Revision 1.3 2000/05/25 20:56:21 jimtabor
|
||||
; Fixed project history
|
||||
;
|
||||
; Revision 1.2 2000/05/08 04:29:59 jimtabor
|
||||
; Update CVS to 2020
|
||||
;
|
||||
; Revision 1.1.1.1 2000/05/06 19:34:53 jhall1
|
||||
; The FreeDOS Kernel. A DOS kernel that aims to be 100% compatible with
|
||||
; MS-DOS. Distributed under the GNU GPL.
|
||||
;
|
||||
; Revision 1.5 2000/03/20 03:15:49 kernel
|
||||
; Change in Entry.asm
|
||||
;
|
||||
; Revision 1.4 1999/09/23 04:40:46 jprice
|
||||
; *** empty log message ***
|
||||
;
|
||||
; Revision 1.2 1999/08/10 17:57:12 jprice
|
||||
; ror4 2011-02 patch
|
||||
;
|
||||
; Revision 1.1.1.1 1999/03/29 15:40:53 jprice
|
||||
; New version without IPL.SYS
|
||||
;
|
||||
; Revision 1.4 1999/02/08 05:55:57 jprice
|
||||
; Added Pat's 1937 kernel patches
|
||||
;
|
||||
; Revision 1.3 1999/02/01 01:48:41 jprice
|
||||
; Clean up; Now you can use hex numbers in config.sys. added config.sys screen function to change screen mode (28 or 43/50 lines)
|
||||
;
|
||||
; Revision 1.2 1999/01/22 04:13:25 jprice
|
||||
; Formating
|
||||
;
|
||||
; Revision 1.1.1.1 1999/01/20 05:51:01 jprice
|
||||
; Imported sources
|
||||
;
|
||||
; Rev 1.1 06 Dec 1998 8:48:40 patv
|
||||
; New int 21h handler code.
|
||||
;
|
||||
; Rev 1.0 07 Feb 1998 20:42:08 patv
|
||||
; Modified stack frame to match DOS standard
|
||||
; $EndLog$
|
||||
|
||||
%include "segs.inc"
|
||||
%include "stacks.inc"
|
||||
@ -738,3 +664,35 @@ CritErrAbort:
|
||||
mov [bp+reg_ax],ax
|
||||
sti
|
||||
jmp int21_reentry ; restart the system call
|
||||
|
||||
; Log: entry.asm,v
|
||||
; Revision 1.5 2000/03/20 03:15:49 kernel
|
||||
; Change in Entry.asm
|
||||
;
|
||||
; Revision 1.4 1999/09/23 04:40:46 jprice
|
||||
; *** empty log message ***
|
||||
;
|
||||
; Revision 1.2 1999/08/10 17:57:12 jprice
|
||||
; ror4 2011-02 patch
|
||||
;
|
||||
; Revision 1.1.1.1 1999/03/29 15:40:53 jprice
|
||||
; New version without IPL.SYS
|
||||
;
|
||||
; Revision 1.4 1999/02/08 05:55:57 jprice
|
||||
; Added Pat's 1937 kernel patches
|
||||
;
|
||||
; Revision 1.3 1999/02/01 01:48:41 jprice
|
||||
; Clean up; Now you can use hex numbers in config.sys. added config.sys screen function to change screen mode (28 or 43/50 lines)
|
||||
;
|
||||
; Revision 1.2 1999/01/22 04:13:25 jprice
|
||||
; Formating
|
||||
;
|
||||
; Revision 1.1.1.1 1999/01/20 05:51:01 jprice
|
||||
; Imported sources
|
||||
;
|
||||
; Rev 1.1 06 Dec 1998 8:48:40 patv
|
||||
; New int 21h handler code.
|
||||
;
|
||||
; Rev 1.0 07 Feb 1998 20:42:08 patv
|
||||
; Modified stack frame to match DOS standard
|
||||
; EndLog
|
||||
|
@ -32,62 +32,6 @@
|
||||
static BYTE *errorRcsId = "$Id$";
|
||||
#endif
|
||||
|
||||
/*
|
||||
* $Log$
|
||||
* Revision 1.5 2001/06/03 14:16:17 bartoldeman
|
||||
* BUFFERS tuning and misc bug fixes/cleanups (2024c).
|
||||
*
|
||||
* Revision 1.4 2001/04/15 03:21:50 bartoldeman
|
||||
* See history.txt for the list of fixes.
|
||||
*
|
||||
* Revision 1.3 2000/05/25 20:56:21 jimtabor
|
||||
* Fixed project history
|
||||
*
|
||||
* Revision 1.2 2000/05/08 04:30:00 jimtabor
|
||||
* Update CVS to 2020
|
||||
*
|
||||
* Revision 1.1.1.1 2000/05/06 19:34:53 jhall1
|
||||
* The FreeDOS Kernel. A DOS kernel that aims to be 100% compatible with
|
||||
* MS-DOS. Distributed under the GNU GPL.
|
||||
*
|
||||
* Revision 1.2 2000/03/09 06:07:11 kernel
|
||||
* 2017f updates by James Tabor
|
||||
*
|
||||
* Revision 1.1.1.1 1999/03/29 15:41:55 jprice
|
||||
* New version without IPL.SYS
|
||||
*
|
||||
* Revision 1.4 1999/02/09 02:54:23 jprice
|
||||
* Added Pat's 1937 kernel patches
|
||||
*
|
||||
* Revision 1.3 1999/02/01 01:43:28 jprice
|
||||
* Fixed findfirst function to find volume label with Windows long filenames
|
||||
*
|
||||
* Revision 1.2 1999/01/22 04:15:28 jprice
|
||||
* Formating
|
||||
*
|
||||
* Revision 1.1.1.1 1999/01/20 05:51:00 jprice
|
||||
* Imported sources
|
||||
*
|
||||
*
|
||||
* Rev 1.5 06 Dec 1998 8:43:54 patv
|
||||
* Now handles errors like MS-DOS.
|
||||
*
|
||||
* Rev 1.4 04 Jan 1998 23:14:36 patv
|
||||
* Changed Log for strip utility
|
||||
*
|
||||
* Rev 1.3 29 May 1996 21:15:10 patv
|
||||
* bug fixes for v0.91a
|
||||
*
|
||||
* Rev 1.2 01 Sep 1995 17:48:46 patv
|
||||
* First GPL release.
|
||||
*
|
||||
* Rev 1.1 30 Jul 1995 20:50:26 patv
|
||||
* Eliminated version strings in ipl
|
||||
*
|
||||
* Rev 1.0 02 Jul 1995 8:06:14 patv
|
||||
* Initial revision.
|
||||
*/
|
||||
|
||||
#include "globals.h"
|
||||
|
||||
#ifdef DEBUG
|
||||
@ -154,3 +98,45 @@ COUNT block_error(request * rq, COUNT nDrive, struct dhdr FAR * lpDevice)
|
||||
rq->r_status & S_MASK,
|
||||
lpDevice);
|
||||
}
|
||||
|
||||
/*
|
||||
* Log: error.c,v - for newer entries do "cvs log error.c"
|
||||
*
|
||||
* Revision 1.2 2000/03/09 06:07:11 kernel
|
||||
* 2017f updates by James Tabor
|
||||
*
|
||||
* Revision 1.1.1.1 1999/03/29 15:41:55 jprice
|
||||
* New version without IPL.SYS
|
||||
*
|
||||
* Revision 1.4 1999/02/09 02:54:23 jprice
|
||||
* Added Pat's 1937 kernel patches
|
||||
*
|
||||
* Revision 1.3 1999/02/01 01:43:28 jprice
|
||||
* Fixed findfirst function to find volume label with Windows long filenames
|
||||
*
|
||||
* Revision 1.2 1999/01/22 04:15:28 jprice
|
||||
* Formating
|
||||
*
|
||||
* Revision 1.1.1.1 1999/01/20 05:51:00 jprice
|
||||
* Imported sources
|
||||
*
|
||||
*
|
||||
* Rev 1.5 06 Dec 1998 8:43:54 patv
|
||||
* Now handles errors like MS-DOS.
|
||||
*
|
||||
* Rev 1.4 04 Jan 1998 23:14:36 patv
|
||||
* Changed Log for strip utility
|
||||
*
|
||||
* Rev 1.3 29 May 1996 21:15:10 patv
|
||||
* bug fixes for v0.91a
|
||||
*
|
||||
* Rev 1.2 01 Sep 1995 17:48:46 patv
|
||||
* First GPL release.
|
||||
*
|
||||
* Rev 1.1 30 Jul 1995 20:50:26 patv
|
||||
* Eliminated version strings in ipl
|
||||
*
|
||||
* Rev 1.0 02 Jul 1995 8:06:14 patv
|
||||
* Initial revision.
|
||||
*/
|
||||
|
||||
|
@ -25,70 +25,7 @@
|
||||
; write to the Free Software Foundation, 675 Mass Ave,
|
||||
; Cambridge, MA 02139, USA.
|
||||
;
|
||||
; $Logfile: C:/usr/patv/dos-c/src/kernel/execrh.asv $
|
||||
;
|
||||
; $Id$
|
||||
;
|
||||
; $Log$
|
||||
; Revision 1.8 2001/11/04 19:47:39 bartoldeman
|
||||
; kernel 2025a changes: see history.txt
|
||||
;
|
||||
; Revision 1.7 2001/04/21 22:32:53 bartoldeman
|
||||
; Init DS=Init CS, fixed stack overflow problems and misc bugs.
|
||||
;
|
||||
; Revision 1.6 2001/04/15 03:21:50 bartoldeman
|
||||
; See history.txt for the list of fixes.
|
||||
;
|
||||
; Revision 1.5 2001/04/02 23:18:30 bartoldeman
|
||||
; Misc, zero terminated device names and redirector bugs fixed.
|
||||
;
|
||||
; Revision 1.4 2001/03/21 02:56:25 bartoldeman
|
||||
; See history.txt for changes. Bug fixes and HMA support are the main ones.
|
||||
;
|
||||
; Revision 1.3 2000/05/25 20:56:21 jimtabor
|
||||
; Fixed project history
|
||||
;
|
||||
; Revision 1.2 2000/05/08 04:30:00 jimtabor
|
||||
; Update CVS to 2020
|
||||
;
|
||||
; Revision 1.1.1.1 2000/05/06 19:34:53 jhall1
|
||||
; The FreeDOS Kernel. A DOS kernel that aims to be 100% compatible with
|
||||
; MS-DOS. Distributed under the GNU GPL.
|
||||
;
|
||||
; Revision 1.3 2000/03/09 06:07:11 kernel
|
||||
; 2017f updates by James Tabor
|
||||
;
|
||||
; Revision 1.2 1999/08/10 17:57:12 jprice
|
||||
; ror4 2011-02 patch
|
||||
;
|
||||
; Revision 1.1.1.1 1999/03/29 15:40:54 jprice
|
||||
; New version without IPL.SYS
|
||||
;
|
||||
; Revision 1.4 1999/02/08 05:55:57 jprice
|
||||
; Added Pat's 1937 kernel patches
|
||||
;
|
||||
; Revision 1.3 1999/02/01 01:48:41 jprice
|
||||
; Clean up; Now you can use hex numbers in config.sys. added config.sys screen function to change screen mode (28 or 43/50 lines)
|
||||
;
|
||||
; Revision 1.2 1999/01/22 04:13:25 jprice
|
||||
; Formating
|
||||
;
|
||||
; Revision 1.1.1.1 1999/01/20 05:51:01 jprice
|
||||
; Imported sources
|
||||
;
|
||||
;
|
||||
; Rev 1.3 06 Dec 1998 8:45:06 patv
|
||||
;Bug fixes.
|
||||
;
|
||||
; Rev 1.2 29 May 1996 21:03:30 patv
|
||||
;bug fixes for v0.91a
|
||||
;
|
||||
; Rev 1.1 01 Sep 1995 17:54:22 patv
|
||||
;First GPL release.
|
||||
;
|
||||
; Rev 1.0 02 Jul 1995 9:05:34 patv
|
||||
;Initial revision.
|
||||
; $EndLog$
|
||||
;
|
||||
|
||||
%include "segs.inc"
|
||||
@ -131,3 +68,40 @@ _execrh:
|
||||
pop si
|
||||
pop bp
|
||||
ret
|
||||
|
||||
; Log: execrh.asm,v
|
||||
; Revision 1.3 2000/03/09 06:07:11 kernel
|
||||
; 2017f updates by James Tabor
|
||||
;
|
||||
; Revision 1.2 1999/08/10 17:57:12 jprice
|
||||
; ror4 2011-02 patch
|
||||
;
|
||||
; Revision 1.1.1.1 1999/03/29 15:40:54 jprice
|
||||
; New version without IPL.SYS
|
||||
;
|
||||
; Revision 1.4 1999/02/08 05:55:57 jprice
|
||||
; Added Pat's 1937 kernel patches
|
||||
;
|
||||
; Revision 1.3 1999/02/01 01:48:41 jprice
|
||||
; Clean up; Now you can use hex numbers in config.sys. added config.sys screen function to change screen mode (28 or 43/50 lines)
|
||||
;
|
||||
; Revision 1.2 1999/01/22 04:13:25 jprice
|
||||
; Formating
|
||||
;
|
||||
; Revision 1.1.1.1 1999/01/20 05:51:01 jprice
|
||||
; Imported sources
|
||||
;
|
||||
;
|
||||
; Rev 1.3 06 Dec 1998 8:45:06 patv
|
||||
;Bug fixes.
|
||||
;
|
||||
; Rev 1.2 29 May 1996 21:03:30 patv
|
||||
;bug fixes for v0.91a
|
||||
;
|
||||
; Rev 1.1 01 Sep 1995 17:54:22 patv
|
||||
;First GPL release.
|
||||
;
|
||||
; Rev 1.0 02 Jul 1995 9:05:34 patv
|
||||
;Initial revision.
|
||||
; EndLog
|
||||
;
|
||||
|
259
kernel/fatdir.c
259
kernel/fatdir.c
@ -34,171 +34,6 @@
|
||||
static BYTE *fatdirRcsId = "$Id$";
|
||||
#endif
|
||||
|
||||
/*
|
||||
* $Log$
|
||||
* Revision 1.25 2001/11/13 23:36:45 bartoldeman
|
||||
* Kernel 2025a final changes.
|
||||
*
|
||||
* Revision 1.24 2001/11/04 19:47:39 bartoldeman
|
||||
* kernel 2025a changes: see history.txt
|
||||
*
|
||||
* Revision 1.23 2001/09/23 20:39:44 bartoldeman
|
||||
* FAT32 support, misc fixes, INT2F/AH=12 support, drive B: handling
|
||||
*
|
||||
* Revision 1.22 2001/08/19 12:58:36 bartoldeman
|
||||
* Time and date fixes, Ctrl-S/P, findfirst/next, FCBs, buffers, tsr unloading
|
||||
*
|
||||
* Revision 1.21 2001/07/28 18:13:06 bartoldeman
|
||||
* Fixes for FORMAT+SYS, FATFS, get current dir, kernel init memory situation.
|
||||
*
|
||||
* Revision 1.20 2001/07/24 16:56:29 bartoldeman
|
||||
* fixes for FCBs, DJGPP ls, DBLBYTE, dyninit allocation (2024e).
|
||||
*
|
||||
* Revision 1.19 2001/07/23 12:47:42 bartoldeman
|
||||
* FCB fixes and clean-ups, exec int21/ax=4b01, initdisk.c printf
|
||||
*
|
||||
* Revision 1.18 2001/07/22 01:58:58 bartoldeman
|
||||
* Support for Brian's FORMAT, DJGPP libc compilation, cleanups, MSCDEX
|
||||
*
|
||||
* Revision 1.17 2001/07/09 22:19:33 bartoldeman
|
||||
* LBA/FCB/FAT/SYS/Ctrl-C/ioctl fixes + memory savings
|
||||
*
|
||||
* Revision 1.16 2001/06/03 14:16:17 bartoldeman
|
||||
* BUFFERS tuning and misc bug fixes/cleanups (2024c).
|
||||
*
|
||||
* Revision 1.15 2001/04/29 17:34:40 bartoldeman
|
||||
* A new SYS.COM/config.sys single stepping/console output/misc fixes.
|
||||
*
|
||||
* Revision 1.14 2001/04/15 03:21:50 bartoldeman
|
||||
* See history.txt for the list of fixes.
|
||||
*
|
||||
* Revision 1.13 2001/04/02 23:18:30 bartoldeman
|
||||
* Misc, zero terminated device names and redirector bugs fixed.
|
||||
*
|
||||
* Revision 1.12 2001/03/30 22:27:42 bartoldeman
|
||||
* Saner lastdrive handling.
|
||||
*
|
||||
* Revision 1.11 2001/03/21 02:56:25 bartoldeman
|
||||
* See history.txt for changes. Bug fixes and HMA support are the main ones.
|
||||
*
|
||||
* Revision 1.10 2001/03/08 21:00:00 bartoldeman
|
||||
* Fix handling of very long path names (Tom Ehlert)
|
||||
*
|
||||
* Revision 1.9 2000/08/06 05:50:17 jimtabor
|
||||
* Add new files and update cvs with patches and changes
|
||||
*
|
||||
* Revision 1.8 2000/06/21 18:16:46 jimtabor
|
||||
* Add UMB code, patch, and code fixes
|
||||
*
|
||||
* Revision 1.7 2000/06/01 06:46:57 jimtabor
|
||||
* Removed Debug printf
|
||||
*
|
||||
* Revision 1.6 2000/06/01 06:37:38 jimtabor
|
||||
* Read History for Changes
|
||||
*
|
||||
* Revision 1.5 2000/05/26 19:25:19 jimtabor
|
||||
* Read History file for Change info
|
||||
*
|
||||
* Revision 1.4 2000/05/25 20:56:21 jimtabor
|
||||
* Fixed project history
|
||||
*
|
||||
* Revision 1.3 2000/05/17 19:15:12 jimtabor
|
||||
* Cleanup, add and fix source.
|
||||
*
|
||||
* Revision 1.2 2000/05/08 04:30:00 jimtabor
|
||||
* Update CVS to 2020
|
||||
*
|
||||
* Revision 1.1.1.1 2000/05/06 19:34:53 jhall1
|
||||
* The FreeDOS Kernel. A DOS kernel that aims to be 100% compatible with
|
||||
* MS-DOS. Distributed under the GNU GPL.
|
||||
*
|
||||
* Revision 1.12 2000/03/31 05:40:09 jtabor
|
||||
* Added Eric W. Biederman Patches
|
||||
*
|
||||
* Revision 1.11 2000/03/17 22:59:04 kernel
|
||||
* Steffen Kaiser's NLS changes
|
||||
*
|
||||
* Revision 1.10 2000/03/09 06:07:11 kernel
|
||||
* 2017f updates by James Tabor
|
||||
*
|
||||
* Revision 1.9 1999/08/25 03:18:07 jprice
|
||||
* ror4 patches to allow TC 2.01 compile.
|
||||
*
|
||||
* Revision 1.8 1999/08/10 17:57:12 jprice
|
||||
* ror4 2011-02 patch
|
||||
*
|
||||
* Revision 1.7 1999/05/03 06:25:45 jprice
|
||||
* Patches from ror4 and many changed of signed to unsigned variables.
|
||||
*
|
||||
* Revision 1.6 1999/04/16 00:53:32 jprice
|
||||
* Optimized FAT handling
|
||||
*
|
||||
* Revision 1.5 1999/04/13 15:48:20 jprice
|
||||
* no message
|
||||
*
|
||||
* Revision 1.4 1999/04/11 04:33:38 jprice
|
||||
* ror4 patches
|
||||
*
|
||||
* Revision 1.2 1999/04/04 18:51:43 jprice
|
||||
* no message
|
||||
*
|
||||
* Revision 1.1.1.1 1999/03/29 15:41:58 jprice
|
||||
* New version without IPL.SYS
|
||||
*
|
||||
* Revision 1.7 1999/03/25 05:06:57 jprice
|
||||
* Fixed findfirst & findnext functions to treat the attributes like MSDOS does.
|
||||
*
|
||||
* Revision 1.6 1999/02/14 04:27:09 jprice
|
||||
* Changed check media so that it checks if a floppy disk has been changed.
|
||||
*
|
||||
* Revision 1.5 1999/02/09 02:54:23 jprice
|
||||
* Added Pat's 1937 kernel patches
|
||||
*
|
||||
* Revision 1.4 1999/02/01 01:43:28 jprice
|
||||
* Fixed findfirst function to find volume label with Windows long filenames
|
||||
*
|
||||
* Revision 1.3 1999/01/30 08:25:34 jprice
|
||||
* Clean up; Fixed bug with set attribute function. If you tried to
|
||||
* change the attributres of a directory, it would erase it.
|
||||
*
|
||||
* Revision 1.2 1999/01/22 04:15:28 jprice
|
||||
* Formating
|
||||
*
|
||||
* Revision 1.1.1.1 1999/01/20 05:51:00 jprice
|
||||
* Imported sources
|
||||
*
|
||||
*
|
||||
* Rev 1.10 06 Dec 1998 8:44:36 patv
|
||||
* Bug fixes.
|
||||
*
|
||||
* Rev 1.9 22 Jan 1998 4:09:00 patv
|
||||
* Fixed pointer problems affecting SDA
|
||||
*
|
||||
* Rev 1.8 04 Jan 1998 23:14:36 patv
|
||||
* Changed Log for strip utility
|
||||
*
|
||||
* Rev 1.7 03 Jan 1998 8:36:02 patv
|
||||
* Converted data area to SDA format
|
||||
*
|
||||
* Rev 1.6 16 Jan 1997 12:46:30 patv
|
||||
* pre-Release 0.92 feature additions
|
||||
*
|
||||
* Rev 1.5 29 May 1996 21:15:18 patv
|
||||
* bug fixes for v0.91a
|
||||
*
|
||||
* Rev 1.4 19 Feb 1996 3:20:12 patv
|
||||
* Added NLS, int2f and config.sys processing
|
||||
*
|
||||
* Rev 1.2 01 Sep 1995 17:48:38 patv
|
||||
* First GPL release.
|
||||
*
|
||||
* Rev 1.1 30 Jul 1995 20:50:24 patv
|
||||
* Eliminated version strings in ipl
|
||||
*
|
||||
* Rev 1.0 02 Jul 1995 8:04:34 patv
|
||||
* Initial revision.
|
||||
*/
|
||||
|
||||
/* Description.
|
||||
* Initialize a fnode so that it will point to the directory with
|
||||
* dirstart starting cluster; in case of passing dirstart == 0
|
||||
@ -662,8 +497,7 @@ COUNT dos_findfirst(UCOUNT attr, BYTE *name)
|
||||
dmp->dm_attr_srch = attr;
|
||||
|
||||
/* Copy the raw pattern from our data segment to the DTA. */
|
||||
fbcopy((BYTE FAR *) SearchDir.dir_name, dmp->dm_name_pat,
|
||||
FNAME_SIZE + FEXT_SIZE);
|
||||
fmemcpy(dmp->dm_name_pat, SearchDir.dir_name, FNAME_SIZE + FEXT_SIZE);
|
||||
|
||||
if (attr == D_VOLID)
|
||||
{
|
||||
@ -853,3 +687,94 @@ int FileName83Length(BYTE *filename83)
|
||||
|
||||
return strlen(buff);
|
||||
}
|
||||
|
||||
/*
|
||||
* Log: fatdir.c,v - for newer log entries do a "cvs log fatdir.c"
|
||||
*
|
||||
* Revision 1.12 2000/03/31 05:40:09 jtabor
|
||||
* Added Eric W. Biederman Patches
|
||||
*
|
||||
* Revision 1.11 2000/03/17 22:59:04 kernel
|
||||
* Steffen Kaiser's NLS changes
|
||||
*
|
||||
* Revision 1.10 2000/03/09 06:07:11 kernel
|
||||
* 2017f updates by James Tabor
|
||||
*
|
||||
* Revision 1.9 1999/08/25 03:18:07 jprice
|
||||
* ror4 patches to allow TC 2.01 compile.
|
||||
*
|
||||
* Revision 1.8 1999/08/10 17:57:12 jprice
|
||||
* ror4 2011-02 patch
|
||||
*
|
||||
* Revision 1.7 1999/05/03 06:25:45 jprice
|
||||
* Patches from ror4 and many changed of signed to unsigned variables.
|
||||
*
|
||||
* Revision 1.6 1999/04/16 00:53:32 jprice
|
||||
* Optimized FAT handling
|
||||
*
|
||||
* Revision 1.5 1999/04/13 15:48:20 jprice
|
||||
* no message
|
||||
*
|
||||
* Revision 1.4 1999/04/11 04:33:38 jprice
|
||||
* ror4 patches
|
||||
*
|
||||
* Revision 1.2 1999/04/04 18:51:43 jprice
|
||||
* no message
|
||||
*
|
||||
* Revision 1.1.1.1 1999/03/29 15:41:58 jprice
|
||||
* New version without IPL.SYS
|
||||
*
|
||||
* Revision 1.7 1999/03/25 05:06:57 jprice
|
||||
* Fixed findfirst & findnext functions to treat the attributes like MSDOS does.
|
||||
*
|
||||
* Revision 1.6 1999/02/14 04:27:09 jprice
|
||||
* Changed check media so that it checks if a floppy disk has been changed.
|
||||
*
|
||||
* Revision 1.5 1999/02/09 02:54:23 jprice
|
||||
* Added Pat's 1937 kernel patches
|
||||
*
|
||||
* Revision 1.4 1999/02/01 01:43:28 jprice
|
||||
* Fixed findfirst function to find volume label with Windows long filenames
|
||||
*
|
||||
* Revision 1.3 1999/01/30 08:25:34 jprice
|
||||
* Clean up; Fixed bug with set attribute function. If you tried to
|
||||
* change the attributres of a directory, it would erase it.
|
||||
*
|
||||
* Revision 1.2 1999/01/22 04:15:28 jprice
|
||||
* Formating
|
||||
*
|
||||
* Revision 1.1.1.1 1999/01/20 05:51:00 jprice
|
||||
* Imported sources
|
||||
*
|
||||
*
|
||||
* Rev 1.10 06 Dec 1998 8:44:36 patv
|
||||
* Bug fixes.
|
||||
*
|
||||
* Rev 1.9 22 Jan 1998 4:09:00 patv
|
||||
* Fixed pointer problems affecting SDA
|
||||
*
|
||||
* Rev 1.8 04 Jan 1998 23:14:36 patv
|
||||
* Changed Log for strip utility
|
||||
*
|
||||
* Rev 1.7 03 Jan 1998 8:36:02 patv
|
||||
* Converted data area to SDA format
|
||||
*
|
||||
* Rev 1.6 16 Jan 1997 12:46:30 patv
|
||||
* pre-Release 0.92 feature additions
|
||||
*
|
||||
* Rev 1.5 29 May 1996 21:15:18 patv
|
||||
* bug fixes for v0.91a
|
||||
*
|
||||
* Rev 1.4 19 Feb 1996 3:20:12 patv
|
||||
* Added NLS, int2f and config.sys processing
|
||||
*
|
||||
* Rev 1.2 01 Sep 1995 17:48:38 patv
|
||||
* First GPL release.
|
||||
*
|
||||
* Rev 1.1 30 Jul 1995 20:50:24 patv
|
||||
* Eliminated version strings in ipl
|
||||
*
|
||||
* Rev 1.0 02 Jul 1995 8:04:34 patv
|
||||
* Initial revision.
|
||||
*/
|
||||
|
||||
|
433
kernel/fatfs.c
433
kernel/fatfs.c
@ -34,232 +34,6 @@
|
||||
BYTE *RcsId = "$Id$";
|
||||
#endif
|
||||
|
||||
/*
|
||||
* TE 12 jun 2001 bugs corrected
|
||||
* handles disk full (in a incompatible way :-( )
|
||||
* allows use of last cluster
|
||||
* prevents mkdir, if disk is full (was creating crosslinked dirs)
|
||||
* bugs detected, but NOT corrected
|
||||
* on disk full, MSDOS will NOT write any byte, simply return SUCCESS, 0 bytes
|
||||
* FreeDOS will write all possible bytes, then close file(BUG)
|
||||
*
|
||||
* the dos_mkdir/extenddir (with getblock() instead of getblockOver) was a real
|
||||
* performance killer on large drives. (~0.5 sec /dos_mkdir) TE
|
||||
*
|
||||
* $Log$
|
||||
* Revision 1.26 2001/11/13 23:36:45 bartoldeman
|
||||
* Kernel 2025a final changes.
|
||||
*
|
||||
* Revision 1.25 2001/11/04 19:47:39 bartoldeman
|
||||
* kernel 2025a changes: see history.txt
|
||||
*
|
||||
* Revision 1.24 2001/09/23 20:39:44 bartoldeman
|
||||
* FAT32 support, misc fixes, INT2F/AH=12 support, drive B: handling
|
||||
*
|
||||
* Revision 1.23 2001/08/19 12:58:36 bartoldeman
|
||||
* Time and date fixes, Ctrl-S/P, findfirst/next, FCBs, buffers, tsr unloading
|
||||
*
|
||||
* Revision 1.22 2001/07/28 18:13:06 bartoldeman
|
||||
* Fixes for FORMAT+SYS, FATFS, get current dir, kernel init memory situation.
|
||||
*
|
||||
* Revision 1.21 2001/07/24 16:56:29 bartoldeman
|
||||
* fixes for FCBs, DJGPP ls, DBLBYTE, dyninit allocation (2024e).
|
||||
*
|
||||
* Revision 1.20 2001/07/22 01:58:58 bartoldeman
|
||||
* Support for Brian's FORMAT, DJGPP libc compilation, cleanups, MSCDEX
|
||||
*
|
||||
* Revision 1.19 2001/07/09 22:19:33 bartoldeman
|
||||
* LBA/FCB/FAT/SYS/Ctrl-C/ioctl fixes + memory savings
|
||||
*
|
||||
* Revision 1.18 2001/06/03 14:16:17 bartoldeman
|
||||
* BUFFERS tuning and misc bug fixes/cleanups (2024c).
|
||||
*
|
||||
* Revision 1.17 2001/04/29 17:34:40 bartoldeman
|
||||
* A new SYS.COM/config.sys single stepping/console output/misc fixes.
|
||||
*
|
||||
* Revision 1.16 2001/04/21 22:32:53 bartoldeman
|
||||
* Init DS=Init CS, fixed stack overflow problems and misc bugs.
|
||||
*
|
||||
* Revision 1.15 2001/04/16 01:45:26 bartoldeman
|
||||
* Fixed handles, config.sys drivers, warnings. Enabled INT21/AH=6C, printf %S/%Fs
|
||||
*
|
||||
* Revision 1.14 2001/04/15 03:21:50 bartoldeman
|
||||
* See history.txt for the list of fixes.
|
||||
*
|
||||
* Revision 1.13 2001/03/30 19:30:06 bartoldeman
|
||||
* Misc fixes and implementation of SHELLHIGH. See history.txt for details.
|
||||
*
|
||||
* Revision 1.12 2001/03/24 22:13:05 bartoldeman
|
||||
* See history.txt: dsk.c changes, warning removal and int21 entry handling.
|
||||
*
|
||||
* Revision 1.11 2001/03/22 04:26:14 bartoldeman
|
||||
* dos_gettime() fix by Tom Ehlert.
|
||||
*
|
||||
* Revision 1.10 2001/03/21 02:56:25 bartoldeman
|
||||
* See history.txt for changes. Bug fixes and HMA support are the main ones.
|
||||
*
|
||||
* Revision 1.9 2001/03/08 21:00:00 bartoldeman
|
||||
* Disabled select_unit() since it's not used
|
||||
*
|
||||
* Revision 1.8 2000/10/29 23:51:56 jimtabor
|
||||
* Adding Share Support by Ron Cemer
|
||||
*
|
||||
* Revision 1.7 2000/09/05 00:56:50 jimtabor
|
||||
* *** empty log message ***
|
||||
*
|
||||
*
|
||||
* /// 2000/08/12 22:49:00 Ron Cemer
|
||||
* Fixed writeblock() to only use getbuf() if writing a
|
||||
* complete sector; otherwise use getbloc() and do a
|
||||
* read-modify-write to prevent writing garbage back
|
||||
* over pre-existing data in the file.
|
||||
* This was a major BUG.
|
||||
*
|
||||
* Revision 1.6 2000/08/06 05:50:17 jimtabor
|
||||
* Add new files and update cvs with patches and changes
|
||||
*
|
||||
* Revision 1.5 2000/06/21 18:16:46 jimtabor
|
||||
* Add UMB code, patch, and code fixes
|
||||
*
|
||||
* Revision 1.4 2000/05/25 20:56:21 jimtabor
|
||||
* Fixed project history
|
||||
*
|
||||
* Revision 1.3 2000/05/11 04:26:26 jimtabor
|
||||
* Added code for DOS FN 69 & 6C
|
||||
*
|
||||
* Revision 1.2 2000/05/08 04:30:00 jimtabor
|
||||
* Update CVS to 2020
|
||||
*
|
||||
* Revision 1.1.1.1 2000/05/06 19:34:53 jhall1
|
||||
* The FreeDOS Kernel. A DOS kernel that aims to be 100% compatible with
|
||||
* MS-DOS. Distributed under the GNU GPL.
|
||||
*
|
||||
* Revision 1.23 2000/04/29 05:13:16 jtabor
|
||||
* Added new functions and clean up code
|
||||
*
|
||||
* Revision 1.19 2000/03/17 22:59:04 kernel
|
||||
* Steffen Kaiser's NLS changes
|
||||
*
|
||||
* Revision 1.18 2000/03/17 04:13:12 kernel
|
||||
* Added Change for media_check
|
||||
*
|
||||
* Revision 1.17 2000/03/17 04:01:20 kernel
|
||||
* Added Change for media_check
|
||||
*
|
||||
* Revision 1.16 2000/03/09 06:07:11 kernel
|
||||
* 2017f updates by James Tabor
|
||||
*
|
||||
* Revision 1.15 1999/09/23 04:40:46 jprice
|
||||
* *** empty log message ***
|
||||
*
|
||||
* Revision 1.12 1999/09/14 01:01:54 jprice
|
||||
* Fixed bug where you could write over directories.
|
||||
*
|
||||
* Revision 1.11 1999/08/25 03:18:08 jprice
|
||||
* ror4 patches to allow TC 2.01 compile.
|
||||
*
|
||||
* Revision 1.10 1999/08/10 18:03:42 jprice
|
||||
* ror4 2011-03 patch
|
||||
*
|
||||
* Revision 1.9 1999/05/03 06:25:45 jprice
|
||||
* Patches from ror4 and many changed of signed to unsigned variables.
|
||||
*
|
||||
* Revision 1.8 1999/05/03 05:00:24 jprice
|
||||
* Fixed bug in map_cluster function
|
||||
*
|
||||
* Revision 1.7 1999/04/16 00:53:33 jprice
|
||||
* Optimized FAT handling
|
||||
*
|
||||
* Revision 1.6 1999/04/12 23:41:54 jprice
|
||||
* Using getbuf to write data instead of getblock
|
||||
* using getblock made it read the block before it wrote it
|
||||
*
|
||||
* Revision 1.5 1999/04/12 03:21:17 jprice
|
||||
* more ror4 patches. Changes for multi-block IO
|
||||
*
|
||||
* Revision 1.4 1999/04/11 04:33:38 jprice
|
||||
* ror4 patches
|
||||
*
|
||||
* Revision 1.2 1999/04/04 18:51:43 jprice
|
||||
* no message
|
||||
*
|
||||
* Revision 1.1.1.1 1999/03/29 15:42:07 jprice
|
||||
* New version without IPL.SYS
|
||||
*
|
||||
* Revision 1.8 1999/03/23 23:37:39 jprice
|
||||
* Fixed mkdir DOS function so it will create a directory with same name as the volument label
|
||||
*
|
||||
* Revision 1.7 1999/03/02 07:00:51 jprice
|
||||
* Fixed bugs with dos set attribute function. Now returns correct
|
||||
* error code, and errors if user tries to set bits 6 & 7.
|
||||
*
|
||||
* Revision 1.6 1999/02/09 02:54:23 jprice
|
||||
* Added Pat's 1937 kernel patches
|
||||
*
|
||||
* Revision 1.5 1999/02/04 03:18:37 jprice
|
||||
* Formating. Added comments.
|
||||
*
|
||||
* Revision 1.4 1999/02/01 01:43:28 jprice
|
||||
* Fixed findfirst function to find volume label with Windows long filenames
|
||||
*
|
||||
* Revision 1.3 1999/01/30 08:25:34 jprice
|
||||
* Clean up; Fixed bug with set attribute function. If you tried to
|
||||
* change the attributes of a directory, it would erase it.
|
||||
*
|
||||
* Revision 1.2 1999/01/22 04:15:28 jprice
|
||||
* Formating
|
||||
*
|
||||
* Revision 1.1.1.1 1999/01/20 05:51:00 jprice
|
||||
* Imported sources
|
||||
*
|
||||
*
|
||||
* Rev 1.14 06 Dec 1998 8:44:26 patv
|
||||
* Bug fixes.
|
||||
*
|
||||
* Rev 1.13 09 Feb 1998 5:43:30 patv
|
||||
* Eliminated FAT12 EOF and error useage.
|
||||
*
|
||||
* Rev 1.12 03 Feb 1998 11:28:04 patv
|
||||
* Fixed lseek bug.
|
||||
*
|
||||
* Rev 1.11 22 Jan 1998 5:38:08 patv
|
||||
* Corrected remaining file name and extension copies that did not
|
||||
* account for far file nodes due to allocated FILES= spec.
|
||||
*
|
||||
* Rev 1.10 22 Jan 1998 4:09:00 patv
|
||||
* Fixed pointer problems affecting SDA
|
||||
*
|
||||
* Rev 1.9 04 Jan 1998 23:14:40 patv
|
||||
* Changed Log for strip utility
|
||||
*
|
||||
* Rev 1.8 04 Jan 1998 17:24:14 patv
|
||||
* Corrected subdirectory bug
|
||||
*
|
||||
* Rev 1.7 03 Jan 1998 8:36:04 patv
|
||||
* Converted data area to SDA format
|
||||
*
|
||||
* Rev 1.6 22 Jan 1997 13:00:30 patv
|
||||
* pre-0.92 bug fixes
|
||||
*
|
||||
* Rev 1.5 16 Jan 1997 12:46:24 patv
|
||||
* pre-Release 0.92 feature additions
|
||||
*
|
||||
* Rev 1.4 29 May 1996 21:15:16 patv
|
||||
* bug fixes for v0.91a
|
||||
*
|
||||
* Rev 1.3 19 Feb 1996 3:20:10 patv
|
||||
* Added NLS, int2f and config.sys processing
|
||||
*
|
||||
* Rev 1.2 01 Sep 1995 17:48:40 patv
|
||||
* First GPL release.
|
||||
*
|
||||
* Rev 1.1 30 Jul 1995 20:50:24 patv
|
||||
* Eliminated version strings in ipl
|
||||
*
|
||||
* Rev 1.0 02 Jul 1995 8:04:46 patv
|
||||
* Initial revision.
|
||||
*/
|
||||
|
||||
/* */
|
||||
/* function prototypes */
|
||||
/* */
|
||||
@ -440,7 +214,7 @@ f_node_ptr
|
||||
/* directory... */
|
||||
if (!szDirName[2])
|
||||
{
|
||||
fsncopy(cdsp->cdsCurrentPath, (BYTE FAR *) szDirName, PARSE_MAX);
|
||||
fstrncpy(szDirName, cdsp->cdsCurrentPath, PARSE_MAX);
|
||||
}
|
||||
|
||||
/* 11/29/99 jt
|
||||
@ -667,8 +441,8 @@ COUNT dos_creat(BYTE * path, COUNT attrib)
|
||||
}
|
||||
|
||||
/* put the fnode's name into the directory. */
|
||||
bcopy(szFileName, fnp->f_dir.dir_name, FNAME_SIZE);
|
||||
bcopy(szFileExt, fnp->f_dir.dir_ext, FEXT_SIZE);
|
||||
memcpy(fnp->f_dir.dir_name, szFileName, FNAME_SIZE);
|
||||
memcpy(fnp->f_dir.dir_ext, szFileExt, FEXT_SIZE);
|
||||
}
|
||||
/* Set the fnode to the desired mode */
|
||||
/* Updating the directory entry first. */
|
||||
@ -923,8 +697,8 @@ COUNT dos_rename(BYTE * path1, BYTE * path2)
|
||||
return ret;
|
||||
|
||||
/* put the fnode's name into the directory. */
|
||||
bcopy(szFileName, (BYTE *)fnp2->f_dir.dir_name, FNAME_SIZE);
|
||||
bcopy(szFileExt, (BYTE *)fnp2->f_dir.dir_ext, FEXT_SIZE);
|
||||
memcpy(fnp2->f_dir.dir_name, szFileName, FNAME_SIZE);
|
||||
memcpy(fnp2->f_dir.dir_ext, szFileExt, FEXT_SIZE);
|
||||
|
||||
/* Set the fnode to the desired mode */
|
||||
fnp2->f_dir.dir_size = fnp1->f_dir.dir_size;
|
||||
@ -1344,8 +1118,8 @@ COUNT dos_mkdir(BYTE * dir)
|
||||
|
||||
|
||||
/* put the fnode's name into the directory. */
|
||||
bcopy(szFileName, (BYTE *) fnp->f_dir.dir_name, FNAME_SIZE);
|
||||
bcopy(szFileExt, (BYTE *) fnp->f_dir.dir_ext, FEXT_SIZE);
|
||||
memcpy(fnp->f_dir.dir_name, szFileName, FNAME_SIZE);
|
||||
memcpy(fnp->f_dir.dir_ext, szFileExt, FEXT_SIZE);
|
||||
|
||||
/* Set the fnode to the desired mode */
|
||||
fnp->f_mode = WRONLY;
|
||||
@ -1385,8 +1159,8 @@ COUNT dos_mkdir(BYTE * dir)
|
||||
}
|
||||
|
||||
/* Create the "." entry */
|
||||
bcopy(". ", (BYTE *) DirEntBuffer.dir_name, FNAME_SIZE);
|
||||
bcopy(" ", (BYTE *) DirEntBuffer.dir_ext, FEXT_SIZE);
|
||||
memcpy(DirEntBuffer.dir_name, ". ", FNAME_SIZE);
|
||||
memcpy(DirEntBuffer.dir_ext, " ", FEXT_SIZE);
|
||||
DirEntBuffer.dir_attrib = D_DIR;
|
||||
DirEntBuffer.dir_time = dos_gettime();
|
||||
DirEntBuffer.dir_date = dos_getdate();
|
||||
@ -1397,7 +1171,7 @@ COUNT dos_mkdir(BYTE * dir)
|
||||
putdirent((struct dirent FAR *)&DirEntBuffer, (BYTE FAR *) bp->b_buffer);
|
||||
|
||||
/* create the ".." entry */
|
||||
bcopy(".. ", (BYTE *) DirEntBuffer.dir_name, FNAME_SIZE);
|
||||
memcpy(DirEntBuffer.dir_name, ".. ", FNAME_SIZE);
|
||||
#ifdef WITHFAT32
|
||||
if (ISFAT32(dpbp) && parent == dpbp->dpb_xrootclst) {
|
||||
parent = 0;
|
||||
@ -1780,23 +1554,20 @@ UCOUNT readblock(COUNT fd, VOID FAR * buffer, UCOUNT count, COUNT * err)
|
||||
/* can utilize memory management in future DOS-C versions. */
|
||||
while (ret_cnt < count)
|
||||
{
|
||||
/* Do an EOF test and return whatever was transferred */
|
||||
/* but only for regular files. */
|
||||
if (!(fnp->f_flags.f_ddir)
|
||||
&& (fnp->f_offset >= fnp->f_highwater))
|
||||
{
|
||||
*err = SUCCESS;
|
||||
return ret_cnt;
|
||||
}
|
||||
|
||||
/* Position the file to the fnode's pointer position. This is */
|
||||
/* done by updating the fnode's cluster, block (sector) and */
|
||||
/* byte offset so that read becomes a simple data move */
|
||||
/* out of the block data buffer. */
|
||||
if (fnp->f_offset == 0l)
|
||||
{
|
||||
/* complete the common operations of */
|
||||
/* initializing to the starting cluster and */
|
||||
/* setting all offsets to zero. */
|
||||
fnp->f_cluster = fnp->f_flags.f_ddir ? fnp->f_dirstart :
|
||||
getdstart(fnp->f_dir);
|
||||
|
||||
fnp->f_cluster_offset = 0l;
|
||||
fnp->f_back = LONG_LAST_CLUSTER;
|
||||
fnp->f_sector = 0;
|
||||
fnp->f_boff = 0;
|
||||
}
|
||||
/* The more difficult scenario is the (more common) */
|
||||
/* file offset case. Here, we need to take the fnode's */
|
||||
/* offset pointer (f_offset) and translate it into a */
|
||||
@ -1814,8 +1585,6 @@ UCOUNT readblock(COUNT fd, VOID FAR * buffer, UCOUNT count, COUNT * err)
|
||||
/* The algorithm in this function takes advantage of */
|
||||
/* the blockio block buffering scheme to simplify the */
|
||||
/* task. */
|
||||
else
|
||||
{
|
||||
#ifdef DISPLAY_GETBLOCK
|
||||
printf("readblock: ");
|
||||
#endif
|
||||
@ -1825,16 +1594,12 @@ UCOUNT readblock(COUNT fd, VOID FAR * buffer, UCOUNT count, COUNT * err)
|
||||
dir_close(fnp);
|
||||
return ret_cnt;
|
||||
}
|
||||
}
|
||||
|
||||
/* Compute the block within the cluster and the offset */
|
||||
/* within the block. */
|
||||
fnp->f_sector = (fnp->f_offset / secsize) & fnp->f_dpb->dpb_clsmask;
|
||||
fnp->f_boff = fnp->f_offset & (secsize - 1);
|
||||
|
||||
|
||||
|
||||
|
||||
currentblock = clus2phys(fnp->f_cluster, fnp->f_dpb) + fnp->f_sector;
|
||||
|
||||
/* see comments above */
|
||||
@ -1912,14 +1677,6 @@ normal_read:
|
||||
fnp->f_diroff,
|
||||
fnp->f_cluster);
|
||||
#endif
|
||||
/* Do an EOF test and return whatever was transferred */
|
||||
/* but only for regular files. */
|
||||
if (!(fnp->f_flags.f_ddir)
|
||||
&& (fnp->f_offset >= fnp->f_highwater))
|
||||
{
|
||||
*err = SUCCESS;
|
||||
return ret_cnt;
|
||||
}
|
||||
|
||||
/* Get the block we need from cache */
|
||||
bp = getblock(currentblock /*clus2phys(fnp->f_cluster, fnp->f_dpb) + fnp->f_sector*/,
|
||||
@ -1945,7 +1702,7 @@ normal_read:
|
||||
xfr_cnt = (UWORD)min(min(to_xfer, secsize - fnp->f_boff),
|
||||
fnp->f_highwater - fnp->f_offset);
|
||||
|
||||
fbcopy((BYTE FAR *) & bp->b_buffer[fnp->f_boff], buffer, xfr_cnt);
|
||||
fmemcpy(buffer, &bp->b_buffer[fnp->f_boff], xfr_cnt);
|
||||
|
||||
/* complete buffer read ?
|
||||
probably not reused later
|
||||
@ -2114,6 +1871,7 @@ UCOUNT writeblock(COUNT fd, VOID FAR * buffer, UCOUNT count, COUNT * err)
|
||||
/* FAT allocation has to be extended if necessary TE */
|
||||
/* Now done in dos_extend BO */
|
||||
/* remove all the following allocated clusters in shrink_file */
|
||||
fnp->f_highwater = fnp->f_offset;
|
||||
shrink_file(fnp);
|
||||
return 0;
|
||||
}
|
||||
@ -2246,7 +2004,7 @@ UCOUNT writeblock(COUNT fd, VOID FAR * buffer, UCOUNT count, COUNT * err)
|
||||
- Ron Cemer
|
||||
xfr_cnt = min(to_xfer, secsize - fnp->f_boff);
|
||||
*/
|
||||
fbcopy(buffer, (BYTE FAR *) & bp->b_buffer[fnp->f_boff], xfr_cnt);
|
||||
fmemcpy(&bp->b_buffer[fnp->f_boff], buffer, xfr_cnt);
|
||||
bp->b_flag |= BFR_DIRTY | BFR_VALID;
|
||||
|
||||
if (xfr_cnt == sizeof(bp->b_buffer)) /* probably not used later */
|
||||
@ -2713,3 +2471,150 @@ done:
|
||||
|
||||
}
|
||||
|
||||
/*
|
||||
* TE 12 jun 2001 bugs corrected
|
||||
* handles disk full (in a incompatible way :-( )
|
||||
* allows use of last cluster
|
||||
* prevents mkdir, if disk is full (was creating crosslinked dirs)
|
||||
* bugs detected, but NOT corrected
|
||||
* on disk full, MSDOS will NOT write any byte, simply return SUCCESS, 0 bytes
|
||||
* FreeDOS will write all possible bytes, then close file(BUG)
|
||||
*
|
||||
* the dos_mkdir/extenddir (with getblock() instead of getblockOver) was a real
|
||||
* performance killer on large drives. (~0.5 sec /dos_mkdir) TE
|
||||
*
|
||||
* Log: fatfs.c,v - for newer log entries do "cvs log fatfs.c"
|
||||
*
|
||||
* /// 2000/08/12 22:49:00 Ron Cemer
|
||||
* Fixed writeblock() to only use getbuf() if writing a
|
||||
* complete sector; otherwise use getbloc() and do a
|
||||
* read-modify-write to prevent writing garbage back
|
||||
* over pre-existing data in the file.
|
||||
* This was a major BUG.
|
||||
*
|
||||
* Revision 1.23 2000/04/29 05:13:16 jtabor
|
||||
* Added new functions and clean up code
|
||||
*
|
||||
* Revision 1.19 2000/03/17 22:59:04 kernel
|
||||
* Steffen Kaiser's NLS changes
|
||||
*
|
||||
* Revision 1.18 2000/03/17 04:13:12 kernel
|
||||
* Added Change for media_check
|
||||
*
|
||||
* Revision 1.17 2000/03/17 04:01:20 kernel
|
||||
* Added Change for media_check
|
||||
*
|
||||
* Revision 1.16 2000/03/09 06:07:11 kernel
|
||||
* 2017f updates by James Tabor
|
||||
*
|
||||
* Revision 1.15 1999/09/23 04:40:46 jprice
|
||||
* *** empty log message ***
|
||||
*
|
||||
* Revision 1.12 1999/09/14 01:01:54 jprice
|
||||
* Fixed bug where you could write over directories.
|
||||
*
|
||||
* Revision 1.11 1999/08/25 03:18:08 jprice
|
||||
* ror4 patches to allow TC 2.01 compile.
|
||||
*
|
||||
* Revision 1.10 1999/08/10 18:03:42 jprice
|
||||
* ror4 2011-03 patch
|
||||
*
|
||||
* Revision 1.9 1999/05/03 06:25:45 jprice
|
||||
* Patches from ror4 and many changed of signed to unsigned variables.
|
||||
*
|
||||
* Revision 1.8 1999/05/03 05:00:24 jprice
|
||||
* Fixed bug in map_cluster function
|
||||
*
|
||||
* Revision 1.7 1999/04/16 00:53:33 jprice
|
||||
* Optimized FAT handling
|
||||
*
|
||||
* Revision 1.6 1999/04/12 23:41:54 jprice
|
||||
* Using getbuf to write data instead of getblock
|
||||
* using getblock made it read the block before it wrote it
|
||||
*
|
||||
* Revision 1.5 1999/04/12 03:21:17 jprice
|
||||
* more ror4 patches. Changes for multi-block IO
|
||||
*
|
||||
* Revision 1.4 1999/04/11 04:33:38 jprice
|
||||
* ror4 patches
|
||||
*
|
||||
* Revision 1.2 1999/04/04 18:51:43 jprice
|
||||
* no message
|
||||
*
|
||||
* Revision 1.1.1.1 1999/03/29 15:42:07 jprice
|
||||
* New version without IPL.SYS
|
||||
*
|
||||
* Revision 1.8 1999/03/23 23:37:39 jprice
|
||||
* Fixed mkdir DOS function so it will create a directory with same name as the volument label
|
||||
*
|
||||
* Revision 1.7 1999/03/02 07:00:51 jprice
|
||||
* Fixed bugs with dos set attribute function. Now returns correct
|
||||
* error code, and errors if user tries to set bits 6 & 7.
|
||||
*
|
||||
* Revision 1.6 1999/02/09 02:54:23 jprice
|
||||
* Added Pat's 1937 kernel patches
|
||||
*
|
||||
* Revision 1.5 1999/02/04 03:18:37 jprice
|
||||
* Formating. Added comments.
|
||||
*
|
||||
* Revision 1.4 1999/02/01 01:43:28 jprice
|
||||
* Fixed findfirst function to find volume label with Windows long filenames
|
||||
*
|
||||
* Revision 1.3 1999/01/30 08:25:34 jprice
|
||||
* Clean up; Fixed bug with set attribute function. If you tried to
|
||||
* change the attributes of a directory, it would erase it.
|
||||
*
|
||||
* Revision 1.2 1999/01/22 04:15:28 jprice
|
||||
* Formating
|
||||
*
|
||||
* Revision 1.1.1.1 1999/01/20 05:51:00 jprice
|
||||
* Imported sources
|
||||
*
|
||||
*
|
||||
* Rev 1.14 06 Dec 1998 8:44:26 patv
|
||||
* Bug fixes.
|
||||
*
|
||||
* Rev 1.13 09 Feb 1998 5:43:30 patv
|
||||
* Eliminated FAT12 EOF and error useage.
|
||||
*
|
||||
* Rev 1.12 03 Feb 1998 11:28:04 patv
|
||||
* Fixed lseek bug.
|
||||
*
|
||||
* Rev 1.11 22 Jan 1998 5:38:08 patv
|
||||
* Corrected remaining file name and extension copies that did not
|
||||
* account for far file nodes due to allocated FILES= spec.
|
||||
*
|
||||
* Rev 1.10 22 Jan 1998 4:09:00 patv
|
||||
* Fixed pointer problems affecting SDA
|
||||
*
|
||||
* Rev 1.9 04 Jan 1998 23:14:40 patv
|
||||
* Changed Log for strip utility
|
||||
*
|
||||
* Rev 1.8 04 Jan 1998 17:24:14 patv
|
||||
* Corrected subdirectory bug
|
||||
*
|
||||
* Rev 1.7 03 Jan 1998 8:36:04 patv
|
||||
* Converted data area to SDA format
|
||||
*
|
||||
* Rev 1.6 22 Jan 1997 13:00:30 patv
|
||||
* pre-0.92 bug fixes
|
||||
*
|
||||
* Rev 1.5 16 Jan 1997 12:46:24 patv
|
||||
* pre-Release 0.92 feature additions
|
||||
*
|
||||
* Rev 1.4 29 May 1996 21:15:16 patv
|
||||
* bug fixes for v0.91a
|
||||
*
|
||||
* Rev 1.3 19 Feb 1996 3:20:10 patv
|
||||
* Added NLS, int2f and config.sys processing
|
||||
*
|
||||
* Rev 1.2 01 Sep 1995 17:48:40 patv
|
||||
* First GPL release.
|
||||
*
|
||||
* Rev 1.1 30 Jul 1995 20:50:24 patv
|
||||
* Eliminated version strings in ipl
|
||||
*
|
||||
* Rev 1.0 02 Jul 1995 8:04:46 patv
|
||||
* Initial revision.
|
||||
*/
|
||||
|
||||
|
144
kernel/fattab.c
144
kernel/fattab.c
@ -33,92 +33,6 @@
|
||||
static BYTE *RcsId = "$Id$";
|
||||
#endif
|
||||
|
||||
/*
|
||||
* $Log$
|
||||
* Revision 1.10 2001/11/13 23:36:45 bartoldeman
|
||||
* Kernel 2025a final changes.
|
||||
*
|
||||
* Revision 1.9 2001/11/04 19:47:39 bartoldeman
|
||||
* kernel 2025a changes: see history.txt
|
||||
*
|
||||
* Revision 1.8 2001/09/23 20:39:44 bartoldeman
|
||||
* FAT32 support, misc fixes, INT2F/AH=12 support, drive B: handling
|
||||
*
|
||||
* Revision 1.7 2001/07/09 22:19:33 bartoldeman
|
||||
* LBA/FCB/FAT/SYS/Ctrl-C/ioctl fixes + memory savings
|
||||
*
|
||||
* Revision 1.6 2001/06/03 14:16:17 bartoldeman
|
||||
* BUFFERS tuning and misc bug fixes/cleanups (2024c).
|
||||
*
|
||||
* Revision 1.5 2001/04/21 22:32:53 bartoldeman
|
||||
* Init DS=Init CS, fixed stack overflow problems and misc bugs.
|
||||
*
|
||||
* Revision 1.4 2001/04/15 03:21:50 bartoldeman
|
||||
* See history.txt for the list of fixes.
|
||||
*
|
||||
* Revision 1.3 2000/05/25 20:56:21 jimtabor
|
||||
* Fixed project history
|
||||
*
|
||||
* Revision 1.2 2000/05/08 04:30:00 jimtabor
|
||||
* Update CVS to 2020
|
||||
*
|
||||
* Revision 1.1.1.1 2000/05/06 19:34:53 jhall1
|
||||
* The FreeDOS Kernel. A DOS kernel that aims to be 100% compatible with
|
||||
* MS-DOS. Distributed under the GNU GPL.
|
||||
*
|
||||
* Revision 1.6 1999/08/10 18:03:42 jprice
|
||||
* ror4 2011-03 patch
|
||||
*
|
||||
* Revision 1.5 1999/05/03 06:25:45 jprice
|
||||
* Patches from ror4 and many changed of signed to unsigned variables.
|
||||
*
|
||||
* Revision 1.4 1999/04/16 00:53:33 jprice
|
||||
* Optimized FAT handling
|
||||
*
|
||||
* Revision 1.3 1999/04/11 04:33:38 jprice
|
||||
* ror4 patches
|
||||
*
|
||||
* Revision 1.1.1.1 1999/03/29 15:42:09 jprice
|
||||
* New version without IPL.SYS
|
||||
*
|
||||
* Revision 1.4 1999/02/09 02:54:23 jprice
|
||||
* Added Pat's 1937 kernel patches
|
||||
*
|
||||
* Revision 1.3 1999/02/01 01:43:28 jprice
|
||||
* Fixed findfirst function to find volume label with Windows long filenames
|
||||
*
|
||||
* Revision 1.2 1999/01/22 04:15:28 jprice
|
||||
* Formating
|
||||
*
|
||||
* Revision 1.1.1.1 1999/01/20 05:51:00 jprice
|
||||
* Imported sources
|
||||
*
|
||||
*
|
||||
* Rev 1.7 09 Feb 1998 5:41:08 patv
|
||||
* Eliminated FAT12 EOF and error returns.
|
||||
*
|
||||
* Rev 1.6 04 Jan 1998 23:14:38 patv
|
||||
* Changed Log for strip utility
|
||||
*
|
||||
* Rev 1.5 16 Jan 1997 12:46:22 patv
|
||||
* pre-Release 0.92 feature additions
|
||||
*
|
||||
* Rev 1.4 29 May 1996 21:15:14 patv
|
||||
* bug fixes for v0.91a
|
||||
*
|
||||
* Rev 1.3 19 Feb 1996 3:20:08 patv
|
||||
* Added NLS, int2f and config.sys processing
|
||||
*
|
||||
* Rev 1.2 01 Sep 1995 17:48:42 patv
|
||||
* First GPL release.
|
||||
*
|
||||
* Rev 1.1 30 Jul 1995 20:50:26 patv
|
||||
* Eliminated version strings in ipl
|
||||
*
|
||||
* Rev 1.0 02 Jul 1995 8:04:56 patv
|
||||
* Initial revision.
|
||||
*/
|
||||
|
||||
#ifdef PROTO
|
||||
UCOUNT link_fat12(struct dpb FAR *, CLUSTER, CLUSTER);
|
||||
UCOUNT link_fat16(struct dpb FAR *, CLUSTER, CLUSTER);
|
||||
@ -508,3 +422,61 @@ CLUSTER next_cluster(struct dpb FAR *dpbp, CLUSTER ClusterNum)
|
||||
return LONG_LAST_CLUSTER;
|
||||
}
|
||||
|
||||
/*
|
||||
* Log: fattab.c,v - for newer log entries do "cvs log fattab.c"
|
||||
*
|
||||
* Revision 1.6 1999/08/10 18:03:42 jprice
|
||||
* ror4 2011-03 patch
|
||||
*
|
||||
* Revision 1.5 1999/05/03 06:25:45 jprice
|
||||
* Patches from ror4 and many changed of signed to unsigned variables.
|
||||
*
|
||||
* Revision 1.4 1999/04/16 00:53:33 jprice
|
||||
* Optimized FAT handling
|
||||
*
|
||||
* Revision 1.3 1999/04/11 04:33:38 jprice
|
||||
* ror4 patches
|
||||
*
|
||||
* Revision 1.1.1.1 1999/03/29 15:42:09 jprice
|
||||
* New version without IPL.SYS
|
||||
*
|
||||
* Revision 1.4 1999/02/09 02:54:23 jprice
|
||||
* Added Pat's 1937 kernel patches
|
||||
*
|
||||
* Revision 1.3 1999/02/01 01:43:28 jprice
|
||||
* Fixed findfirst function to find volume label with Windows long filenames
|
||||
*
|
||||
* Revision 1.2 1999/01/22 04:15:28 jprice
|
||||
* Formating
|
||||
*
|
||||
* Revision 1.1.1.1 1999/01/20 05:51:00 jprice
|
||||
* Imported sources
|
||||
*
|
||||
*
|
||||
* Rev 1.7 09 Feb 1998 5:41:08 patv
|
||||
* Eliminated FAT12 EOF and error returns.
|
||||
*
|
||||
* Rev 1.6 04 Jan 1998 23:14:38 patv
|
||||
* Changed Log for strip utility
|
||||
*
|
||||
* Rev 1.5 16 Jan 1997 12:46:22 patv
|
||||
* pre-Release 0.92 feature additions
|
||||
*
|
||||
* Rev 1.4 29 May 1996 21:15:14 patv
|
||||
* bug fixes for v0.91a
|
||||
*
|
||||
* Rev 1.3 19 Feb 1996 3:20:08 patv
|
||||
* Added NLS, int2f and config.sys processing
|
||||
*
|
||||
* Rev 1.2 01 Sep 1995 17:48:42 patv
|
||||
* First GPL release.
|
||||
*
|
||||
* Rev 1.1 30 Jul 1995 20:50:26 patv
|
||||
* Eliminated version strings in ipl
|
||||
*
|
||||
* Rev 1.0 02 Jul 1995 8:04:56 patv
|
||||
* Initial revision.
|
||||
*/
|
||||
|
||||
|
||||
|
||||
|
198
kernel/fcbfns.c
198
kernel/fcbfns.c
@ -33,128 +33,6 @@
|
||||
static BYTE *RcsId = "$Id$";
|
||||
#endif
|
||||
|
||||
/*
|
||||
* $Log$
|
||||
* Revision 1.20 2001/11/13 23:36:45 bartoldeman
|
||||
* Kernel 2025a final changes.
|
||||
*
|
||||
* Revision 1.19 2001/11/04 19:47:39 bartoldeman
|
||||
* kernel 2025a changes: see history.txt
|
||||
*
|
||||
* Revision 1.18 2001/09/23 20:39:44 bartoldeman
|
||||
* FAT32 support, misc fixes, INT2F/AH=12 support, drive B: handling
|
||||
*
|
||||
* Revision 1.17 2001/08/20 20:32:15 bartoldeman
|
||||
* Truename, get free space and ctrl-break fixes.
|
||||
*
|
||||
* Revision 1.16 2001/08/19 12:58:36 bartoldeman
|
||||
* Time and date fixes, Ctrl-S/P, findfirst/next, FCBs, buffers, tsr unloading
|
||||
*
|
||||
* Revision 1.15 2001/07/24 16:56:29 bartoldeman
|
||||
* fixes for FCBs, DJGPP ls, DBLBYTE, dyninit allocation (2024e).
|
||||
*
|
||||
* Revision 1.14 2001/07/23 12:47:42 bartoldeman
|
||||
* FCB fixes and clean-ups, exec int21/ax=4b01, initdisk.c printf
|
||||
*
|
||||
* Revision 1.13 2001/07/22 01:58:58 bartoldeman
|
||||
* Support for Brian's FORMAT, DJGPP libc compilation, cleanups, MSCDEX
|
||||
*
|
||||
* Revision 1.12 2001/07/09 22:19:33 bartoldeman
|
||||
* LBA/FCB/FAT/SYS/Ctrl-C/ioctl fixes + memory savings
|
||||
*
|
||||
* Revision 1.11 2001/06/03 14:16:17 bartoldeman
|
||||
* BUFFERS tuning and misc bug fixes/cleanups (2024c).
|
||||
*
|
||||
* Revision 1.10 2001/04/21 22:32:53 bartoldeman
|
||||
* Init DS=Init CS, fixed stack overflow problems and misc bugs.
|
||||
*
|
||||
* Revision 1.9 2001/04/15 03:21:50 bartoldeman
|
||||
* See history.txt for the list of fixes.
|
||||
*
|
||||
* Revision 1.8 2001/03/30 22:27:42 bartoldeman
|
||||
* Saner lastdrive handling.
|
||||
*
|
||||
* Revision 1.7 2001/03/21 02:56:26 bartoldeman
|
||||
* See history.txt for changes. Bug fixes and HMA support are the main ones.
|
||||
*
|
||||
* Revision 1.6 2000/08/06 05:50:17 jimtabor
|
||||
* Add new files and update cvs with patches and changes
|
||||
*
|
||||
* Revision 1.5 2000/06/21 18:16:46 jimtabor
|
||||
* Add UMB code, patch, and code fixes
|
||||
*
|
||||
* Revision 1.4 2000/05/26 19:25:19 jimtabor
|
||||
* Read History file for Change info
|
||||
*
|
||||
* Revision 1.3 2000/05/25 20:56:21 jimtabor
|
||||
* Fixed project history
|
||||
*
|
||||
* Revision 1.2 2000/05/08 04:30:00 jimtabor
|
||||
* Update CVS to 2020
|
||||
*
|
||||
* Revision 1.1.1.1 2000/05/06 19:34:53 jhall1
|
||||
* The FreeDOS Kernel. A DOS kernel that aims to be 100% compatible with
|
||||
* MS-DOS. Distributed under the GNU GPL.
|
||||
*
|
||||
* Revision 1.7 2000/03/31 05:40:09 jtabor
|
||||
* Added Eric W. Biederman Patches
|
||||
*
|
||||
* Revision 1.6 2000/03/17 22:59:04 kernel
|
||||
* Steffen Kaiser's NLS changes
|
||||
*
|
||||
* Revision 1.5 2000/03/09 06:07:11 kernel
|
||||
* 2017f updates by James Tabor
|
||||
*
|
||||
* Revision 1.4 1999/09/23 04:40:46 jprice
|
||||
* *** empty log message ***
|
||||
*
|
||||
* Revision 1.2 1999/04/04 18:51:43 jprice
|
||||
* no message
|
||||
*
|
||||
* Revision 1.1.1.1 1999/03/29 15:42:15 jprice
|
||||
* New version without IPL.SYS
|
||||
*
|
||||
* Revision 1.5 1999/02/09 02:54:23 jprice
|
||||
* Added Pat's 1937 kernel patches
|
||||
*
|
||||
* Revision 1.4 1999/02/04 03:18:37 jprice
|
||||
* Formating. Added comments.
|
||||
*
|
||||
* Revision 1.3 1999/02/01 01:43:28 jprice
|
||||
* Fixed findfirst function to find volume label with Windows long filenames
|
||||
*
|
||||
* Revision 1.2 1999/01/22 04:15:28 jprice
|
||||
* Formating
|
||||
*
|
||||
* Revision 1.1.1.1 1999/01/20 05:51:00 jprice
|
||||
* Imported sources
|
||||
*
|
||||
*
|
||||
* Rev 1.7 06 Dec 1998 8:44:10 patv
|
||||
* Expanded fcb functions for new I/O subsystem.
|
||||
*
|
||||
* Rev 1.6 04 Jan 1998 23:14:38 patv
|
||||
* Changed Log for strip utility
|
||||
*
|
||||
* Rev 1.5 03 Jan 1998 8:36:02 patv
|
||||
* Converted data area to SDA format
|
||||
*
|
||||
* Rev 1.4 16 Jan 1997 12:46:38 patv
|
||||
* pre-Release 0.92 feature additions
|
||||
*
|
||||
* Rev 1.3 29 May 1996 21:15:14 patv
|
||||
* bug fixes for v0.91a
|
||||
*
|
||||
* Rev 1.2 01 Sep 1995 17:48:44 patv
|
||||
* First GPL release.
|
||||
*
|
||||
* Rev 1.1 30 Jul 1995 20:50:26 patv
|
||||
* Eliminated version strings in ipl
|
||||
*
|
||||
* Rev 1.0 02 Jul 1995 8:06:06 patv
|
||||
* Initial revision.
|
||||
*/
|
||||
|
||||
#define FCB_SUCCESS 0
|
||||
#define FCB_ERR_NODATA 1
|
||||
#define FCB_ERR_EOF 3
|
||||
@ -188,7 +66,7 @@ VOID FatGetDrvData(UCOUNT drive, UCOUNT FAR * spc, UCOUNT FAR * bps,
|
||||
|
||||
/* get the data available from dpb */
|
||||
*nc = 0xffff; /* pass 0xffff to skip free count */
|
||||
if (DosGetFree(drive, spc, &navc, bps, nc))
|
||||
if (DosGetFree((UBYTE)drive, spc, &navc, bps, nc))
|
||||
/* Point to the media desctriptor for this drive */
|
||||
*mdp = (BYTE FAR*)&(CDSp->cds_table[drive].cdsDpb->dpb_mdb);
|
||||
}
|
||||
@ -591,7 +469,7 @@ BOOL FcbCreate(xfcb FAR * lpXfcb)
|
||||
return FALSE;
|
||||
|
||||
sftp = idx_to_sft(sft_idx);
|
||||
sftp->sft_attrib |= SFT_MFCB;
|
||||
sftp->sft_mode |= SFT_MFCB;
|
||||
|
||||
/* check for a device */
|
||||
dhp = IsDevice(PriPathName);
|
||||
@ -665,7 +543,7 @@ BOOL FcbOpen(xfcb FAR * lpXfcb)
|
||||
return FALSE;
|
||||
|
||||
sftp = idx_to_sft(sft_idx);
|
||||
sftp->sft_attrib |= SFT_MFCB;
|
||||
sftp->sft_mode |= SFT_MFCB;
|
||||
|
||||
/* check for a device */
|
||||
lpFcb->fcb_curec = 0;
|
||||
@ -866,7 +744,7 @@ VOID FcbCloseAll()
|
||||
sft FAR *sftp;
|
||||
|
||||
for (idx = 0; (sftp = idx_to_sft(idx)) != (sft FAR *) -1; idx++)
|
||||
if ((sftp->sft_attrib & SFT_MFCB) && sftp->sft_psp == cu_psp)
|
||||
if ((sftp->sft_mode & SFT_MFCB) && sftp->sft_psp == cu_psp)
|
||||
DosCloseSft(idx);
|
||||
}
|
||||
|
||||
@ -886,7 +764,7 @@ BOOL FcbFindFirst(xfcb FAR * lpXfcb)
|
||||
if (lpXfcb->xfcb_flag == 0xff)
|
||||
{
|
||||
wAttr = lpXfcb->xfcb_attrib;
|
||||
fbcopy(lpXfcb, lpDir, 7);
|
||||
fmemcpy(lpDir, lpXfcb, 7);
|
||||
lpDir += 7;
|
||||
}
|
||||
else
|
||||
@ -937,7 +815,7 @@ BOOL FcbFindNext(xfcb FAR * lpXfcb)
|
||||
/* Reconstrct the dirmatch structure from the fcb */
|
||||
Dmatch.dm_drive = lpFcb->fcb_sftno;
|
||||
|
||||
fbcopy(lpFcb->fcb_fname, (BYTE FAR *) Dmatch.dm_name_pat, FNAME_SIZE + FEXT_SIZE);
|
||||
fmemcpy(Dmatch.dm_name_pat, lpFcb->fcb_fname, FNAME_SIZE + FEXT_SIZE);
|
||||
DosUpFMem((BYTE FAR *) Dmatch.dm_name_pat, FNAME_SIZE + FEXT_SIZE);
|
||||
|
||||
Dmatch.dm_attr_srch = wAttr;
|
||||
@ -947,7 +825,7 @@ BOOL FcbFindNext(xfcb FAR * lpXfcb)
|
||||
if ((xfcb FAR *) lpFcb != lpXfcb)
|
||||
{
|
||||
wAttr = lpXfcb->xfcb_attrib;
|
||||
fbcopy(lpXfcb, lpDir, 7);
|
||||
fmemcpy(lpDir, lpXfcb, 7);
|
||||
lpDir += 7;
|
||||
}
|
||||
else
|
||||
@ -978,4 +856,66 @@ BOOL FcbFindNext(xfcb FAR * lpXfcb)
|
||||
}
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Log: fcbfns.c,v - for newer entries see "cvs log fcbfns.c"
|
||||
*
|
||||
* Revision 1.7 2000/03/31 05:40:09 jtabor
|
||||
* Added Eric W. Biederman Patches
|
||||
*
|
||||
* Revision 1.6 2000/03/17 22:59:04 kernel
|
||||
* Steffen Kaiser's NLS changes
|
||||
*
|
||||
* Revision 1.5 2000/03/09 06:07:11 kernel
|
||||
* 2017f updates by James Tabor
|
||||
*
|
||||
* Revision 1.4 1999/09/23 04:40:46 jprice
|
||||
* *** empty log message ***
|
||||
*
|
||||
* Revision 1.2 1999/04/04 18:51:43 jprice
|
||||
* no message
|
||||
*
|
||||
* Revision 1.1.1.1 1999/03/29 15:42:15 jprice
|
||||
* New version without IPL.SYS
|
||||
*
|
||||
* Revision 1.5 1999/02/09 02:54:23 jprice
|
||||
* Added Pat's 1937 kernel patches
|
||||
*
|
||||
* Revision 1.4 1999/02/04 03:18:37 jprice
|
||||
* Formating. Added comments.
|
||||
*
|
||||
* Revision 1.3 1999/02/01 01:43:28 jprice
|
||||
* Fixed findfirst function to find volume label with Windows long filenames
|
||||
*
|
||||
* Revision 1.2 1999/01/22 04:15:28 jprice
|
||||
* Formating
|
||||
*
|
||||
* Revision 1.1.1.1 1999/01/20 05:51:00 jprice
|
||||
* Imported sources
|
||||
*
|
||||
*
|
||||
* Rev 1.7 06 Dec 1998 8:44:10 patv
|
||||
* Expanded fcb functions for new I/O subsystem.
|
||||
*
|
||||
* Rev 1.6 04 Jan 1998 23:14:38 patv
|
||||
* Changed Log for strip utility
|
||||
*
|
||||
* Rev 1.5 03 Jan 1998 8:36:02 patv
|
||||
* Converted data area to SDA format
|
||||
*
|
||||
* Rev 1.4 16 Jan 1997 12:46:38 patv
|
||||
* pre-Release 0.92 feature additions
|
||||
*
|
||||
* Rev 1.3 29 May 1996 21:15:14 patv
|
||||
* bug fixes for v0.91a
|
||||
*
|
||||
* Rev 1.2 01 Sep 1995 17:48:44 patv
|
||||
* First GPL release.
|
||||
*
|
||||
* Rev 1.1 30 Jul 1995 20:50:26 patv
|
||||
* Eliminated version strings in ipl
|
||||
*
|
||||
* Rev 1.0 02 Jul 1995 8:06:06 patv
|
||||
* Initial revision.
|
||||
*/
|
||||
|
||||
|
||||
|
278
kernel/globals.h
278
kernel/globals.h
@ -27,176 +27,12 @@
|
||||
/* Cambridge, MA 02139, USA. */
|
||||
/****************************************************************/
|
||||
|
||||
/* $Logfile: C:/usr/patv/dos-c/src/kernel/globals.h_v $ */
|
||||
#ifdef VERSION_STRINGS
|
||||
#ifdef MAIN
|
||||
static BYTE *Globals_hRcsId = "$Id$";
|
||||
#endif
|
||||
#endif
|
||||
|
||||
/*
|
||||
* $Log$
|
||||
* Revision 1.18 2001/11/04 19:47:39 bartoldeman
|
||||
* kernel 2025a changes: see history.txt
|
||||
*
|
||||
* Revision 1.17 2001/09/23 20:39:44 bartoldeman
|
||||
* FAT32 support, misc fixes, INT2F/AH=12 support, drive B: handling
|
||||
*
|
||||
* Revision 1.16 2001/08/19 12:58:36 bartoldeman
|
||||
* Time and date fixes, Ctrl-S/P, findfirst/next, FCBs, buffers, tsr unloading
|
||||
*
|
||||
* Revision 1.15 2001/07/22 01:58:58 bartoldeman
|
||||
* Support for Brian's FORMAT, DJGPP libc compilation, cleanups, MSCDEX
|
||||
*
|
||||
* Revision 1.14 2001/07/09 22:19:33 bartoldeman
|
||||
* LBA/FCB/FAT/SYS/Ctrl-C/ioctl fixes + memory savings
|
||||
*
|
||||
* Revision 1.13 2001/06/03 14:16:17 bartoldeman
|
||||
* BUFFERS tuning and misc bug fixes/cleanups (2024c).
|
||||
*
|
||||
* Revision 1.12 2001/04/21 22:32:53 bartoldeman
|
||||
* Init DS=Init CS, fixed stack overflow problems and misc bugs.
|
||||
*
|
||||
* Revision 1.11 2001/04/15 03:21:50 bartoldeman
|
||||
* See history.txt for the list of fixes.
|
||||
*
|
||||
* Revision 1.10 2001/04/02 23:18:30 bartoldeman
|
||||
* Misc, zero terminated device names and redirector bugs fixed.
|
||||
*
|
||||
* Revision 1.9 2001/03/30 20:11:14 bartoldeman
|
||||
* Truly got DOS=HIGH reporting for INT21/AX=0x3306 working now.
|
||||
*
|
||||
* Revision 1.8 2001/03/30 19:30:06 bartoldeman
|
||||
* Misc fixes and implementation of SHELLHIGH. See history.txt for details.
|
||||
*
|
||||
* Revision 1.7 2001/03/21 02:56:26 bartoldeman
|
||||
* See history.txt for changes. Bug fixes and HMA support are the main ones.
|
||||
*
|
||||
* Revision 1.6 2000/12/16 01:38:35 jimtabor
|
||||
* Added patches from Bart Oldeman
|
||||
*
|
||||
* Revision 1.5 2000/08/06 05:50:17 jimtabor
|
||||
* Add new files and update cvs with patches and changes
|
||||
*
|
||||
* Revision 1.3 2000/05/25 20:56:21 jimtabor
|
||||
* Fixed project history
|
||||
*
|
||||
* Revision 1.2 2000/05/08 04:30:00 jimtabor
|
||||
* Update CVS to 2020
|
||||
*
|
||||
* Revision 1.1.1.1 2000/05/06 19:34:53 jhall1
|
||||
* The FreeDOS Kernel. A DOS kernel that aims to be 100% compatible with
|
||||
* MS-DOS. Distributed under the GNU GPL.
|
||||
*
|
||||
* Revision 1.17 2000/03/16 03:28:49 kernel
|
||||
* *** empty log message ***
|
||||
*
|
||||
* Revision 1.16 2000/03/09 06:07:11 kernel
|
||||
* 2017f updates by James Tabor
|
||||
*
|
||||
* Revision 1.15 1999/09/23 04:40:47 jprice
|
||||
* *** empty log message ***
|
||||
*
|
||||
* Revision 1.13 1999/08/25 03:18:08 jprice
|
||||
* ror4 patches to allow TC 2.01 compile.
|
||||
*
|
||||
* Revision 1.12 1999/08/10 18:03:43 jprice
|
||||
* ror4 2011-03 patch
|
||||
*
|
||||
* Revision 1.11 1999/05/03 06:25:45 jprice
|
||||
* Patches from ror4 and many changed of signed to unsigned variables.
|
||||
*
|
||||
* Revision 1.10 1999/04/16 21:43:40 jprice
|
||||
* ror4 multi-sector IO
|
||||
*
|
||||
* Revision 1.9 1999/04/16 12:21:22 jprice
|
||||
* Steffen c-break handler changes
|
||||
*
|
||||
* Revision 1.8 1999/04/16 00:53:33 jprice
|
||||
* Optimized FAT handling
|
||||
*
|
||||
* Revision 1.7 1999/04/12 03:21:17 jprice
|
||||
* more ror4 patches. Changes for multi-block IO
|
||||
*
|
||||
* Revision 1.6 1999/04/11 04:33:39 jprice
|
||||
* ror4 patches
|
||||
*
|
||||
* Revision 1.4 1999/04/04 22:57:47 jprice
|
||||
* no message
|
||||
*
|
||||
* Revision 1.3 1999/04/04 18:51:43 jprice
|
||||
* no message
|
||||
*
|
||||
* Revision 1.2 1999/03/29 17:05:09 jprice
|
||||
* ror4 changes
|
||||
*
|
||||
* Revision 1.1.1.1 1999/03/29 15:40:58 jprice
|
||||
* New version without IPL.SYS
|
||||
*
|
||||
* Revision 1.5 1999/02/08 05:55:57 jprice
|
||||
* Added Pat's 1937 kernel patches
|
||||
*
|
||||
* Revision 1.4 1999/02/01 01:48:41 jprice
|
||||
* Clean up; Now you can use hex numbers in config.sys. added config.sys screen function to change screen mode (28 or 43/50 lines)
|
||||
*
|
||||
* Revision 1.3 1999/01/30 08:26:46 jprice
|
||||
* Clean up; commented out copyright messages while we debug.
|
||||
*
|
||||
* Revision 1.2 1999/01/22 04:13:26 jprice
|
||||
* Formating
|
||||
*
|
||||
* Revision 1.1.1.1 1999/01/20 05:51:01 jprice
|
||||
* Imported sources
|
||||
*
|
||||
|
||||
Rev 1.16 06 Dec 1998 8:45:56 patv
|
||||
Expanded due to new I/O subsystem.
|
||||
|
||||
Rev 1.15 07 Feb 1998 20:38:00 patv
|
||||
Modified stack fram to match DOS standard
|
||||
|
||||
Rev 1.14 02 Feb 1998 22:33:46 patv
|
||||
Fixed size of default_drive. Caused failures when break_ena was not zero.
|
||||
|
||||
Rev 1.13 22 Jan 1998 4:09:24 patv
|
||||
Fixed pointer problems affecting SDA
|
||||
|
||||
Rev 1.12 04 Jan 1998 23:16:22 patv
|
||||
Changed Log for strip utility
|
||||
|
||||
Rev 1.11 03 Jan 1998 8:36:50 patv
|
||||
Converted data area to SDA format
|
||||
|
||||
Rev 1.10 06 Feb 1997 21:57:04 patv
|
||||
Changed version format string
|
||||
|
||||
Rev 1.9 06 Feb 1997 21:35:08 patv
|
||||
Modified to support new version format
|
||||
|
||||
Rev 1.8 22 Jan 1997 13:17:14 patv
|
||||
Changed to support version.h and pre-0.92 Svante Frey bug fixes.
|
||||
|
||||
Rev 1.6 16 Jan 1997 12:47:00 patv
|
||||
pre-Release 0.92 feature additions
|
||||
|
||||
Rev 1.5 13 Sep 1996 19:26:32 patv
|
||||
Fixed boot for hard drive
|
||||
|
||||
Rev 1.4 29 Aug 1996 13:07:22 patv
|
||||
Bug fixes for v0.91b
|
||||
|
||||
Rev 1.3 29 May 1996 21:03:34 patv
|
||||
bug fixes for v0.91a
|
||||
|
||||
Rev 1.2 19 Feb 1996 3:23:04 patv
|
||||
Added NLS, int2f and config.sys processing
|
||||
|
||||
Rev 1.1 01 Sep 1995 17:54:16 patv
|
||||
First GPL release.
|
||||
|
||||
Rev 1.0 02 Jul 1995 8:31:00 patv
|
||||
Initial revision.
|
||||
*/
|
||||
|
||||
#include "device.h"
|
||||
#include "mcb.h"
|
||||
@ -280,6 +116,7 @@ static BYTE *Globals_hRcsId = "$Id$";
|
||||
#define ESC 0x1b
|
||||
#define CTL_BS 0x7f
|
||||
|
||||
#define F1 0x3b
|
||||
#define F3 0x3d
|
||||
#define LEFT 0x4b
|
||||
#define RIGHT 0x4d
|
||||
@ -686,3 +523,116 @@ void handle_break(void); /* break.c */
|
||||
GLOBAL BYTE ReturnAnyDosVersionExpected;
|
||||
|
||||
GLOBAL COUNT UnusedRetVal; /* put unused errors here (to save stack space) */
|
||||
|
||||
/*
|
||||
* Log: globals.h,v
|
||||
*
|
||||
* Revision 1.17 2000/03/16 03:28:49 kernel
|
||||
* *** empty log message ***
|
||||
*
|
||||
* Revision 1.16 2000/03/09 06:07:11 kernel
|
||||
* 2017f updates by James Tabor
|
||||
*
|
||||
* Revision 1.15 1999/09/23 04:40:47 jprice
|
||||
* *** empty log message ***
|
||||
*
|
||||
* Revision 1.13 1999/08/25 03:18:08 jprice
|
||||
* ror4 patches to allow TC 2.01 compile.
|
||||
*
|
||||
* Revision 1.12 1999/08/10 18:03:43 jprice
|
||||
* ror4 2011-03 patch
|
||||
*
|
||||
* Revision 1.11 1999/05/03 06:25:45 jprice
|
||||
* Patches from ror4 and many changed of signed to unsigned variables.
|
||||
*
|
||||
* Revision 1.10 1999/04/16 21:43:40 jprice
|
||||
* ror4 multi-sector IO
|
||||
*
|
||||
* Revision 1.9 1999/04/16 12:21:22 jprice
|
||||
* Steffen c-break handler changes
|
||||
*
|
||||
* Revision 1.8 1999/04/16 00:53:33 jprice
|
||||
* Optimized FAT handling
|
||||
*
|
||||
* Revision 1.7 1999/04/12 03:21:17 jprice
|
||||
* more ror4 patches. Changes for multi-block IO
|
||||
*
|
||||
* Revision 1.6 1999/04/11 04:33:39 jprice
|
||||
* ror4 patches
|
||||
*
|
||||
* Revision 1.4 1999/04/04 22:57:47 jprice
|
||||
* no message
|
||||
*
|
||||
* Revision 1.3 1999/04/04 18:51:43 jprice
|
||||
* no message
|
||||
*
|
||||
* Revision 1.2 1999/03/29 17:05:09 jprice
|
||||
* ror4 changes
|
||||
*
|
||||
* Revision 1.1.1.1 1999/03/29 15:40:58 jprice
|
||||
* New version without IPL.SYS
|
||||
*
|
||||
* Revision 1.5 1999/02/08 05:55:57 jprice
|
||||
* Added Pat's 1937 kernel patches
|
||||
*
|
||||
* Revision 1.4 1999/02/01 01:48:41 jprice
|
||||
* Clean up; Now you can use hex numbers in config.sys. added config.sys screen function to change screen mode (28 or 43/50 lines)
|
||||
*
|
||||
* Revision 1.3 1999/01/30 08:26:46 jprice
|
||||
* Clean up; commented out copyright messages while we debug.
|
||||
*
|
||||
* Revision 1.2 1999/01/22 04:13:26 jprice
|
||||
* Formating
|
||||
*
|
||||
* Revision 1.1.1.1 1999/01/20 05:51:01 jprice
|
||||
* Imported sources
|
||||
*
|
||||
|
||||
Rev 1.16 06 Dec 1998 8:45:56 patv
|
||||
Expanded due to new I/O subsystem.
|
||||
|
||||
Rev 1.15 07 Feb 1998 20:38:00 patv
|
||||
Modified stack fram to match DOS standard
|
||||
|
||||
Rev 1.14 02 Feb 1998 22:33:46 patv
|
||||
Fixed size of default_drive. Caused failures when break_ena was not zero.
|
||||
|
||||
Rev 1.13 22 Jan 1998 4:09:24 patv
|
||||
Fixed pointer problems affecting SDA
|
||||
|
||||
Rev 1.12 04 Jan 1998 23:16:22 patv
|
||||
Changed Log for strip utility
|
||||
|
||||
Rev 1.11 03 Jan 1998 8:36:50 patv
|
||||
Converted data area to SDA format
|
||||
|
||||
Rev 1.10 06 Feb 1997 21:57:04 patv
|
||||
Changed version format string
|
||||
|
||||
Rev 1.9 06 Feb 1997 21:35:08 patv
|
||||
Modified to support new version format
|
||||
|
||||
Rev 1.8 22 Jan 1997 13:17:14 patv
|
||||
Changed to support version.h and pre-0.92 Svante Frey bug fixes.
|
||||
|
||||
Rev 1.6 16 Jan 1997 12:47:00 patv
|
||||
pre-Release 0.92 feature additions
|
||||
|
||||
Rev 1.5 13 Sep 1996 19:26:32 patv
|
||||
Fixed boot for hard drive
|
||||
|
||||
Rev 1.4 29 Aug 1996 13:07:22 patv
|
||||
Bug fixes for v0.91b
|
||||
|
||||
Rev 1.3 29 May 1996 21:03:34 patv
|
||||
bug fixes for v0.91a
|
||||
|
||||
Rev 1.2 19 Feb 1996 3:23:04 patv
|
||||
Added NLS, int2f and config.sys processing
|
||||
|
||||
Rev 1.1 01 Sep 1995 17:54:16 patv
|
||||
First GPL release.
|
||||
|
||||
Rev 1.0 02 Jul 1995 8:31:00 patv
|
||||
Initial revision.
|
||||
*/
|
||||
|
@ -55,7 +55,6 @@ COUNT ASMCFUNC strlen(REG BYTE * s);
|
||||
|
||||
#undef LINESIZE
|
||||
#define LINESIZE KBD_MAXLENGTH
|
||||
#define fbcopy(s, d, n) fmemcpy(d,s,n)
|
||||
|
||||
/*inithma.c*/
|
||||
extern BYTE DosLoadedInHMA;
|
||||
|
@ -79,42 +79,6 @@ extern BYTE
|
||||
static BYTE *RcsId = "$Id$";
|
||||
#endif
|
||||
|
||||
/*
|
||||
* $Log$
|
||||
* Revision 1.10 2001/09/23 20:39:44 bartoldeman
|
||||
* FAT32 support, misc fixes, INT2F/AH=12 support, drive B: handling
|
||||
*
|
||||
* Revision 1.9 2001/08/19 12:58:36 bartoldeman
|
||||
* Time and date fixes, Ctrl-S/P, findfirst/next, FCBs, buffers, tsr unloading
|
||||
*
|
||||
* Revision 1.8 2001/07/28 18:13:06 bartoldeman
|
||||
* Fixes for FORMAT+SYS, FATFS, get current dir, kernel init memory situation.
|
||||
*
|
||||
* Revision 1.7 2001/07/09 22:19:33 bartoldeman
|
||||
* LBA/FCB/FAT/SYS/Ctrl-C/ioctl fixes + memory savings
|
||||
*
|
||||
* Revision 1.6 2001/04/29 17:34:40 bartoldeman
|
||||
* A new SYS.COM/config.sys single stepping/console output/misc fixes.
|
||||
*
|
||||
* Revision 1.5 2001/04/21 22:32:53 bartoldeman
|
||||
* Init DS=Init CS, fixed stack overflow problems and misc bugs.
|
||||
*
|
||||
* Revision 1.4 2001/04/16 01:45:26 bartoldeman
|
||||
* Fixed handles, config.sys drivers, warnings. Enabled INT21/AH=6C, printf %S/%Fs
|
||||
*
|
||||
* Revision 1.3 2001/04/15 03:21:50 bartoldeman
|
||||
* See history.txt for the list of fixes.
|
||||
*
|
||||
* Revision 1.2 2001/03/30 19:30:06 bartoldeman
|
||||
* Misc fixes and implementation of SHELLHIGH. See history.txt for details.
|
||||
*
|
||||
* Revision 1.1 2001/03/21 03:01:45 bartoldeman
|
||||
* New file by Tom Ehlert for HMA initialization.
|
||||
*
|
||||
* Revision 0.1 2001/03/16 12:00:00 tom ehlert
|
||||
* initial creation
|
||||
*/
|
||||
|
||||
|
||||
BYTE DosLoadedInHMA=FALSE; /* set to TRUE if loaded HIGH */
|
||||
BYTE HMAclaimed=FALSE; /* set to TRUE if claimed from HIMEM */
|
||||
@ -547,3 +511,10 @@ void MoveKernel(unsigned NewKernelSegment)
|
||||
errorReturn:
|
||||
for (;;);
|
||||
}
|
||||
|
||||
/*
|
||||
* Log: inithma.c,v - for newer entries do "cvs log inithma.c"
|
||||
*
|
||||
* Revision 0.1 2001/03/16 12:00:00 tom ehlert
|
||||
* initial creation
|
||||
*/
|
||||
|
@ -34,23 +34,25 @@
|
||||
static BYTE *RcsId = "$Id$";
|
||||
#endif
|
||||
|
||||
UWORD init_oem(void)
|
||||
{
|
||||
UWORD top_k;
|
||||
|
||||
#ifndef __TURBOC__
|
||||
asm
|
||||
{
|
||||
int 0x12;
|
||||
mov top_k,ax;
|
||||
}
|
||||
#else
|
||||
__int__(0x12);
|
||||
top_k = _AX;
|
||||
#endif
|
||||
return top_k;
|
||||
}
|
||||
|
||||
/*
|
||||
* $Log$
|
||||
* Revision 1.5 2001/09/23 20:39:44 bartoldeman
|
||||
* FAT32 support, misc fixes, INT2F/AH=12 support, drive B: handling
|
||||
*
|
||||
* Revision 1.4 2001/04/21 22:32:53 bartoldeman
|
||||
* Init DS=Init CS, fixed stack overflow problems and misc bugs.
|
||||
*
|
||||
* Revision 1.3 2000/05/25 20:56:21 jimtabor
|
||||
* Fixed project history
|
||||
*
|
||||
* Revision 1.2 2000/05/08 04:30:00 jimtabor
|
||||
* Update CVS to 2020
|
||||
*
|
||||
* Revision 1.1.1.1 2000/05/06 19:34:53 jhall1
|
||||
* The FreeDOS Kernel. A DOS kernel that aims to be 100% compatible with
|
||||
* MS-DOS. Distributed under the GNU GPL.
|
||||
* Log: initoem.c,v - for newer entries do "cvs log initoem.c"
|
||||
*
|
||||
* Revision 1.3 2000/03/09 06:07:11 kernel
|
||||
* 2017f updates by James Tabor
|
||||
@ -93,19 +95,3 @@ static BYTE *RcsId = "$Id$";
|
||||
* Initial revision.
|
||||
*/
|
||||
|
||||
UWORD init_oem(void)
|
||||
{
|
||||
UWORD top_k;
|
||||
|
||||
#ifndef __TURBOC__
|
||||
asm
|
||||
{
|
||||
int 0x12;
|
||||
mov top_k,ax;
|
||||
}
|
||||
#else
|
||||
__int__(0x12);
|
||||
top_k = _AX;
|
||||
#endif
|
||||
return top_k;
|
||||
}
|
||||
|
118
kernel/int2f.asm
118
kernel/int2f.asm
@ -25,88 +25,7 @@
|
||||
; write to the Free Software Foundation, 675 Mass Ave,
|
||||
; Cambridge, MA 02139, USA.
|
||||
;
|
||||
; $Logfile: D:/dos-c/src/kernel/int2f.asv $
|
||||
;
|
||||
; $Id$
|
||||
;
|
||||
; $Log$
|
||||
; Revision 1.14 2001/11/04 19:47:39 bartoldeman
|
||||
; kernel 2025a changes: see history.txt
|
||||
;
|
||||
; Revision 1.13 2001/09/23 20:39:44 bartoldeman
|
||||
; FAT32 support, misc fixes, INT2F/AH=12 support, drive B: handling
|
||||
;
|
||||
; Revision 1.12 2001/08/19 12:58:36 bartoldeman
|
||||
; Time and date fixes, Ctrl-S/P, findfirst/next, FCBs, buffers, tsr unloading
|
||||
;
|
||||
; Revision 1.11 2001/07/28 18:13:06 bartoldeman
|
||||
; Fixes for FORMAT+SYS, FATFS, get current dir, kernel init memory situation.
|
||||
;
|
||||
; Revision 1.10 2001/07/22 01:58:58 bartoldeman
|
||||
; Support for Brian's FORMAT, DJGPP libc compilation, cleanups, MSCDEX
|
||||
;
|
||||
; Revision 1.9 2001/07/09 22:19:33 bartoldeman
|
||||
; LBA/FCB/FAT/SYS/Ctrl-C/ioctl fixes + memory savings
|
||||
;
|
||||
; Revision 1.8 2001/04/02 23:18:30 bartoldeman
|
||||
; Misc, zero terminated device names and redirector bugs fixed.
|
||||
;
|
||||
; Revision 1.7 2001/03/21 02:56:26 bartoldeman
|
||||
; See history.txt for changes. Bug fixes and HMA support are the main ones.
|
||||
;
|
||||
; Revision 1.6 2000/08/06 05:50:17 jimtabor
|
||||
; Add new files and update cvs with patches and changes
|
||||
;
|
||||
; Revision 1.5 2000/06/21 18:16:46 jimtabor
|
||||
; Add UMB code, patch, and code fixes
|
||||
;
|
||||
; Revision 1.4 2000/05/25 20:56:21 jimtabor
|
||||
; Fixed project history
|
||||
;
|
||||
; Revision 1.3 2000/05/17 19:15:12 jimtabor
|
||||
; Cleanup, add and fix source.
|
||||
;
|
||||
; Revision 1.2 2000/05/08 04:30:00 jimtabor
|
||||
; Update CVS to 2020
|
||||
;
|
||||
; Revision 1.1.1.1 2000/05/06 19:34:53 jhall1
|
||||
; The FreeDOS Kernel. A DOS kernel that aims to be 100% compatible with
|
||||
; MS-DOS. Distributed under the GNU GPL.
|
||||
;
|
||||
; Revision 1.4 2000/03/31 05:40:09 jtabor
|
||||
; Added Eric W. Biederman Patches
|
||||
;
|
||||
; Revision 1.3 2000/03/09 06:07:11 kernel
|
||||
; 2017f updates by James Tabor
|
||||
;
|
||||
; Revision 1.2 1999/08/10 17:57:12 jprice
|
||||
; ror4 2011-02 patch
|
||||
;
|
||||
; Revision 1.1.1.1 1999/03/29 15:40:59 jprice
|
||||
; New version without IPL.SYS
|
||||
;
|
||||
; Revision 1.4 1999/02/08 05:55:57 jprice
|
||||
; Added Pat's 1937 kernel patches
|
||||
;
|
||||
; Revision 1.3 1999/02/01 01:48:41 jprice
|
||||
; Clean up; Now you can use hex numbers in config.sys. added config.sys screen function to change screen mode (28 or 43/50 lines)
|
||||
;
|
||||
; Revision 1.2 1999/01/22 04:13:26 jprice
|
||||
; Formating
|
||||
;
|
||||
; Revision 1.1.1.1 1999/01/20 05:51:01 jprice
|
||||
; Imported sources
|
||||
;
|
||||
;
|
||||
; Rev 1.2 06 Dec 1998 8:48:12 patv
|
||||
; Bug fixes.
|
||||
;
|
||||
; Rev 1.1 29 May 1996 21:03:46 patv
|
||||
; bug fixes for v0.91a
|
||||
;
|
||||
; Rev 1.0 19 Feb 1996 3:34:38 patv
|
||||
; Initial revision.
|
||||
; $EndLog$
|
||||
;
|
||||
|
||||
%include "segs.inc"
|
||||
@ -606,3 +525,40 @@ umbt_ret:
|
||||
|
||||
umbt_error: xor ax,ax
|
||||
jmp umbt_ret
|
||||
|
||||
; Log: int2f.asm,v
|
||||
; Revision 1.4 2000/03/31 05:40:09 jtabor
|
||||
; Added Eric W. Biederman Patches
|
||||
;
|
||||
; Revision 1.3 2000/03/09 06:07:11 kernel
|
||||
; 2017f updates by James Tabor
|
||||
;
|
||||
; Revision 1.2 1999/08/10 17:57:12 jprice
|
||||
; ror4 2011-02 patch
|
||||
;
|
||||
; Revision 1.1.1.1 1999/03/29 15:40:59 jprice
|
||||
; New version without IPL.SYS
|
||||
;
|
||||
; Revision 1.4 1999/02/08 05:55:57 jprice
|
||||
; Added Pat's 1937 kernel patches
|
||||
;
|
||||
; Revision 1.3 1999/02/01 01:48:41 jprice
|
||||
; Clean up; Now you can use hex numbers in config.sys. added config.sys screen function to change screen mode (28 or 43/50 lines)
|
||||
;
|
||||
; Revision 1.2 1999/01/22 04:13:26 jprice
|
||||
; Formating
|
||||
;
|
||||
; Revision 1.1.1.1 1999/01/20 05:51:01 jprice
|
||||
; Imported sources
|
||||
;
|
||||
;
|
||||
; Rev 1.2 06 Dec 1998 8:48:12 patv
|
||||
; Bug fixes.
|
||||
;
|
||||
; Rev 1.1 29 May 1996 21:03:46 patv
|
||||
; bug fixes for v0.91a
|
||||
;
|
||||
; Rev 1.0 19 Feb 1996 3:34:38 patv
|
||||
; Initial revision.
|
||||
; EndLog
|
||||
;
|
||||
|
@ -35,242 +35,6 @@
|
||||
BYTE *RcsId = "$Id$";
|
||||
#endif
|
||||
|
||||
/*
|
||||
* $Log$
|
||||
* Revision 1.34 2001/11/14 00:15:05 bartoldeman
|
||||
* Fixed typo in dpbp
|
||||
*
|
||||
* Revision 1.33 2001/11/13 23:36:45 bartoldeman
|
||||
* Kernel 2025a final changes.
|
||||
*
|
||||
* Revision 1.32 2001/11/04 19:47:39 bartoldeman
|
||||
* kernel 2025a changes: see history.txt
|
||||
*
|
||||
* Revision 1.31 2001/09/23 20:39:44 bartoldeman
|
||||
* FAT32 support, misc fixes, INT2F/AH=12 support, drive B: handling
|
||||
*
|
||||
* Revision 1.30 2001/08/19 12:58:36 bartoldeman
|
||||
* Time and date fixes, Ctrl-S/P, findfirst/next, FCBs, buffers, tsr unloading
|
||||
*
|
||||
* Revision 1.29 2001/07/28 18:13:06 bartoldeman
|
||||
* Fixes for FORMAT+SYS, FATFS, get current dir, kernel init memory situation.
|
||||
*
|
||||
* Revision 1.28 2001/07/24 16:56:29 bartoldeman
|
||||
* fixes for FCBs, DJGPP ls, DBLBYTE, dyninit allocation (2024e).
|
||||
*
|
||||
* Revision 1.27 2001/07/23 12:47:42 bartoldeman
|
||||
* FCB fixes and clean-ups, exec int21/ax=4b01, initdisk.c printf
|
||||
*
|
||||
* Revision 1.26 2001/07/22 01:58:58 bartoldeman
|
||||
* Support for Brian's FORMAT, DJGPP libc compilation, cleanups, MSCDEX
|
||||
*
|
||||
* Revision 1.25 2001/07/09 22:19:33 bartoldeman
|
||||
* LBA/FCB/FAT/SYS/Ctrl-C/ioctl fixes + memory savings
|
||||
*
|
||||
* Revision 1.24 2001/06/03 14:16:18 bartoldeman
|
||||
* BUFFERS tuning and misc bug fixes/cleanups (2024c).
|
||||
*
|
||||
* Revision 1.23 2001/04/29 17:34:40 bartoldeman
|
||||
* A new SYS.COM/config.sys single stepping/console output/misc fixes.
|
||||
*
|
||||
* Revision 1.22 2001/04/21 22:32:53 bartoldeman
|
||||
* Init DS=Init CS, fixed stack overflow problems and misc bugs.
|
||||
*
|
||||
* Revision 1.21 2001/04/16 01:45:26 bartoldeman
|
||||
* Fixed handles, config.sys drivers, warnings. Enabled INT21/AH=6C, printf %S/%Fs
|
||||
*
|
||||
* Revision 1.20 2001/04/15 03:21:50 bartoldeman
|
||||
* See history.txt for the list of fixes.
|
||||
*
|
||||
* Revision 1.19 2001/04/02 23:18:30 bartoldeman
|
||||
* Misc, zero terminated device names and redirector bugs fixed.
|
||||
*
|
||||
* Revision 1.18 2001/03/30 22:27:42 bartoldeman
|
||||
* Saner lastdrive handling.
|
||||
*
|
||||
* Revision 1.17 2001/03/30 19:30:06 bartoldeman
|
||||
* Misc fixes and implementation of SHELLHIGH. See history.txt for details.
|
||||
*
|
||||
* Revision 1.16 2001/03/27 20:27:43 bartoldeman
|
||||
* dsk.c (reported by Nagy Daniel), inthndlr and int25/26 fixes by Tom Ehlert.
|
||||
*
|
||||
* Revision 1.15 2001/03/25 17:11:54 bartoldeman
|
||||
* Fixed sys.com compilation. Updated to 2023. Also: see history.txt.
|
||||
*
|
||||
* Revision 1.14 2001/03/21 02:56:26 bartoldeman
|
||||
* See history.txt for changes. Bug fixes and HMA support are the main ones.
|
||||
*
|
||||
* Revision 1.13 2001/03/08 21:00:00 bartoldeman
|
||||
* MCB chain corruption and DosFindNext fix (thanks Martin Stromberg and Tom Ehlert)
|
||||
*
|
||||
* Revision 1.12 2000/12/16 01:38:35 jimtabor
|
||||
* Added patches from Bart Oldeman
|
||||
*
|
||||
* Revision 1.11 2000/10/30 00:21:15 jimtabor
|
||||
* Adding Brian Reifsnyder Fix for Int 25/26
|
||||
*
|
||||
* 2000/09/04 Brian Reifsnyder
|
||||
* Modified interrupts 0x25 & 0x26 to return more accurate error codes.
|
||||
*
|
||||
* Revision 1.10 2000/10/29 23:51:56 jimtabor
|
||||
* Adding Share Support by Ron Cemer
|
||||
*
|
||||
* Revision 1.9 2000/08/06 05:50:17 jimtabor
|
||||
* Add new files and update cvs with patches and changes
|
||||
*
|
||||
* Revision 1.8 2000/06/21 18:16:46 jimtabor
|
||||
* Add UMB code, patch, and code fixes
|
||||
*
|
||||
* Revision 1.7 2000/05/25 20:56:21 jimtabor
|
||||
* Fixed project history
|
||||
*
|
||||
* Revision 1.6 2000/05/17 19:15:12 jimtabor
|
||||
* Cleanup, add and fix source.
|
||||
*
|
||||
* Revision 1.5 2000/05/11 06:14:45 jimtabor
|
||||
* Removed #if statement
|
||||
*
|
||||
* Revision 1.4 2000/05/11 04:26:26 jimtabor
|
||||
* Added code for DOS FN 69 & 6C
|
||||
*
|
||||
* Revision 1.3 2000/05/09 00:30:11 jimtabor
|
||||
* Clean up and Release
|
||||
*
|
||||
* Revision 1.2 2000/05/08 04:30:00 jimtabor
|
||||
* Update CVS to 2020
|
||||
*
|
||||
* Revision 1.1.1.1 2000/05/06 19:34:53 jhall1
|
||||
* The FreeDOS Kernel. A DOS kernel that aims to be 100% compatible with
|
||||
* MS-DOS. Distributed under the GNU GPL.
|
||||
*
|
||||
* Revision 1.24 2000/04/29 05:13:16 jtabor
|
||||
* Added new functions and clean up code
|
||||
*
|
||||
* Revision 1.22 2000/03/17 22:59:04 kernel
|
||||
* Steffen Kaiser's NLS changes
|
||||
*
|
||||
* Revision 1.21 2000/03/17 05:00:11 kernel
|
||||
* Fixed Func 0x32
|
||||
*
|
||||
* Revision 1.20 2000/03/16 03:28:49 kernel
|
||||
* *** empty log message ***
|
||||
*
|
||||
* Revision 1.19 2000/03/09 06:07:11 kernel
|
||||
* 2017f updates by James Tabor
|
||||
*
|
||||
* Revision 1.18 1999/09/23 04:40:47 jprice
|
||||
* *** empty log message ***
|
||||
*
|
||||
* Revision 1.13 1999/09/14 01:18:36 jprice
|
||||
* ror4: fix int25 & 26 are not cached.
|
||||
*
|
||||
* Revision 1.12 1999/09/13 22:16:47 jprice
|
||||
* Fix 210B function
|
||||
*
|
||||
* Revision 1.11 1999/08/25 03:18:08 jprice
|
||||
* ror4 patches to allow TC 2.01 compile.
|
||||
*
|
||||
* Revision 1.10 1999/08/10 18:07:57 jprice
|
||||
* ror4 2011-04 patch
|
||||
*
|
||||
* Revision 1.9 1999/08/10 18:03:43 jprice
|
||||
* ror4 2011-03 patch
|
||||
*
|
||||
* Revision 1.8 1999/05/03 06:25:45 jprice
|
||||
* Patches from ror4 and many changed of signed to unsigned variables.
|
||||
*
|
||||
* Revision 1.7 1999/04/23 04:24:39 jprice
|
||||
* Memory manager changes made by ska
|
||||
*
|
||||
* Revision 1.6 1999/04/16 12:21:22 jprice
|
||||
* Steffen c-break handler changes
|
||||
*
|
||||
* Revision 1.5 1999/04/11 04:33:39 jprice
|
||||
* ror4 patches
|
||||
*
|
||||
* Revision 1.3 1999/04/04 22:57:47 jprice
|
||||
* no message
|
||||
*
|
||||
* Revision 1.2 1999/04/04 18:51:43 jprice
|
||||
* no message
|
||||
*
|
||||
* Revision 1.1.1.1 1999/03/29 15:41:04 jprice
|
||||
* New version without IPL.SYS
|
||||
*
|
||||
* Revision 1.9 1999/03/23 23:38:49 jprice
|
||||
* Now sets carry when we don't support a function
|
||||
*
|
||||
* Revision 1.8 1999/03/02 07:02:55 jprice
|
||||
* Added some comments. Fixed some minor bugs.
|
||||
*
|
||||
* Revision 1.7 1999/03/01 05:45:08 jprice
|
||||
* Added some DEBUG ifdef's so that it will compile without DEBUG defined.
|
||||
*
|
||||
* Revision 1.6 1999/02/08 05:55:57 jprice
|
||||
* Added Pat's 1937 kernel patches
|
||||
*
|
||||
* Revision 1.5 1999/02/04 03:11:07 jprice
|
||||
* Formating
|
||||
*
|
||||
* Revision 1.4 1999/02/01 01:48:41 jprice
|
||||
* Clean up; Now you can use hex numbers in config.sys. added config.sys screen function to change screen mode (28 or 43/50 lines)
|
||||
*
|
||||
* Revision 1.3 1999/01/30 08:28:11 jprice
|
||||
* Clean up; Fixed bug with set attribute function.
|
||||
*
|
||||
* Revision 1.2 1999/01/22 04:13:26 jprice
|
||||
* Formating
|
||||
*
|
||||
* Revision 1.1.1.1 1999/01/20 05:51:00 jprice
|
||||
* Imported sources
|
||||
*
|
||||
*
|
||||
* Rev 1.14 06 Dec 1998 8:47:38 patv
|
||||
* Expanded due to improved int 21h handler code.
|
||||
*
|
||||
* Rev 1.13 07 Feb 1998 20:38:46 patv
|
||||
* Modified stack fram to match DOS standard
|
||||
*
|
||||
* Rev 1.12 22 Jan 1998 4:09:26 patv
|
||||
* Fixed pointer problems affecting SDA
|
||||
*
|
||||
* Rev 1.11 06 Jan 1998 20:13:18 patv
|
||||
* Broke apart int21_system from int21_handler.
|
||||
*
|
||||
* Rev 1.10 04 Jan 1998 23:15:22 patv
|
||||
* Changed Log for strip utility
|
||||
*
|
||||
* Rev 1.9 04 Jan 1998 17:26:16 patv
|
||||
* Corrected subdirectory bug
|
||||
*
|
||||
* Rev 1.8 03 Jan 1998 8:36:48 patv
|
||||
* Converted data area to SDA format
|
||||
*
|
||||
* Rev 1.7 01 Aug 1997 2:00:10 patv
|
||||
* COMPATIBILITY: Added return '$' in AL for function int 21h fn 09h
|
||||
*
|
||||
* Rev 1.6 06 Feb 1997 19:05:54 patv
|
||||
* Added hooks for tsc command
|
||||
*
|
||||
* Rev 1.5 22 Jan 1997 13:18:32 patv
|
||||
* pre-0.92 Svante Frey bug fixes.
|
||||
*
|
||||
* Rev 1.4 16 Jan 1997 12:46:46 patv
|
||||
* pre-Release 0.92 feature additions
|
||||
*
|
||||
* Rev 1.3 29 May 1996 21:03:40 patv
|
||||
* bug fixes for v0.91a
|
||||
*
|
||||
* Rev 1.2 19 Feb 1996 3:21:48 patv
|
||||
* Added NLS, int2f and config.sys processing
|
||||
*
|
||||
* Rev 1.1 01 Sep 1995 17:54:20 patv
|
||||
* First GPL release.
|
||||
*
|
||||
* Rev 1.0 02 Jul 1995 8:33:34 patv
|
||||
* Initial revision.
|
||||
*/
|
||||
|
||||
#ifdef TSC
|
||||
static VOID StartTrace(VOID);
|
||||
static bTraceNext = FALSE;
|
||||
@ -405,7 +169,7 @@ VOID ASMCFUNC int21_service(iregs FAR * r)
|
||||
#ifdef DEBUG
|
||||
if (bDumpRegs)
|
||||
{
|
||||
fbcopy((VOID FAR *) user_r, (VOID FAR *) & error_regs, sizeof(iregs));
|
||||
fmemcpy(&error_regs, user_r, sizeof(iregs));
|
||||
printf("System call (21h): %02x\n", user_r->AX);
|
||||
dump_regs = TRUE;
|
||||
dump();
|
||||
@ -2024,8 +1788,7 @@ rebuild_dpb:
|
||||
#ifdef DEBUG
|
||||
if (bDumpRegs)
|
||||
{
|
||||
fbcopy((VOID FAR *) user_r, (VOID FAR *) & error_regs,
|
||||
sizeof(iregs));
|
||||
fmemcpy(&error_regs, user_r, sizeof(iregs));
|
||||
dump_regs = TRUE;
|
||||
dump();
|
||||
}
|
||||
@ -2171,7 +1934,7 @@ struct int2f12regs
|
||||
UWORD callerARG1; /* used if called from INT2F/12 */
|
||||
};
|
||||
|
||||
VOID ASMCFUNC int2F_12_handler(struct int2f12regs r)
|
||||
VOID ASMCFUNC int2F_12_handler(volatile struct int2f12regs r)
|
||||
{
|
||||
UWORD function = r.ax & 0xff;
|
||||
|
||||
@ -2347,3 +2110,170 @@ VOID ASMCFUNC int2F_12_handler(struct int2f12regs r)
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/*
|
||||
* 2000/09/04 Brian Reifsnyder
|
||||
* Modified interrupts 0x25 & 0x26 to return more accurate error codes.
|
||||
*/
|
||||
|
||||
/*
|
||||
* Log: inthndlr.c,v - see "cvs log inthndlr.c" for newer entries.
|
||||
*
|
||||
* Revision 1.10 2000/10/29 23:51:56 jimtabor
|
||||
* Adding Share Support by Ron Cemer
|
||||
*
|
||||
* Revision 1.9 2000/08/06 05:50:17 jimtabor
|
||||
* Add new files and update cvs with patches and changes
|
||||
*
|
||||
* Revision 1.8 2000/06/21 18:16:46 jimtabor
|
||||
* Add UMB code, patch, and code fixes
|
||||
*
|
||||
* Revision 1.7 2000/05/25 20:56:21 jimtabor
|
||||
* Fixed project history
|
||||
*
|
||||
* Revision 1.6 2000/05/17 19:15:12 jimtabor
|
||||
* Cleanup, add and fix source.
|
||||
*
|
||||
* Revision 1.5 2000/05/11 06:14:45 jimtabor
|
||||
* Removed #if statement
|
||||
*
|
||||
* Revision 1.4 2000/05/11 04:26:26 jimtabor
|
||||
* Added code for DOS FN 69 & 6C
|
||||
*
|
||||
* Revision 1.3 2000/05/09 00:30:11 jimtabor
|
||||
* Clean up and Release
|
||||
*
|
||||
* Revision 1.2 2000/05/08 04:30:00 jimtabor
|
||||
* Update CVS to 2020
|
||||
*
|
||||
* Revision 1.1.1.1 2000/05/06 19:34:53 jhall1
|
||||
* The FreeDOS Kernel. A DOS kernel that aims to be 100% compatible with
|
||||
* MS-DOS. Distributed under the GNU GPL.
|
||||
*
|
||||
* Revision 1.24 2000/04/29 05:13:16 jtabor
|
||||
* Added new functions and clean up code
|
||||
*
|
||||
* Revision 1.22 2000/03/17 22:59:04 kernel
|
||||
* Steffen Kaiser's NLS changes
|
||||
*
|
||||
* Revision 1.21 2000/03/17 05:00:11 kernel
|
||||
* Fixed Func 0x32
|
||||
*
|
||||
* Revision 1.20 2000/03/16 03:28:49 kernel
|
||||
* *** empty log message ***
|
||||
*
|
||||
* Revision 1.19 2000/03/09 06:07:11 kernel
|
||||
* 2017f updates by James Tabor
|
||||
*
|
||||
* Revision 1.18 1999/09/23 04:40:47 jprice
|
||||
* *** empty log message ***
|
||||
*
|
||||
* Revision 1.13 1999/09/14 01:18:36 jprice
|
||||
* ror4: fix int25 & 26 are not cached.
|
||||
*
|
||||
* Revision 1.12 1999/09/13 22:16:47 jprice
|
||||
* Fix 210B function
|
||||
*
|
||||
* Revision 1.11 1999/08/25 03:18:08 jprice
|
||||
* ror4 patches to allow TC 2.01 compile.
|
||||
*
|
||||
* Revision 1.10 1999/08/10 18:07:57 jprice
|
||||
* ror4 2011-04 patch
|
||||
*
|
||||
* Revision 1.9 1999/08/10 18:03:43 jprice
|
||||
* ror4 2011-03 patch
|
||||
*
|
||||
* Revision 1.8 1999/05/03 06:25:45 jprice
|
||||
* Patches from ror4 and many changed of signed to unsigned variables.
|
||||
*
|
||||
* Revision 1.7 1999/04/23 04:24:39 jprice
|
||||
* Memory manager changes made by ska
|
||||
*
|
||||
* Revision 1.6 1999/04/16 12:21:22 jprice
|
||||
* Steffen c-break handler changes
|
||||
*
|
||||
* Revision 1.5 1999/04/11 04:33:39 jprice
|
||||
* ror4 patches
|
||||
*
|
||||
* Revision 1.3 1999/04/04 22:57:47 jprice
|
||||
* no message
|
||||
*
|
||||
* Revision 1.2 1999/04/04 18:51:43 jprice
|
||||
* no message
|
||||
*
|
||||
* Revision 1.1.1.1 1999/03/29 15:41:04 jprice
|
||||
* New version without IPL.SYS
|
||||
*
|
||||
* Revision 1.9 1999/03/23 23:38:49 jprice
|
||||
* Now sets carry when we don't support a function
|
||||
*
|
||||
* Revision 1.8 1999/03/02 07:02:55 jprice
|
||||
* Added some comments. Fixed some minor bugs.
|
||||
*
|
||||
* Revision 1.7 1999/03/01 05:45:08 jprice
|
||||
* Added some DEBUG ifdef's so that it will compile without DEBUG defined.
|
||||
*
|
||||
* Revision 1.6 1999/02/08 05:55:57 jprice
|
||||
* Added Pat's 1937 kernel patches
|
||||
*
|
||||
* Revision 1.5 1999/02/04 03:11:07 jprice
|
||||
* Formating
|
||||
*
|
||||
* Revision 1.4 1999/02/01 01:48:41 jprice
|
||||
* Clean up; Now you can use hex numbers in config.sys. added config.sys screen function to change screen mode (28 or 43/50 lines)
|
||||
*
|
||||
* Revision 1.3 1999/01/30 08:28:11 jprice
|
||||
* Clean up; Fixed bug with set attribute function.
|
||||
*
|
||||
* Revision 1.2 1999/01/22 04:13:26 jprice
|
||||
* Formating
|
||||
*
|
||||
* Revision 1.1.1.1 1999/01/20 05:51:00 jprice
|
||||
* Imported sources
|
||||
*
|
||||
*
|
||||
* Rev 1.14 06 Dec 1998 8:47:38 patv
|
||||
* Expanded due to improved int 21h handler code.
|
||||
*
|
||||
* Rev 1.13 07 Feb 1998 20:38:46 patv
|
||||
* Modified stack fram to match DOS standard
|
||||
*
|
||||
* Rev 1.12 22 Jan 1998 4:09:26 patv
|
||||
* Fixed pointer problems affecting SDA
|
||||
*
|
||||
* Rev 1.11 06 Jan 1998 20:13:18 patv
|
||||
* Broke apart int21_system from int21_handler.
|
||||
*
|
||||
* Rev 1.10 04 Jan 1998 23:15:22 patv
|
||||
* Changed Log for strip utility
|
||||
*
|
||||
* Rev 1.9 04 Jan 1998 17:26:16 patv
|
||||
* Corrected subdirectory bug
|
||||
*
|
||||
* Rev 1.8 03 Jan 1998 8:36:48 patv
|
||||
* Converted data area to SDA format
|
||||
*
|
||||
* Rev 1.7 01 Aug 1997 2:00:10 patv
|
||||
* COMPATIBILITY: Added return '$' in AL for function int 21h fn 09h
|
||||
*
|
||||
* Rev 1.6 06 Feb 1997 19:05:54 patv
|
||||
* Added hooks for tsc command
|
||||
*
|
||||
* Rev 1.5 22 Jan 1997 13:18:32 patv
|
||||
* pre-0.92 Svante Frey bug fixes.
|
||||
*
|
||||
* Rev 1.4 16 Jan 1997 12:46:46 patv
|
||||
* pre-Release 0.92 feature additions
|
||||
*
|
||||
* Rev 1.3 29 May 1996 21:03:40 patv
|
||||
* bug fixes for v0.91a
|
||||
*
|
||||
* Rev 1.2 19 Feb 1996 3:21:48 patv
|
||||
* Added NLS, int2f and config.sys processing
|
||||
*
|
||||
* Rev 1.1 01 Sep 1995 17:54:20 patv
|
||||
* First GPL release.
|
||||
*
|
||||
* Rev 1.0 02 Jul 1995 8:33:34 patv
|
||||
* Initial revision.
|
||||
*/
|
||||
|
@ -26,55 +26,6 @@
|
||||
; Cambridge, MA 02139, USA.
|
||||
;
|
||||
; $Header$
|
||||
;
|
||||
; $Log$
|
||||
; Revision 1.11 2001/11/04 19:47:39 bartoldeman
|
||||
; kernel 2025a changes: see history.txt
|
||||
;
|
||||
; Revision 1.10 2001/09/23 20:39:44 bartoldeman
|
||||
; FAT32 support, misc fixes, INT2F/AH=12 support, drive B: handling
|
||||
;
|
||||
; Revision 1.9 2001/04/29 17:34:40 bartoldeman
|
||||
; A new SYS.COM/config.sys single stepping/console output/misc fixes.
|
||||
;
|
||||
; Revision 1.8 2001/04/21 22:32:53 bartoldeman
|
||||
; Init DS=Init CS, fixed stack overflow problems and misc bugs.
|
||||
;
|
||||
; Revision 1.7 2001/03/21 02:56:26 bartoldeman
|
||||
; See history.txt for changes. Bug fixes and HMA support are the main ones.
|
||||
;
|
||||
; Revision 1.6 2000/06/21 18:16:46 jimtabor
|
||||
; Add UMB code, patch, and code fixes
|
||||
;
|
||||
; Revision 1.5 2000/06/01 06:37:38 jimtabor
|
||||
; Read History for Changes
|
||||
;
|
||||
; Revision 1.4 2000/05/26 19:25:19 jimtabor
|
||||
; Read History file for Change info
|
||||
;
|
||||
; Revision 1.3 2000/05/25 20:56:21 jimtabor
|
||||
; Fixed project history
|
||||
;
|
||||
; Revision 1.2 2000/05/08 04:30:00 jimtabor
|
||||
; Update CVS to 2020
|
||||
;
|
||||
; Revision 1.1.1.1 2000/05/06 19:34:53 jhall1
|
||||
; The FreeDOS Kernel. A DOS kernel that aims to be 100% compatible with
|
||||
; MS-DOS. Distributed under the GNU GPL.
|
||||
;
|
||||
; Revision 1.3 2000/03/09 06:07:11 kernel
|
||||
; 2017f updates by James Tabor
|
||||
;
|
||||
; Revision 1.2 1999/08/10 17:57:12 jprice
|
||||
; ror4 2011-02 patch
|
||||
;
|
||||
; Revision 1.1.1.1 1999/03/29 15:41:07 jprice
|
||||
; New version without IPL.SYS
|
||||
;
|
||||
; Revision 1.1 1999/02/08 05:55:57 jprice
|
||||
; Added Pat's 1937 kernel patches
|
||||
;
|
||||
; $EndLog$
|
||||
;
|
||||
|
||||
%include "segs.inc"
|
||||
@ -654,3 +605,18 @@ clk_and_blk_common:
|
||||
popf
|
||||
retf
|
||||
|
||||
; Log: io.asm,v
|
||||
; Revision 1.3 2000/03/09 06:07:11 kernel
|
||||
; 2017f updates by James Tabor
|
||||
;
|
||||
; Revision 1.2 1999/08/10 17:57:12 jprice
|
||||
; ror4 2011-02 patch
|
||||
;
|
||||
; Revision 1.1.1.1 1999/03/29 15:41:07 jprice
|
||||
; New version without IPL.SYS
|
||||
;
|
||||
; Revision 1.1 1999/02/08 05:55:57 jprice
|
||||
; Added Pat's 1937 kernel patches
|
||||
;
|
||||
; EndLog
|
||||
;
|
||||
|
@ -25,43 +25,7 @@
|
||||
; write to the Free Software Foundation, 675 Mass Ave,
|
||||
; Cambridge, MA 02139, USA.
|
||||
;
|
||||
; $Logfile: C:/usr/patv/dos-c/src/kernel/io.inv $
|
||||
;
|
||||
; $Header$
|
||||
;
|
||||
; $Log$
|
||||
; Revision 1.5 2001/09/23 20:39:44 bartoldeman
|
||||
; FAT32 support, misc fixes, INT2F/AH=12 support, drive B: handling
|
||||
;
|
||||
; Revision 1.4 2001/03/21 02:56:26 bartoldeman
|
||||
; See history.txt for changes. Bug fixes and HMA support are the main ones.
|
||||
;
|
||||
; Revision 1.3 2000/05/25 20:56:21 jimtabor
|
||||
; Fixed project history
|
||||
;
|
||||
; Revision 1.2 2000/05/08 04:30:00 jimtabor
|
||||
; Update CVS to 2020
|
||||
;
|
||||
; Revision 1.1.1.1 2000/05/06 19:34:53 jhall1
|
||||
; The FreeDOS Kernel. A DOS kernel that aims to be 100% compatible with
|
||||
; MS-DOS. Distributed under the GNU GPL.
|
||||
;
|
||||
; Revision 1.3 1999/08/10 17:57:12 jprice
|
||||
; ror4 2011-02 patch
|
||||
;
|
||||
; Revision 1.2 1999/03/29 17:05:09 jprice
|
||||
; ror4 changes
|
||||
;
|
||||
; Revision 1.1.1.1 1999/03/29 15:41:08 jprice
|
||||
; New version without IPL.SYS
|
||||
;
|
||||
; Revision 1.1 1999/02/08 05:55:57 jprice
|
||||
; Added Pat's 1937 kernel patches
|
||||
;
|
||||
;
|
||||
; Rev 1.0 06 Dec 1998 8:13:02 patv
|
||||
; Initial revision.
|
||||
; $EndLog$
|
||||
;
|
||||
|
||||
%include "segs.inc"
|
||||
@ -93,3 +57,22 @@
|
||||
extern _IOCommandError:wrt TGROUP
|
||||
extern GetUnitNum:wrt TGROUP
|
||||
extern _ReqPktPtr:wrt TGROUP
|
||||
; Log: io.inc,v
|
||||
;
|
||||
; Revision 1.3 1999/08/10 17:57:12 jprice
|
||||
; ror4 2011-02 patch
|
||||
;
|
||||
; Revision 1.2 1999/03/29 17:05:09 jprice
|
||||
; ror4 changes
|
||||
;
|
||||
; Revision 1.1.1.1 1999/03/29 15:41:08 jprice
|
||||
; New version without IPL.SYS
|
||||
;
|
||||
; Revision 1.1 1999/02/08 05:55:57 jprice
|
||||
; Added Pat's 1937 kernel patches
|
||||
;
|
||||
;
|
||||
; Rev 1.0 06 Dec 1998 8:13:02 patv
|
||||
; Initial revision.
|
||||
; EndLog
|
||||
;
|
||||
|
148
kernel/ioctl.c
148
kernel/ioctl.c
@ -33,99 +33,6 @@
|
||||
static BYTE *RcsId = "$Id$";
|
||||
#endif
|
||||
|
||||
/*
|
||||
* $Log$
|
||||
* Revision 1.13 2001/11/13 23:36:45 bartoldeman
|
||||
* Kernel 2025a final changes.
|
||||
*
|
||||
* Revision 1.12 2001/11/04 19:47:39 bartoldeman
|
||||
* kernel 2025a changes: see history.txt
|
||||
*
|
||||
* Revision 1.11 2001/07/22 01:58:58 bartoldeman
|
||||
* Support for Brian's FORMAT, DJGPP libc compilation, cleanups, MSCDEX
|
||||
*
|
||||
* Revision 1.10 2001/07/09 22:19:33 bartoldeman
|
||||
* LBA/FCB/FAT/SYS/Ctrl-C/ioctl fixes + memory savings
|
||||
*
|
||||
* Revision 1.9 2001/06/03 14:16:18 bartoldeman
|
||||
* BUFFERS tuning and misc bug fixes/cleanups (2024c).
|
||||
*
|
||||
* Revision 1.8 2001/04/15 03:21:50 bartoldeman
|
||||
* See history.txt for the list of fixes.
|
||||
*
|
||||
* Revision 1.7 2001/03/30 22:27:42 bartoldeman
|
||||
* Saner lastdrive handling.
|
||||
*
|
||||
* Revision 1.6 2000/06/21 18:16:46 jimtabor
|
||||
* Add UMB code, patch, and code fixes
|
||||
*
|
||||
* Revision 1.5 2000/05/25 20:56:21 jimtabor
|
||||
* Fixed project history
|
||||
*
|
||||
* Revision 1.4 2000/05/17 19:15:12 jimtabor
|
||||
* Cleanup, add and fix source.
|
||||
*
|
||||
* Revision 1.3 2000/05/11 04:26:26 jimtabor
|
||||
* Added code for DOS FN 69 & 6C
|
||||
*
|
||||
* Revision 1.2 2000/05/08 04:30:00 jimtabor
|
||||
* Update CVS to 2020
|
||||
*
|
||||
* Revision 1.1.1.1 2000/05/06 19:34:53 jhall1
|
||||
* The FreeDOS Kernel. A DOS kernel that aims to be 100% compatible with
|
||||
* MS-DOS. Distributed under the GNU GPL.
|
||||
*
|
||||
* Revision 1.4 2000/04/29 05:13:16 jtabor
|
||||
* Added new functions and clean up code
|
||||
*
|
||||
* Revision 1.3 2000/03/09 06:07:11 kernel
|
||||
* 2017f updates by James Tabor
|
||||
*
|
||||
* Revision 1.2 1999/04/04 18:51:43 jprice
|
||||
* no message
|
||||
*
|
||||
* Revision 1.1.1.1 1999/03/29 15:41:09 jprice
|
||||
* New version without IPL.SYS
|
||||
*
|
||||
* Revision 1.4 1999/02/08 05:55:57 jprice
|
||||
* Added Pat's 1937 kernel patches
|
||||
*
|
||||
* Revision 1.3 1999/02/01 01:48:41 jprice
|
||||
* Clean up; Now you can use hex numbers in config.sys. added config.sys screen function to change screen mode (28 or 43/50 lines)
|
||||
*
|
||||
* Revision 1.2 1999/01/22 04:13:26 jprice
|
||||
* Formating
|
||||
*
|
||||
* Revision 1.1.1.1 1999/01/20 05:51:01 jprice
|
||||
* Imported sources
|
||||
*
|
||||
*
|
||||
* Rev 1.7 06 Dec 1998 8:48:22 patv
|
||||
* Expanded due to new I/O subsystem.
|
||||
*
|
||||
* Rev 1.6 11 Jan 1998 2:06:22 patv
|
||||
* Added functionality to ioctl.
|
||||
*
|
||||
* Rev 1.5 04 Jan 1998 23:15:18 patv
|
||||
* Changed Log for strip utility
|
||||
*
|
||||
* Rev 1.4 16 Jan 1997 12:46:54 patv
|
||||
* pre-Release 0.92 feature additions
|
||||
*
|
||||
* Rev 1.3 29 May 1996 21:03:30 patv
|
||||
* bug fixes for v0.91a
|
||||
*
|
||||
* Rev 1.2 19 Feb 1996 3:21:34 patv
|
||||
* Added NLS, int2f and config.sys processing
|
||||
*
|
||||
* Rev 1.1 01 Sep 1995 17:54:16 patv
|
||||
* First GPL release.
|
||||
*
|
||||
* Rev 1.0 02 Jul 1995 8:32:04 patv
|
||||
* Initial revision.
|
||||
*/
|
||||
|
||||
|
||||
/*
|
||||
* WARNING: this code is non-portable (8086 specific).
|
||||
*/
|
||||
@ -432,3 +339,58 @@ COUNT DosDevIOctl(iregs FAR * r)
|
||||
return SUCCESS;
|
||||
}
|
||||
|
||||
/*
|
||||
* Log: ioctl.c,v - for newer log entries do "cvs log ioctl.c"
|
||||
*
|
||||
* Revision 1.4 2000/04/29 05:13:16 jtabor
|
||||
* Added new functions and clean up code
|
||||
*
|
||||
* Revision 1.3 2000/03/09 06:07:11 kernel
|
||||
* 2017f updates by James Tabor
|
||||
*
|
||||
* Revision 1.2 1999/04/04 18:51:43 jprice
|
||||
* no message
|
||||
*
|
||||
* Revision 1.1.1.1 1999/03/29 15:41:09 jprice
|
||||
* New version without IPL.SYS
|
||||
*
|
||||
* Revision 1.4 1999/02/08 05:55:57 jprice
|
||||
* Added Pat's 1937 kernel patches
|
||||
*
|
||||
* Revision 1.3 1999/02/01 01:48:41 jprice
|
||||
* Clean up; Now you can use hex numbers in config.sys. added config.sys screen function to change screen mode (28 or 43/50 lines)
|
||||
*
|
||||
* Revision 1.2 1999/01/22 04:13:26 jprice
|
||||
* Formating
|
||||
*
|
||||
* Revision 1.1.1.1 1999/01/20 05:51:01 jprice
|
||||
* Imported sources
|
||||
*
|
||||
*
|
||||
* Rev 1.7 06 Dec 1998 8:48:22 patv
|
||||
* Expanded due to new I/O subsystem.
|
||||
*
|
||||
* Rev 1.6 11 Jan 1998 2:06:22 patv
|
||||
* Added functionality to ioctl.
|
||||
*
|
||||
* Rev 1.5 04 Jan 1998 23:15:18 patv
|
||||
* Changed Log for strip utility
|
||||
*
|
||||
* Rev 1.4 16 Jan 1997 12:46:54 patv
|
||||
* pre-Release 0.92 feature additions
|
||||
*
|
||||
* Rev 1.3 29 May 1996 21:03:30 patv
|
||||
* bug fixes for v0.91a
|
||||
*
|
||||
* Rev 1.2 19 Feb 1996 3:21:34 patv
|
||||
* Added NLS, int2f and config.sys processing
|
||||
*
|
||||
* Rev 1.1 01 Sep 1995 17:54:16 patv
|
||||
* First GPL release.
|
||||
*
|
||||
* Rev 1.0 02 Jul 1995 8:32:04 patv
|
||||
* Initial revision.
|
||||
*/
|
||||
|
||||
|
||||
|
||||
|
@ -24,53 +24,8 @@
|
||||
; write to the Free Software Foundation, 675 Mass Ave,
|
||||
; Cambridge, MA 02139, USA.
|
||||
;
|
||||
; $Logfile: C:/dos-c/src/kernel/irqstack.asv $
|
||||
;
|
||||
; $Id$
|
||||
;
|
||||
; $Log$
|
||||
; Revision 1.3 2000/05/25 20:56:21 jimtabor
|
||||
; Fixed project history
|
||||
;
|
||||
; Revision 1.2 2000/05/08 04:30:00 jimtabor
|
||||
; Update CVS to 2020
|
||||
;
|
||||
; Revision 1.1.1.1 2000/05/06 19:34:53 jhall1
|
||||
; The FreeDOS Kernel. A DOS kernel that aims to be 100% compatible with
|
||||
; MS-DOS. Distributed under the GNU GPL.
|
||||
;
|
||||
; Revision 1.3 1999/08/10 17:57:13 jprice
|
||||
; ror4 2011-02 patch
|
||||
;
|
||||
; Revision 1.2 1999/04/16 12:21:22 jprice
|
||||
; Steffen c-break handler changes
|
||||
;
|
||||
; Revision 1.1.1.1 1999/03/29 15:41:10 jprice
|
||||
; New version without IPL.SYS
|
||||
;
|
||||
; Revision 1.4 1999/02/08 05:55:57 jprice
|
||||
; Added Pat's 1937 kernel patches
|
||||
;
|
||||
; Revision 1.3 1999/02/01 01:48:41 jprice
|
||||
; Clean up; Now you can use hex numbers in config.sys. added config.sys screen function to change screen mode (28 or 43/50 lines)
|
||||
;
|
||||
; Revision 1.2 1999/01/22 04:13:26 jprice
|
||||
; Formating
|
||||
;
|
||||
; Revision 1.1.1.1 1999/01/20 05:51:01 jprice
|
||||
; Imported sources
|
||||
;
|
||||
;
|
||||
; Rev 1.2 06 Dec 1998 8:49:08 patv
|
||||
; Bug fixes.
|
||||
;
|
||||
; Rev 1.1 22 Jan 1997 13:15:34 patv
|
||||
; pre-0.92 Svante Frey bug fixes
|
||||
;
|
||||
; Rev 1.0 16 Jan 1997 21:43:44 patv
|
||||
; Initial revision.
|
||||
; $EndLog$
|
||||
;
|
||||
|
||||
|
||||
; Code for stack switching during hardware interrupts.
|
||||
@ -273,3 +228,37 @@ set_next: mov ax, dx
|
||||
loop set_next
|
||||
|
||||
ret
|
||||
|
||||
; Log: irqstack.asm,v
|
||||
; Revision 1.3 1999/08/10 17:57:13 jprice
|
||||
; ror4 2011-02 patch
|
||||
;
|
||||
; Revision 1.2 1999/04/16 12:21:22 jprice
|
||||
; Steffen c-break handler changes
|
||||
;
|
||||
; Revision 1.1.1.1 1999/03/29 15:41:10 jprice
|
||||
; New version without IPL.SYS
|
||||
;
|
||||
; Revision 1.4 1999/02/08 05:55:57 jprice
|
||||
; Added Pat's 1937 kernel patches
|
||||
;
|
||||
; Revision 1.3 1999/02/01 01:48:41 jprice
|
||||
; Clean up; Now you can use hex numbers in config.sys. added config.sys screen function to change screen mode (28 or 43/50 lines)
|
||||
;
|
||||
; Revision 1.2 1999/01/22 04:13:26 jprice
|
||||
; Formating
|
||||
;
|
||||
; Revision 1.1.1.1 1999/01/20 05:51:01 jprice
|
||||
; Imported sources
|
||||
;
|
||||
;
|
||||
; Rev 1.2 06 Dec 1998 8:49:08 patv
|
||||
; Bug fixes.
|
||||
;
|
||||
; Rev 1.1 22 Jan 1997 13:15:34 patv
|
||||
; pre-0.92 Svante Frey bug fixes
|
||||
;
|
||||
; Rev 1.0 16 Jan 1997 21:43:44 patv
|
||||
; Initial revision.
|
||||
; EndLog
|
||||
;
|
||||
|
@ -26,131 +26,6 @@
|
||||
; Cambridge, MA 02139, USA.
|
||||
;
|
||||
; $Id$
|
||||
;
|
||||
; $Log$
|
||||
; Revision 1.20 2001/11/13 23:36:45 bartoldeman
|
||||
; Kernel 2025a final changes.
|
||||
;
|
||||
; Revision 1.19 2001/11/04 19:47:39 bartoldeman
|
||||
; kernel 2025a changes: see history.txt
|
||||
;
|
||||
; Revision 1.18 2001/09/23 20:39:44 bartoldeman
|
||||
; FAT32 support, misc fixes, INT2F/AH=12 support, drive B: handling
|
||||
;
|
||||
; Revision 1.17 2001/08/19 12:58:36 bartoldeman
|
||||
; Time and date fixes, Ctrl-S/P, findfirst/next, FCBs, buffers, tsr unloading
|
||||
;
|
||||
; Revision 1.16 2001/07/28 18:13:06 bartoldeman
|
||||
; Fixes for FORMAT+SYS, FATFS, get current dir, kernel init memory situation.
|
||||
;
|
||||
; Revision 1.15 2001/07/22 01:58:58 bartoldeman
|
||||
; Support for Brian's FORMAT, DJGPP libc compilation, cleanups, MSCDEX
|
||||
;
|
||||
; Revision 1.14 2001/07/09 22:19:33 bartoldeman
|
||||
; LBA/FCB/FAT/SYS/Ctrl-C/ioctl fixes + memory savings
|
||||
;
|
||||
; Revision 1.13 2001/06/03 14:16:18 bartoldeman
|
||||
; BUFFERS tuning and misc bug fixes/cleanups (2024c).
|
||||
;
|
||||
; Revision 1.12 2001/04/29 17:34:40 bartoldeman
|
||||
; A new SYS.COM/config.sys single stepping/console output/misc fixes.
|
||||
;
|
||||
; Revision 1.11 2001/04/22 01:19:34 bartoldeman
|
||||
; Avoid sys warning and have a VDISK signature in the HMA
|
||||
;
|
||||
; Revision 1.9 2001/04/15 03:21:50 bartoldeman
|
||||
; See history.txt for the list of fixes.
|
||||
;
|
||||
; Revision 1.8 2001/03/30 19:30:06 bartoldeman
|
||||
; Misc fixes and implementation of SHELLHIGH. See history.txt for details.
|
||||
;
|
||||
; Revision 1.7 2001/03/21 02:56:26 bartoldeman
|
||||
; See history.txt for changes. Bug fixes and HMA support are the main ones.
|
||||
;
|
||||
; Revision 1.6 2001/03/08 21:15:00 bartoldeman
|
||||
; uppermem_root initialised to 0 (no UMBs).
|
||||
;
|
||||
; Revision 1.5 2000/08/06 05:50:17 jimtabor
|
||||
; Add new files and update cvs with patches and changes
|
||||
;
|
||||
; Revision 1.4 2000/06/21 18:16:46 jimtabor
|
||||
; Add UMB code, patch, and code fixes
|
||||
;
|
||||
; Revision 1.3 2000/05/25 20:56:21 jimtabor
|
||||
; Fixed project history
|
||||
;
|
||||
; Revision 1.2 2000/05/08 04:30:00 jimtabor
|
||||
; Update CVS to 2020
|
||||
;
|
||||
; Revision 1.1.1.1 2000/05/06 19:34:53 jhall1
|
||||
; The FreeDOS Kernel. A DOS kernel that aims to be 100% compatible with
|
||||
; MS-DOS. Distributed under the GNU GPL.
|
||||
;
|
||||
; Revision 1.6 2000/03/09 06:07:11 kernel
|
||||
; 2017f updates by James Tabor
|
||||
;
|
||||
; Revision 1.5 1999/09/23 04:40:47 jprice
|
||||
; *** empty log message ***
|
||||
;
|
||||
; Revision 1.3 1999/08/10 17:57:13 jprice
|
||||
; ror4 2011-02 patch
|
||||
;
|
||||
; Revision 1.2 1999/04/13 15:52:57 jprice
|
||||
; changes for boot loader
|
||||
;
|
||||
; Revision 1.1.1.1 1999/03/29 15:41:14 jprice
|
||||
; New version without IPL.SYS
|
||||
;
|
||||
; Revision 1.4 1999/02/08 05:55:57 jprice
|
||||
; Added Pat's 1937 kernel patches
|
||||
;
|
||||
; Revision 1.3 1999/02/01 01:48:41 jprice
|
||||
; Clean up; Now you can use hex numbers in config.sys. added config.sys screen function to change screen mode (28 or 43/50 lines)
|
||||
;
|
||||
; Revision 1.2 1999/01/22 04:13:26 jprice
|
||||
; Formating
|
||||
;
|
||||
; Revision 1.1.1.1 1999/01/20 05:51:01 jprice
|
||||
; Imported sources
|
||||
;
|
||||
; Rev 1.11 06 Dec 1998 8:48:04 patv
|
||||
;Bug fixes.
|
||||
;
|
||||
; Rev 1.10 03 Feb 1998 23:30:08 patv
|
||||
;Added a start-up stack for loadable device drivers. Need the separate
|
||||
;stack so that all int 21h functions can be called.
|
||||
;
|
||||
; Rev 1.9 22 Jan 1998 4:09:24 patv
|
||||
;Fixed pointer problems affecting SDA
|
||||
;
|
||||
; Rev 1.8 06 Jan 1998 20:12:32 patv
|
||||
;Reduced device driver stack sizes.
|
||||
;
|
||||
; Rev 1.7 04 Jan 1998 17:26:18 patv
|
||||
;Corrected subdirectory bug
|
||||
;
|
||||
; Rev 1.6 03 Jan 1998 8:36:50 patv
|
||||
;Converted data area to SDA format
|
||||
;
|
||||
; Rev 1.5 06 Feb 1997 22:43:18 patv
|
||||
;Reduced stack sizes for block and clock devices.
|
||||
;
|
||||
; Rev 1.4 06 Feb 1997 19:05:48 patv
|
||||
;Added hooks for tsc command
|
||||
;
|
||||
; Rev 1.3 29 May 1996 21:03:44 patv
|
||||
;bug fixes for v0.91a
|
||||
;
|
||||
; Rev 1.2 19 Feb 1996 3:24:06 patv
|
||||
;Added NLS, int2f and config.sys processing
|
||||
;
|
||||
; Rev 1.1 01 Sep 1995 17:54:24 patv
|
||||
;First GPL release.
|
||||
;
|
||||
; Rev 1.0 02 Jul 1995 9:05:44 patv
|
||||
;Initial revision.
|
||||
;
|
||||
; $EndLog$
|
||||
;
|
||||
|
||||
%include "segs.inc"
|
||||
@ -1101,3 +976,70 @@ segment INIT_TEXT
|
||||
_INIT_DGROUP dw DGROUP
|
||||
|
||||
|
||||
; Log: kernel.asm,v
|
||||
; Revision 1.6 2000/03/09 06:07:11 kernel
|
||||
; 2017f updates by James Tabor
|
||||
;
|
||||
; Revision 1.5 1999/09/23 04:40:47 jprice
|
||||
; *** empty log message ***
|
||||
;
|
||||
; Revision 1.3 1999/08/10 17:57:13 jprice
|
||||
; ror4 2011-02 patch
|
||||
;
|
||||
; Revision 1.2 1999/04/13 15:52:57 jprice
|
||||
; changes for boot loader
|
||||
;
|
||||
; Revision 1.1.1.1 1999/03/29 15:41:14 jprice
|
||||
; New version without IPL.SYS
|
||||
;
|
||||
; Revision 1.4 1999/02/08 05:55:57 jprice
|
||||
; Added Pat's 1937 kernel patches
|
||||
;
|
||||
; Revision 1.3 1999/02/01 01:48:41 jprice
|
||||
; Clean up; Now you can use hex numbers in config.sys. added config.sys screen function to change screen mode (28 or 43/50 lines)
|
||||
;
|
||||
; Revision 1.2 1999/01/22 04:13:26 jprice
|
||||
; Formating
|
||||
;
|
||||
; Revision 1.1.1.1 1999/01/20 05:51:01 jprice
|
||||
; Imported sources
|
||||
;
|
||||
; Rev 1.11 06 Dec 1998 8:48:04 patv
|
||||
;Bug fixes.
|
||||
;
|
||||
; Rev 1.10 03 Feb 1998 23:30:08 patv
|
||||
;Added a start-up stack for loadable device drivers. Need the separate
|
||||
;stack so that all int 21h functions can be called.
|
||||
;
|
||||
; Rev 1.9 22 Jan 1998 4:09:24 patv
|
||||
;Fixed pointer problems affecting SDA
|
||||
;
|
||||
; Rev 1.8 06 Jan 1998 20:12:32 patv
|
||||
;Reduced device driver stack sizes.
|
||||
;
|
||||
; Rev 1.7 04 Jan 1998 17:26:18 patv
|
||||
;Corrected subdirectory bug
|
||||
;
|
||||
; Rev 1.6 03 Jan 1998 8:36:50 patv
|
||||
;Converted data area to SDA format
|
||||
;
|
||||
; Rev 1.5 06 Feb 1997 22:43:18 patv
|
||||
;Reduced stack sizes for block and clock devices.
|
||||
;
|
||||
; Rev 1.4 06 Feb 1997 19:05:48 patv
|
||||
;Added hooks for tsc command
|
||||
;
|
||||
; Rev 1.3 29 May 1996 21:03:44 patv
|
||||
;bug fixes for v0.91a
|
||||
;
|
||||
; Rev 1.2 19 Feb 1996 3:24:06 patv
|
||||
;Added NLS, int2f and config.sys processing
|
||||
;
|
||||
; Rev 1.1 01 Sep 1995 17:54:24 patv
|
||||
;First GPL release.
|
||||
;
|
||||
; Rev 1.0 02 Jul 1995 9:05:44 patv
|
||||
;Initial revision.
|
||||
;
|
||||
; EndLog
|
||||
;
|
||||
|
256
kernel/main.c
256
kernel/main.c
@ -82,165 +82,6 @@ static BYTE *mainRcsId = "$Id$";
|
||||
struct _KernelConfig InitKernelConfig = {"", 0, 0, 0, 0, 0, 0};
|
||||
|
||||
|
||||
/*
|
||||
* $Log$
|
||||
* Revision 1.23 2001/11/13 23:36:45 bartoldeman
|
||||
* Kernel 2025a final changes.
|
||||
*
|
||||
* Revision 1.22 2001/11/04 19:47:39 bartoldeman
|
||||
* kernel 2025a changes: see history.txt
|
||||
*
|
||||
* Revision 1.21 2001/09/23 20:39:44 bartoldeman
|
||||
* FAT32 support, misc fixes, INT2F/AH=12 support, drive B: handling
|
||||
*
|
||||
* Revision 1.20 2001/07/28 18:13:06 bartoldeman
|
||||
* Fixes for FORMAT+SYS, FATFS, get current dir, kernel init memory situation.
|
||||
*
|
||||
* Revision 1.19 2001/07/22 01:58:58 bartoldeman
|
||||
* Support for Brian's FORMAT, DJGPP libc compilation, cleanups, MSCDEX
|
||||
*
|
||||
* Revision 1.18 2001/07/09 22:19:33 bartoldeman
|
||||
* LBA/FCB/FAT/SYS/Ctrl-C/ioctl fixes + memory savings
|
||||
*
|
||||
* Revision 1.17 2001/06/03 14:16:18 bartoldeman
|
||||
* BUFFERS tuning and misc bug fixes/cleanups (2024c).
|
||||
*
|
||||
* Revision 1.16 2001/04/29 17:34:40 bartoldeman
|
||||
* A new SYS.COM/config.sys single stepping/console output/misc fixes.
|
||||
*
|
||||
* Revision 1.15 2001/04/21 22:32:53 bartoldeman
|
||||
* Init DS=Init CS, fixed stack overflow problems and misc bugs.
|
||||
*
|
||||
* Revision 1.14 2001/04/16 01:45:26 bartoldeman
|
||||
* Fixed handles, config.sys drivers, warnings. Enabled INT21/AH=6C, printf %S/%Fs
|
||||
*
|
||||
* Revision 1.13 2001/04/15 03:21:50 bartoldeman
|
||||
* See history.txt for the list of fixes.
|
||||
*
|
||||
* Revision 1.12 2001/03/30 22:27:42 bartoldeman
|
||||
* Saner lastdrive handling.
|
||||
*
|
||||
* Revision 1.10 2001/03/30 19:30:06 bartoldeman
|
||||
* Misc fixes and implementation of SHELLHIGH. See history.txt for details.
|
||||
*
|
||||
* Revision 1.9 2001/03/25 17:11:54 bartoldeman
|
||||
* Fixed sys.com compilation. Updated to 2023. Also: see history.txt.
|
||||
*
|
||||
* Revision 1.8 2001/03/21 02:56:26 bartoldeman
|
||||
* See history.txt for changes. Bug fixes and HMA support are the main ones.
|
||||
*
|
||||
* Revision 1.7 2000/08/06 05:50:17 jimtabor
|
||||
* Add new files and update cvs with patches and changes
|
||||
*
|
||||
* Revision 1.6 2000/06/21 18:16:46 jimtabor
|
||||
* Add UMB code, patch, and code fixes
|
||||
*
|
||||
* Revision 1.5 2000/05/26 19:25:19 jimtabor
|
||||
* Read History file for Change info
|
||||
*
|
||||
* Revision 1.4 2000/05/25 20:56:21 jimtabor
|
||||
* Fixed project history
|
||||
*
|
||||
* Revision 1.3 2000/05/17 19:15:12 jimtabor
|
||||
* Cleanup, add and fix source.
|
||||
*
|
||||
* Revision 1.2 2000/05/08 04:30:00 jimtabor
|
||||
* Update CVS to 2020
|
||||
*
|
||||
* Revision 1.1.1.1 2000/05/06 19:34:53 jhall1
|
||||
* The FreeDOS Kernel. A DOS kernel that aims to be 100% compatible with
|
||||
* MS-DOS. Distributed under the GNU GPL.
|
||||
*
|
||||
* Revision 1.14 2000/03/31 05:40:09 jtabor
|
||||
* Added Eric W. Biederman Patches
|
||||
*
|
||||
* Revision 1.13 2000/03/09 06:07:11 kernel
|
||||
* 2017f updates by James Tabor
|
||||
*
|
||||
* Revision 1.12 1999/09/23 04:40:48 jprice
|
||||
* *** empty log message ***
|
||||
*
|
||||
* Revision 1.10 1999/08/25 03:18:09 jprice
|
||||
* ror4 patches to allow TC 2.01 compile.
|
||||
*
|
||||
* Revision 1.9 1999/04/16 21:43:40 jprice
|
||||
* ror4 multi-sector IO
|
||||
*
|
||||
* Revision 1.8 1999/04/16 12:21:22 jprice
|
||||
* Steffen c-break handler changes
|
||||
*
|
||||
* Revision 1.7 1999/04/16 00:53:33 jprice
|
||||
* Optimized FAT handling
|
||||
*
|
||||
* Revision 1.6 1999/04/12 03:21:17 jprice
|
||||
* more ror4 patches. Changes for multi-block IO
|
||||
*
|
||||
* Revision 1.5 1999/04/11 04:33:39 jprice
|
||||
* ror4 patches
|
||||
*
|
||||
* Revision 1.3 1999/04/04 22:57:47 jprice
|
||||
* no message
|
||||
*
|
||||
* Revision 1.2 1999/04/04 18:51:43 jprice
|
||||
* no message
|
||||
*
|
||||
* Revision 1.1.1.1 1999/03/29 15:41:18 jprice
|
||||
* New version without IPL.SYS
|
||||
*
|
||||
* Revision 1.5 1999/02/08 05:55:57 jprice
|
||||
* Added Pat's 1937 kernel patches
|
||||
*
|
||||
* Revision 1.4 1999/02/01 01:48:41 jprice
|
||||
* Clean up; Now you can use hex numbers in config.sys. added config.sys screen function to change screen mode (28 or 43/50 lines)
|
||||
*
|
||||
* Revision 1.3 1999/01/30 08:28:12 jprice
|
||||
* Clean up; Fixed bug with set attribute function.
|
||||
*
|
||||
* Revision 1.2 1999/01/22 04:13:26 jprice
|
||||
* Formating
|
||||
*
|
||||
* Revision 1.1.1.1 1999/01/20 05:51:01 jprice
|
||||
* Imported sources
|
||||
*
|
||||
*
|
||||
* Rev 1.12 06 Dec 1998 8:45:30 patv
|
||||
* Changed due to new I/O subsystem.
|
||||
*
|
||||
* Rev 1.11 22 Jan 1998 4:09:24 patv
|
||||
* Fixed pointer problems affecting SDA
|
||||
*
|
||||
* Rev 1.10 04 Jan 1998 23:15:20 patv
|
||||
* Changed Log for strip utility
|
||||
*
|
||||
* Rev 1.9 04 Jan 1998 17:26:16 patv
|
||||
* Corrected subdirectory bug
|
||||
*
|
||||
* Rev 1.8 03 Jan 1998 8:36:48 patv
|
||||
* Converted data area to SDA format
|
||||
*
|
||||
* Rev 1.7 06 Feb 1997 21:35:46 patv
|
||||
* Modified to support new version format and changed debug message to
|
||||
* output drive letter instead of number.
|
||||
*
|
||||
* Rev 1.6 22 Jan 1997 13:05:02 patv
|
||||
* Now does correct default drive initialization.
|
||||
*
|
||||
* Rev 1.5 16 Jan 1997 12:47:00 patv
|
||||
* pre-Release 0.92 feature additions
|
||||
*
|
||||
* Rev 1.3 29 May 1996 21:03:32 patv
|
||||
* bug fixes for v0.91a
|
||||
*
|
||||
* Rev 1.2 19 Feb 1996 3:21:36 patv
|
||||
* Added NLS, int2f and config.sys processing
|
||||
*
|
||||
* Rev 1.1 01 Sep 1995 17:54:18 patv
|
||||
* First GPL release.
|
||||
*
|
||||
* Rev 1.0 02 Jul 1995 8:33:18 patv
|
||||
* Initial revision.
|
||||
*/
|
||||
|
||||
extern WORD days[2][13];
|
||||
extern BYTE FAR * lpBase;
|
||||
extern BYTE FAR * lpOldTop;
|
||||
@ -451,8 +292,7 @@ INIT VOID FsConfig(VOID)
|
||||
{
|
||||
struct cds FAR *pcds_table = &CDSp->cds_table[i];
|
||||
|
||||
fbcopy((VOID FAR *) "A:\\\0",
|
||||
(VOID FAR *) pcds_table->cdsCurrentPath, 4);
|
||||
fmemcpy(pcds_table->cdsCurrentPath, "A:\\\0", 4);
|
||||
|
||||
pcds_table->cdsCurrentPath[0] += i;
|
||||
|
||||
@ -773,3 +613,97 @@ INIT VOID InitPrinters(VOID)
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* Log: main.c,v - for newer log entries do "cvs log main.c"
|
||||
*
|
||||
* Revision 1.14 2000/03/31 05:40:09 jtabor
|
||||
* Added Eric W. Biederman Patches
|
||||
*
|
||||
* Revision 1.13 2000/03/09 06:07:11 kernel
|
||||
* 2017f updates by James Tabor
|
||||
*
|
||||
* Revision 1.12 1999/09/23 04:40:48 jprice
|
||||
* *** empty log message ***
|
||||
*
|
||||
* Revision 1.10 1999/08/25 03:18:09 jprice
|
||||
* ror4 patches to allow TC 2.01 compile.
|
||||
*
|
||||
* Revision 1.9 1999/04/16 21:43:40 jprice
|
||||
* ror4 multi-sector IO
|
||||
*
|
||||
* Revision 1.8 1999/04/16 12:21:22 jprice
|
||||
* Steffen c-break handler changes
|
||||
*
|
||||
* Revision 1.7 1999/04/16 00:53:33 jprice
|
||||
* Optimized FAT handling
|
||||
*
|
||||
* Revision 1.6 1999/04/12 03:21:17 jprice
|
||||
* more ror4 patches. Changes for multi-block IO
|
||||
*
|
||||
* Revision 1.5 1999/04/11 04:33:39 jprice
|
||||
* ror4 patches
|
||||
*
|
||||
* Revision 1.3 1999/04/04 22:57:47 jprice
|
||||
* no message
|
||||
*
|
||||
* Revision 1.2 1999/04/04 18:51:43 jprice
|
||||
* no message
|
||||
*
|
||||
* Revision 1.1.1.1 1999/03/29 15:41:18 jprice
|
||||
* New version without IPL.SYS
|
||||
*
|
||||
* Revision 1.5 1999/02/08 05:55:57 jprice
|
||||
* Added Pat's 1937 kernel patches
|
||||
*
|
||||
* Revision 1.4 1999/02/01 01:48:41 jprice
|
||||
* Clean up; Now you can use hex numbers in config.sys. added config.sys screen function to change screen mode (28 or 43/50 lines)
|
||||
*
|
||||
* Revision 1.3 1999/01/30 08:28:12 jprice
|
||||
* Clean up; Fixed bug with set attribute function.
|
||||
*
|
||||
* Revision 1.2 1999/01/22 04:13:26 jprice
|
||||
* Formating
|
||||
*
|
||||
* Revision 1.1.1.1 1999/01/20 05:51:01 jprice
|
||||
* Imported sources
|
||||
*
|
||||
*
|
||||
* Rev 1.12 06 Dec 1998 8:45:30 patv
|
||||
* Changed due to new I/O subsystem.
|
||||
*
|
||||
* Rev 1.11 22 Jan 1998 4:09:24 patv
|
||||
* Fixed pointer problems affecting SDA
|
||||
*
|
||||
* Rev 1.10 04 Jan 1998 23:15:20 patv
|
||||
* Changed Log for strip utility
|
||||
*
|
||||
* Rev 1.9 04 Jan 1998 17:26:16 patv
|
||||
* Corrected subdirectory bug
|
||||
*
|
||||
* Rev 1.8 03 Jan 1998 8:36:48 patv
|
||||
* Converted data area to SDA format
|
||||
*
|
||||
* Rev 1.7 06 Feb 1997 21:35:46 patv
|
||||
* Modified to support new version format and changed debug message to
|
||||
* output drive letter instead of number.
|
||||
*
|
||||
* Rev 1.6 22 Jan 1997 13:05:02 patv
|
||||
* Now does correct default drive initialization.
|
||||
*
|
||||
* Rev 1.5 16 Jan 1997 12:47:00 patv
|
||||
* pre-Release 0.92 feature additions
|
||||
*
|
||||
* Rev 1.3 29 May 1996 21:03:32 patv
|
||||
* bug fixes for v0.91a
|
||||
*
|
||||
* Rev 1.2 19 Feb 1996 3:21:36 patv
|
||||
* Added NLS, int2f and config.sys processing
|
||||
*
|
||||
* Rev 1.1 01 Sep 1995 17:54:18 patv
|
||||
* First GPL release.
|
||||
*
|
||||
* Rev 1.0 02 Jul 1995 8:33:18 patv
|
||||
* Initial revision.
|
||||
*/
|
||||
|
||||
|
||||
|
232
kernel/makefile
232
kernel/makefile
@ -4,142 +4,6 @@
|
||||
# $Id$
|
||||
#
|
||||
|
||||
# $Log$
|
||||
# Revision 1.2 2001/11/13 23:36:45 bartoldeman
|
||||
# Kernel 2025a final changes.
|
||||
#
|
||||
# Revision 1.1 2001/11/04 20:10:15 bartoldeman
|
||||
# Added new makefile names, utils sources, kconfig.h
|
||||
#
|
||||
# Revision 1.13 2001/07/24 16:56:29 bartoldeman
|
||||
# fixes for FCBs, DJGPP ls, DBLBYTE, dyninit allocation (2024e).
|
||||
#
|
||||
# Revision 1.12 2001/07/22 01:58:58 bartoldeman
|
||||
# Support for Brian's FORMAT, DJGPP libc compilation, cleanups, MSCDEX
|
||||
#
|
||||
# Revision 1.11 2001/07/09 22:19:33 bartoldeman
|
||||
# LBA/FCB/FAT/SYS/Ctrl-C/ioctl fixes + memory savings
|
||||
#
|
||||
# Revision 1.10 2001/04/21 22:32:53 bartoldeman
|
||||
# Init DS=Init CS, fixed stack overflow problems and misc bugs.
|
||||
#
|
||||
# Revision 1.9 2001/04/16 14:28:32 bartoldeman
|
||||
# Kernel build 2024. Fixed critical error handler/config.sys/makefiles/UMBs
|
||||
#
|
||||
# Revision 1.8 2001/04/15 03:21:50 bartoldeman
|
||||
# See history.txt for the list of fixes.
|
||||
#
|
||||
# Revision 1.7 2001/03/25 17:11:54 bartoldeman
|
||||
# Fixed sys.com compilation. Updated to 2023. Also: see history.txt.
|
||||
#
|
||||
# Revision 1.6 2001/03/21 02:56:26 bartoldeman
|
||||
# See history.txt for changes. Bug fixes and HMA support are the main ones.
|
||||
#
|
||||
# Revision 1.4 2000/08/06 05:50:17 jimtabor
|
||||
# Add new files and update cvs with patches and changes
|
||||
#
|
||||
# Revision 1.3 2000/05/25 20:56:21 jimtabor
|
||||
# Fixed project history
|
||||
#
|
||||
# Revision 1.2 2000/05/08 04:30:00 jimtabor
|
||||
# Update CVS to 2020
|
||||
#
|
||||
# Revision 1.1.1.1 2000/05/06 19:34:53 jhall1
|
||||
# The FreeDOS Kernel. A DOS kernel that aims to be 100% compatible with
|
||||
# MS-DOS. Distributed under the GNU GPL.
|
||||
#
|
||||
# Revision 1.14 2000/03/31 05:40:09 jtabor
|
||||
# Added Eric W. Biederman Patches
|
||||
#
|
||||
# Revision 1.13 2000/03/17 22:59:04 kernel
|
||||
# Steffen Kaiser's NLS changes
|
||||
#
|
||||
# Revision 1.12 2000/03/09 06:07:11 kernel
|
||||
# 2017f updates by James Tabor
|
||||
#
|
||||
# Revision 1.11 1999/09/23 04:40:47 jprice
|
||||
# *** empty log message ***
|
||||
#
|
||||
# Revision 1.8 1999/09/13 20:41:41 jprice
|
||||
# Some clean up.
|
||||
#
|
||||
# Revision 1.7 1999/08/25 03:18:09 jprice
|
||||
# ror4 patches to allow TC 2.01 compile.
|
||||
#
|
||||
# Revision 1.6 1999/08/10 17:57:13 jprice
|
||||
# ror4 2011-02 patch
|
||||
#
|
||||
# Revision 1.5 1999/04/23 04:25:15 jprice
|
||||
# no message
|
||||
#
|
||||
# Revision 1.4 1999/04/23 03:45:11 jprice
|
||||
# Improved by jprice
|
||||
#
|
||||
# Revision 1.3 1999/04/16 12:21:22 jprice
|
||||
# Steffen c-break handler changes
|
||||
#
|
||||
# Revision 1.2 1999/04/13 15:48:21 jprice
|
||||
# no message
|
||||
#
|
||||
# Revision 1.1.1.1 1999/03/29 15:41:15 jprice
|
||||
# New version without IPL.SYS
|
||||
#
|
||||
# Revision 1.7 1999/03/01 06:04:37 jprice
|
||||
# Fixed so it'll work with config.mak
|
||||
#
|
||||
# Revision 1.6 1999/03/01 05:46:43 jprice
|
||||
# Turned off DEBUG define.
|
||||
#
|
||||
# Revision 1.5 1999/02/09 04:49:43 jprice
|
||||
# Make makefile use common config.mak file
|
||||
#
|
||||
# Revision 1.4 1999/02/08 05:55:57 jprice
|
||||
# Added Pat's 1937 kernel patches
|
||||
#
|
||||
# Revision 1.3 1999/02/04 03:09:59 jprice
|
||||
# Added option to share constants (-d).
|
||||
#
|
||||
# Revision 1.2 1999/01/22 04:13:26 jprice
|
||||
# Formating
|
||||
#
|
||||
# Revision 1.1.1.1 1999/01/20 05:51:01 jprice
|
||||
# Imported sources
|
||||
#
|
||||
#
|
||||
# Rev 1.8.1 10 Jan 1999 SRM
|
||||
#Took out "/P-" from TLINK
|
||||
#Changed "bcc" to "tcc"
|
||||
#
|
||||
# Rev 1.9 06 Dec 1998 8:45:40 patv
|
||||
#Added new files for I/O subsystem.
|
||||
#
|
||||
# Rev 1.8 22 Jan 1998 14:50:06 patv
|
||||
#Outdated stacks.asm.
|
||||
#
|
||||
# Rev 1.6 03 Jan 1998 8:36:50 patv
|
||||
#Converted data area to SDA format
|
||||
#
|
||||
# Rev 1.5 30 Jan 1997 7:55:54 patv
|
||||
#Added TSC flag for trace support.
|
||||
#
|
||||
# Rev 1.4 16 Jan 1997 12:46:42 patv
|
||||
#pre-Release 0.92 feature additions
|
||||
#
|
||||
# Rev 1.3 29 Aug 1996 13:07:34 patv
|
||||
#Bug fixes for v0.91b
|
||||
#
|
||||
# Rev 1.2 29 May 1996 21:03:32 patv
|
||||
#bug fixes for v0.91a
|
||||
#
|
||||
# Rev 1.1 19 Feb 1996 3:35:38 patv
|
||||
#Added NLS, int2f and config.sys processing
|
||||
#
|
||||
# Rev 1.0 02 Jul 1995 8:30:22 patv
|
||||
#Initial revision.
|
||||
#
|
||||
# $EndLog$
|
||||
#
|
||||
|
||||
!include "..\mkfiles\generic.mak"
|
||||
|
||||
RELEASE = 1.00
|
||||
@ -397,6 +261,96 @@ dyndata.obj: dyndata.c dyndata.h
|
||||
$(CC) $(DYNCFLAGS) -c $*.c
|
||||
$(PATCHOBJ) $*.obj $(DYNPATCH)
|
||||
|
||||
|
||||
|
||||
|
||||
# Log: makefile,v
|
||||
#
|
||||
# Revision 1.14 2000/03/31 05:40:09 jtabor
|
||||
# Added Eric W. Biederman Patches
|
||||
#
|
||||
# Revision 1.13 2000/03/17 22:59:04 kernel
|
||||
# Steffen Kaiser's NLS changes
|
||||
#
|
||||
# Revision 1.12 2000/03/09 06:07:11 kernel
|
||||
# 2017f updates by James Tabor
|
||||
#
|
||||
# Revision 1.11 1999/09/23 04:40:47 jprice
|
||||
# *** empty log message ***
|
||||
#
|
||||
# Revision 1.8 1999/09/13 20:41:41 jprice
|
||||
# Some clean up.
|
||||
#
|
||||
# Revision 1.7 1999/08/25 03:18:09 jprice
|
||||
# ror4 patches to allow TC 2.01 compile.
|
||||
#
|
||||
# Revision 1.6 1999/08/10 17:57:13 jprice
|
||||
# ror4 2011-02 patch
|
||||
#
|
||||
# Revision 1.5 1999/04/23 04:25:15 jprice
|
||||
# no message
|
||||
#
|
||||
# Revision 1.4 1999/04/23 03:45:11 jprice
|
||||
# Improved by jprice
|
||||
#
|
||||
# Revision 1.3 1999/04/16 12:21:22 jprice
|
||||
# Steffen c-break handler changes
|
||||
#
|
||||
# Revision 1.2 1999/04/13 15:48:21 jprice
|
||||
# no message
|
||||
#
|
||||
# Revision 1.1.1.1 1999/03/29 15:41:15 jprice
|
||||
# New version without IPL.SYS
|
||||
#
|
||||
# Revision 1.7 1999/03/01 06:04:37 jprice
|
||||
# Fixed so it'll work with config.mak
|
||||
#
|
||||
# Revision 1.6 1999/03/01 05:46:43 jprice
|
||||
# Turned off DEBUG define.
|
||||
#
|
||||
# Revision 1.5 1999/02/09 04:49:43 jprice
|
||||
# Make makefile use common config.mak file
|
||||
#
|
||||
# Revision 1.4 1999/02/08 05:55:57 jprice
|
||||
# Added Pat's 1937 kernel patches
|
||||
#
|
||||
# Revision 1.3 1999/02/04 03:09:59 jprice
|
||||
# Added option to share constants (-d).
|
||||
#
|
||||
# Revision 1.2 1999/01/22 04:13:26 jprice
|
||||
# Formating
|
||||
#
|
||||
# Revision 1.1.1.1 1999/01/20 05:51:01 jprice
|
||||
# Imported sources
|
||||
#
|
||||
#
|
||||
# Rev 1.8.1 10 Jan 1999 SRM
|
||||
#Took out "/P-" from TLINK
|
||||
#Changed "bcc" to "tcc"
|
||||
#
|
||||
# Rev 1.9 06 Dec 1998 8:45:40 patv
|
||||
#Added new files for I/O subsystem.
|
||||
#
|
||||
# Rev 1.8 22 Jan 1998 14:50:06 patv
|
||||
#Outdated stacks.asm.
|
||||
#
|
||||
# Rev 1.6 03 Jan 1998 8:36:50 patv
|
||||
#Converted data area to SDA format
|
||||
#
|
||||
# Rev 1.5 30 Jan 1997 7:55:54 patv
|
||||
#Added TSC flag for trace support.
|
||||
#
|
||||
# Rev 1.4 16 Jan 1997 12:46:42 patv
|
||||
#pre-Release 0.92 feature additions
|
||||
#
|
||||
# Rev 1.3 29 Aug 1996 13:07:34 patv
|
||||
#Bug fixes for v0.91b
|
||||
#
|
||||
# Rev 1.2 29 May 1996 21:03:32 patv
|
||||
#bug fixes for v0.91a
|
||||
#
|
||||
# Rev 1.1 19 Feb 1996 3:35:38 patv
|
||||
#Added NLS, int2f and config.sys processing
|
||||
#
|
||||
# Rev 1.0 02 Jul 1995 8:30:22 patv
|
||||
#Initial revision.
|
||||
#
|
||||
# EndLog
|
||||
#
|
||||
|
149
kernel/memmgr.c
149
kernel/memmgr.c
@ -33,104 +33,6 @@
|
||||
static BYTE *memmgrRcsId = "$Id$";
|
||||
#endif
|
||||
|
||||
/*
|
||||
* $Log$
|
||||
* Revision 1.16 2001/11/04 19:47:39 bartoldeman
|
||||
* kernel 2025a changes: see history.txt
|
||||
*
|
||||
* Revision 1.15 2001/09/23 20:39:44 bartoldeman
|
||||
* FAT32 support, misc fixes, INT2F/AH=12 support, drive B: handling
|
||||
*
|
||||
* Revision 1.14 2001/04/21 22:32:53 bartoldeman
|
||||
* Init DS=Init CS, fixed stack overflow problems and misc bugs.
|
||||
*
|
||||
* Revision 1.13 2001/04/16 01:45:26 bartoldeman
|
||||
* Fixed handles, config.sys drivers, warnings. Enabled INT21/AH=6C, printf %S/%Fs
|
||||
*
|
||||
* Revision 1.12 2001/04/15 03:21:50 bartoldeman
|
||||
* See history.txt for the list of fixes.
|
||||
*
|
||||
* Revision 1.11 2001/04/02 23:18:30 bartoldeman
|
||||
* Misc, zero terminated device names and redirector bugs fixed.
|
||||
*
|
||||
* Revision 1.10 2001/03/30 19:30:06 bartoldeman
|
||||
* Misc fixes and implementation of SHELLHIGH. See history.txt for details.
|
||||
*
|
||||
* Revision 1.9 2001/03/21 02:56:26 bartoldeman
|
||||
* See history.txt for changes. Bug fixes and HMA support are the main ones.
|
||||
*
|
||||
* Revision 1.8 2001/03/08 21:00:00 bartoldeman
|
||||
* UMB and MCB chain corruption (thanks Martin Stromberg) fixes
|
||||
*
|
||||
* Revision 1.7 2000/08/07 04:53:54 jimtabor
|
||||
* Cleanup code
|
||||
*
|
||||
* Revision 1.6 2000/08/07 04:48:50 jimtabor
|
||||
* Fixed LoadHigh probllem
|
||||
*
|
||||
* Revision 1.5 2000/08/06 05:50:17 jimtabor
|
||||
* Add new files and update cvs with patches and changes
|
||||
*
|
||||
* Revision 1.4 2000/06/21 18:16:46 jimtabor
|
||||
* Add UMB code, patch, and code fixes
|
||||
*
|
||||
* Revision 1.3 2000/05/25 20:56:21 jimtabor
|
||||
* Fixed project history
|
||||
*
|
||||
* Revision 1.2 2000/05/08 04:30:00 jimtabor
|
||||
* Update CVS to 2020
|
||||
*
|
||||
* Revision 1.1.1.1 2000/05/06 19:34:53 jhall1
|
||||
* The FreeDOS Kernel. A DOS kernel that aims to be 100% compatible with
|
||||
* MS-DOS. Distributed under the GNU GPL.
|
||||
*
|
||||
* Revision 1.4 2000/03/09 06:07:11 kernel
|
||||
* 2017f updates by James Tabor
|
||||
*
|
||||
* Revision 1.3 1999/08/25 03:18:09 jprice
|
||||
* ror4 patches to allow TC 2.01 compile.
|
||||
*
|
||||
* Revision 1.2 1999/04/23 04:24:39 jprice
|
||||
* Memory manager changes made by ska
|
||||
*
|
||||
* Revision 1.1.1.1 1999/03/29 15:41:20 jprice
|
||||
* New version without IPL.SYS
|
||||
*
|
||||
* Revision 1.4 1999/02/08 05:55:57 jprice
|
||||
* Added Pat's 1937 kernel patches
|
||||
*
|
||||
* Revision 1.3 1999/02/01 01:48:41 jprice
|
||||
* Clean up; Now you can use hex numbers in config.sys. added config.sys screen function to change screen mode (28 or 43/50 lines)
|
||||
*
|
||||
* Revision 1.2 1999/01/22 04:13:26 jprice
|
||||
* Formating
|
||||
*
|
||||
* Revision 1.1.1.1 1999/01/20 05:51:01 jprice
|
||||
* Imported sources
|
||||
*
|
||||
*
|
||||
* Rev 1.6 04 Jan 1998 23:15:18 patv
|
||||
* Changed Log for strip utility
|
||||
*
|
||||
* Rev 1.5 16 Jan 1997 12:47:00 patv
|
||||
* pre-Release 0.92 feature additions
|
||||
*
|
||||
* Rev 1.4 29 May 1996 21:03:34 patv
|
||||
* bug fixes for v0.91a
|
||||
*
|
||||
* Rev 1.3 19 Feb 1996 3:21:36 patv
|
||||
* Added NLS, int2f and config.sys processing
|
||||
*
|
||||
* Rev 1.2 01 Sep 1995 17:54:20 patv
|
||||
* First GPL release.
|
||||
*
|
||||
* Rev 1.1 30 Jul 1995 20:51:58 patv
|
||||
* Eliminated version strings in ipl
|
||||
*
|
||||
* Rev 1.0 02 Jul 1995 8:33:08 patv
|
||||
* Initial revision.
|
||||
*/
|
||||
|
||||
VOID mcb_init();
|
||||
VOID mcb_print();
|
||||
VOID show_chain();
|
||||
@ -760,3 +662,54 @@ VOID ClaimINITDataSegment()
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Log: memmgr.c,v - for newer log entries do "cvs log memmgr.c"
|
||||
*
|
||||
* Revision 1.4 2000/03/09 06:07:11 kernel
|
||||
* 2017f updates by James Tabor
|
||||
*
|
||||
* Revision 1.3 1999/08/25 03:18:09 jprice
|
||||
* ror4 patches to allow TC 2.01 compile.
|
||||
*
|
||||
* Revision 1.2 1999/04/23 04:24:39 jprice
|
||||
* Memory manager changes made by ska
|
||||
*
|
||||
* Revision 1.1.1.1 1999/03/29 15:41:20 jprice
|
||||
* New version without IPL.SYS
|
||||
*
|
||||
* Revision 1.4 1999/02/08 05:55:57 jprice
|
||||
* Added Pat's 1937 kernel patches
|
||||
*
|
||||
* Revision 1.3 1999/02/01 01:48:41 jprice
|
||||
* Clean up; Now you can use hex numbers in config.sys. added config.sys screen function to change screen mode (28 or 43/50 lines)
|
||||
*
|
||||
* Revision 1.2 1999/01/22 04:13:26 jprice
|
||||
* Formating
|
||||
*
|
||||
* Revision 1.1.1.1 1999/01/20 05:51:01 jprice
|
||||
* Imported sources
|
||||
*
|
||||
*
|
||||
* Rev 1.6 04 Jan 1998 23:15:18 patv
|
||||
* Changed Log for strip utility
|
||||
*
|
||||
* Rev 1.5 16 Jan 1997 12:47:00 patv
|
||||
* pre-Release 0.92 feature additions
|
||||
*
|
||||
* Rev 1.4 29 May 1996 21:03:34 patv
|
||||
* bug fixes for v0.91a
|
||||
*
|
||||
* Rev 1.3 19 Feb 1996 3:21:36 patv
|
||||
* Added NLS, int2f and config.sys processing
|
||||
*
|
||||
* Rev 1.2 01 Sep 1995 17:54:20 patv
|
||||
* First GPL release.
|
||||
*
|
||||
* Rev 1.1 30 Jul 1995 20:51:58 patv
|
||||
* Eliminated version strings in ipl
|
||||
*
|
||||
* Rev 1.0 02 Jul 1995 8:33:08 patv
|
||||
* Initial revision.
|
||||
*/
|
||||
|
||||
|
107
kernel/misc.c
107
kernel/misc.c
@ -32,26 +32,52 @@
|
||||
static BYTE *miscRcsId = "$Id$";
|
||||
#endif
|
||||
|
||||
#include "globals.h"
|
||||
#ifndef I86
|
||||
|
||||
VOID strcpy(REG BYTE * d, REG BYTE * s)
|
||||
{
|
||||
while (*s)
|
||||
*d++ = *s++;
|
||||
*d = '\0';
|
||||
}
|
||||
|
||||
VOID fstrcpy(REG BYTE FAR * d, REG BYTE FAR * s)
|
||||
{
|
||||
while (*s)
|
||||
*d++ = *s++;
|
||||
*d = '\0';
|
||||
}
|
||||
|
||||
VOID fstrncpy(BYTE FAR * d, BYTE FAR * s, REG COUNT n)
|
||||
{
|
||||
while (*s && n--)
|
||||
*d++ = *s++;
|
||||
*d = '\0';
|
||||
}
|
||||
|
||||
VOID memcpy(REG VOID * d, REG VOID * s, REG COUNT n)
|
||||
{
|
||||
while (n--)
|
||||
*d++ = *s++;
|
||||
}
|
||||
|
||||
VOID fmemcpy(REG VOID FAR * d, REG VOID FAR * s, REG COUNT n)
|
||||
{
|
||||
while (n--)
|
||||
*((BYTE FAR *) d)++ = *((BYTE FAR *) s)++;
|
||||
}
|
||||
|
||||
VOID fmemset(REG VOID FAR * s, REG int ch, REG COUNT n)
|
||||
{
|
||||
while (n--)
|
||||
*((BYTE FAR *) s)++ = ch;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
/*
|
||||
* $Log$
|
||||
* Revision 1.6 2001/11/04 19:47:39 bartoldeman
|
||||
* kernel 2025a changes: see history.txt
|
||||
*
|
||||
* Revision 1.5 2001/04/15 03:21:50 bartoldeman
|
||||
* See history.txt for the list of fixes.
|
||||
*
|
||||
* Revision 1.4 2001/03/21 02:56:26 bartoldeman
|
||||
* See history.txt for changes. Bug fixes and HMA support are the main ones.
|
||||
*
|
||||
* Revision 1.3 2000/05/25 20:56:21 jimtabor
|
||||
* Fixed project history
|
||||
*
|
||||
* Revision 1.2 2000/05/08 04:30:00 jimtabor
|
||||
* Update CVS to 2020
|
||||
*
|
||||
* Revision 1.1.1.1 2000/05/06 19:34:53 jhall1
|
||||
* The FreeDOS Kernel. A DOS kernel that aims to be 100% compatible with
|
||||
* MS-DOS. Distributed under the GNU GPL.
|
||||
* Log: misc.c,v - for newer entries see "cvs log misc.c"
|
||||
*
|
||||
* Revision 1.4 2000/03/09 06:07:11 kernel
|
||||
* 2017f updates by James Tabor
|
||||
@ -94,46 +120,3 @@ static BYTE *miscRcsId = "$Id$";
|
||||
* Initial revision.
|
||||
*/
|
||||
|
||||
#include "globals.h"
|
||||
#ifndef I86
|
||||
|
||||
VOID scopy(REG BYTE * s, REG BYTE * d)
|
||||
{
|
||||
while (*s)
|
||||
*d++ = *s++;
|
||||
*d = '\0';
|
||||
}
|
||||
|
||||
VOID fscopy(REG BYTE FAR * s, REG BYTE FAR * d)
|
||||
{
|
||||
while (*s)
|
||||
*d++ = *s++;
|
||||
*d = '\0';
|
||||
}
|
||||
|
||||
VOID fsncopy(BYTE FAR * s, BYTE FAR * d, REG COUNT n)
|
||||
{
|
||||
while (*s && n--)
|
||||
*d++ = *s++;
|
||||
*d = '\0';
|
||||
}
|
||||
|
||||
VOID bcopy(REG BYTE * s, REG BYTE * d, REG COUNT n)
|
||||
{
|
||||
while (n--)
|
||||
*d++ = *s++;
|
||||
}
|
||||
|
||||
VOID fbcopy(REG VOID FAR * s, REG VOID FAR * d, REG COUNT n)
|
||||
{
|
||||
while (n--)
|
||||
*((BYTE FAR *) d)++ = *((BYTE FAR *) s)++;
|
||||
}
|
||||
|
||||
VOID fmemset(REG VOID FAR * s, REG int ch, REG COUNT n)
|
||||
{
|
||||
while (n--)
|
||||
*((BYTE FAR *) s)++ = ch;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
@ -34,68 +34,6 @@
|
||||
static BYTE *RcsId = "$Id$";
|
||||
#endif
|
||||
|
||||
/*
|
||||
* $Log$
|
||||
* Revision 1.15 2001/11/04 19:47:39 bartoldeman
|
||||
* kernel 2025a changes: see history.txt
|
||||
*
|
||||
* Revision 1.14 2001/07/24 16:56:29 bartoldeman
|
||||
* fixes for FCBs, DJGPP ls, DBLBYTE, dyninit allocation (2024e).
|
||||
*
|
||||
* Revision 1.13 2001/07/22 01:58:58 bartoldeman
|
||||
* Support for Brian's FORMAT, DJGPP libc compilation, cleanups, MSCDEX
|
||||
*
|
||||
* Revision 1.12 2001/04/29 17:34:40 bartoldeman
|
||||
* A new SYS.COM/config.sys single stepping/console output/misc fixes.
|
||||
*
|
||||
* Revision 1.11 2001/04/15 03:21:50 bartoldeman
|
||||
* See history.txt for the list of fixes.
|
||||
*
|
||||
* Revision 1.10 2001/04/02 23:18:30 bartoldeman
|
||||
* Misc, zero terminated device names and redirector bugs fixed.
|
||||
*
|
||||
* Revision 1.9 2001/03/30 19:30:06 bartoldeman
|
||||
* Misc fixes and implementation of SHELLHIGH. See history.txt for details.
|
||||
*
|
||||
* Revision 1.8 2001/03/21 02:56:26 bartoldeman
|
||||
* See history.txt for changes. Bug fixes and HMA support are the main ones.
|
||||
*
|
||||
* Revision 1.7 2000/08/06 05:50:17 jimtabor
|
||||
* Add new files and update cvs with patches and changes
|
||||
*
|
||||
* Revision 1.6 2000/06/21 18:16:46 jimtabor
|
||||
* Add UMB code, patch, and code fixes
|
||||
*
|
||||
* Revision 1.5 2000/05/26 19:25:19 jimtabor
|
||||
* Read History file for Change info
|
||||
*
|
||||
* Revision 1.4 2000/05/25 20:56:21 jimtabor
|
||||
* Fixed project history
|
||||
*
|
||||
* Revision 1.3 2000/05/17 19:15:12 jimtabor
|
||||
* Cleanup, add and fix source.
|
||||
*
|
||||
* Revision 1.2 2000/05/08 04:30:00 jimtabor
|
||||
* Update CVS to 2020
|
||||
*
|
||||
* Revision 1.1.1.1 2000/05/06 19:34:53 jhall1
|
||||
* The FreeDOS Kernel. A DOS kernel that aims to be 100% compatible with
|
||||
* MS-DOS. Distributed under the GNU GPL.
|
||||
*
|
||||
* Revision 1.5 2000/03/31 05:40:09 jtabor
|
||||
* Added Eric W. Biederman Patches
|
||||
*
|
||||
* Revision 1.4 2000/03/17 22:59:04 kernel
|
||||
* Steffen Kaiser's NLS changes
|
||||
*
|
||||
* Revision 1.3 2000/03/09 06:07:11 kernel
|
||||
* 2017f updates by James Tabor
|
||||
*
|
||||
* Revision 1.2 1999/09/23 04:40:48 jprice
|
||||
* *** empty log message ***
|
||||
*
|
||||
*/
|
||||
|
||||
/* see RBIL D-2152 and D-215D06 before attempting
|
||||
to change these two functions!
|
||||
*/
|
||||
@ -111,3 +49,21 @@ VOID set_machine_name(BYTE FAR * netname, UWORD name_num)
|
||||
fmemcpy(&net_name, netname, 15);
|
||||
net_set_count++;
|
||||
}
|
||||
|
||||
/*
|
||||
* Log: network.c,v - for newer entries see "cvs log network.c"
|
||||
*
|
||||
* Revision 1.5 2000/03/31 05:40:09 jtabor
|
||||
* Added Eric W. Biederman Patches
|
||||
*
|
||||
* Revision 1.4 2000/03/17 22:59:04 kernel
|
||||
* Steffen Kaiser's NLS changes
|
||||
*
|
||||
* Revision 1.3 2000/03/09 06:07:11 kernel
|
||||
* 2017f updates by James Tabor
|
||||
*
|
||||
* Revision 1.2 1999/09/23 04:40:48 jprice
|
||||
* *** empty log message ***
|
||||
*
|
||||
*/
|
||||
|
||||
|
@ -29,104 +29,6 @@
|
||||
static BYTE *mainRcsId = "$Id$";
|
||||
#endif
|
||||
|
||||
/*
|
||||
* $Log$
|
||||
* Revision 1.15 2001/11/13 23:36:45 bartoldeman
|
||||
* Kernel 2025a final changes.
|
||||
*
|
||||
* Revision 1.14 2001/09/23 20:39:44 bartoldeman
|
||||
* FAT32 support, misc fixes, INT2F/AH=12 support, drive B: handling
|
||||
*
|
||||
* Revision 1.13 2001/08/20 20:32:15 bartoldeman
|
||||
* Truename, get free space and ctrl-break fixes.
|
||||
*
|
||||
* Revision 1.12 2001/07/28 18:13:06 bartoldeman
|
||||
* Fixes for FORMAT+SYS, FATFS, get current dir, kernel init memory situation.
|
||||
*
|
||||
* Revision 1.11 2001/04/15 03:21:50 bartoldeman
|
||||
* See history.txt for the list of fixes.
|
||||
*
|
||||
* Revision 1.10 2001/04/02 23:18:30 bartoldeman
|
||||
* Misc, zero terminated device names and redirector bugs fixed.
|
||||
*
|
||||
* Revision 1.9 2001/03/30 22:27:42 bartoldeman
|
||||
* Saner lastdrive handling.
|
||||
*
|
||||
* Revision 1.8 2000/08/06 05:50:17 jimtabor
|
||||
* Add new files and update cvs with patches and changes
|
||||
*
|
||||
* Revision 1.7 2000/06/21 18:16:46 jimtabor
|
||||
* Add UMB code, patch, and code fixes
|
||||
*
|
||||
* Revision 1.6 2000/06/01 06:37:38 jimtabor
|
||||
* Read History for Changes
|
||||
*
|
||||
* Revision 1.5 2000/05/26 19:25:19 jimtabor
|
||||
* Read History file for Change info
|
||||
*
|
||||
* Revision 1.4 2000/05/25 20:56:21 jimtabor
|
||||
* Fixed project history
|
||||
*
|
||||
* Revision 1.3 2000/05/17 19:15:12 jimtabor
|
||||
* Cleanup, add and fix source.
|
||||
*
|
||||
* Revision 1.2 2000/05/08 04:30:00 jimtabor
|
||||
* Update CVS to 2020
|
||||
*
|
||||
* Revision 1.1.1.1 2000/05/06 19:34:53 jhall1
|
||||
* The FreeDOS Kernel. A DOS kernel that aims to be 100% compatible with
|
||||
* MS-DOS. Distributed under the GNU GPL.
|
||||
*
|
||||
* Revision 1.8 2000/04/02 06:11:35 jtabor
|
||||
* Fix ChgDir Code
|
||||
*
|
||||
* Revision 1.7 2000/04/02 05:30:48 jtabor
|
||||
* Fix ChgDir Code
|
||||
*
|
||||
* Revision 1.6 2000/03/31 05:40:09 jtabor
|
||||
* Added Eric W. Biederman Patches
|
||||
*
|
||||
* Revision 1.5 2000/03/09 06:07:11 kernel
|
||||
* 2017f updates by James Tabor
|
||||
*
|
||||
* Revision 1.4 1999/08/25 03:18:09 jprice
|
||||
* ror4 patches to allow TC 2.01 compile.
|
||||
*
|
||||
* Revision 1.3 1999/04/11 04:33:39 jprice
|
||||
* ror4 patches
|
||||
*
|
||||
* Revision 1.2 1999/04/04 18:51:43 jprice
|
||||
* no message
|
||||
*
|
||||
* Revision 1.1.1.1 1999/03/29 15:41:22 jprice
|
||||
* New version without IPL.SYS
|
||||
*
|
||||
* Revision 1.4 1999/02/08 05:55:57 jprice
|
||||
* Added Pat's 1937 kernel patches
|
||||
*
|
||||
* Revision 1.3 1999/02/01 01:48:41 jprice
|
||||
* Clean up; Now you can use hex numbers in config.sys. added config.sys screen function to change screen mode (28 or 43/50 lines)
|
||||
*
|
||||
* Revision 1.2 1999/01/22 04:13:26 jprice
|
||||
* Formating
|
||||
*
|
||||
* Revision 1.1.1.1 1999/01/20 05:51:01 jprice
|
||||
* Imported sources
|
||||
*
|
||||
*
|
||||
* Rev 1.4 06 Dec 1998 8:49:02 patv
|
||||
* Bug fixes.
|
||||
*
|
||||
* Rev 1.3 04 Jan 1998 23:15:22 patv
|
||||
* Changed Log for strip utility
|
||||
*
|
||||
* Rev 1.2 04 Jan 1998 17:26:14 patv
|
||||
* Corrected subdirectory bug
|
||||
*
|
||||
* Rev 1.1 22 Jan 1997 13:21:22 patv
|
||||
* pre-0.92 Svante Frey bug fixes.
|
||||
*/
|
||||
|
||||
#include "portab.h"
|
||||
#include "globals.h"
|
||||
#include "proto.h"
|
||||
@ -343,7 +245,7 @@ COUNT ASMCFUNC truename(char FAR * src, char FAR * dest, COUNT t)
|
||||
current_ldt = &CDSp->cds_table[i];
|
||||
|
||||
/* Always give the redirector a chance to rewrite the filename */
|
||||
fsncopy((BYTE FAR *) src, bufp -1, sizeof(buf) - (bufp - buf));
|
||||
fstrncpy(bufp - 1, src, sizeof(buf) - (bufp - buf));
|
||||
if ((t == FALSE) && (QRemote_Fn(buf, dest) == SUCCESS) && (dest[0] != '\0')) {
|
||||
return SUCCESS;
|
||||
} else {
|
||||
@ -351,7 +253,7 @@ COUNT ASMCFUNC truename(char FAR * src, char FAR * dest, COUNT t)
|
||||
}
|
||||
if (t == FALSE)
|
||||
{
|
||||
fsncopy((BYTE FAR *) & current_ldt->cdsCurrentPath[0], (BYTE FAR *) & buf[0], current_ldt->cdsJoinOffset);
|
||||
fstrncpy(buf, current_ldt->cdsCurrentPath, current_ldt->cdsJoinOffset);
|
||||
bufp = buf + current_ldt->cdsJoinOffset;
|
||||
rootEndPos = current_ldt->cdsJoinOffset; /* renamed x to rootEndPos - Ron Cemer */
|
||||
*bufp++ = '\\';
|
||||
@ -594,8 +496,61 @@ exit_tn:
|
||||
DosUpString(buf);
|
||||
|
||||
/* copy to user's buffer */
|
||||
fbcopy(buf, dest, bufp - buf);
|
||||
fmemcpy(dest, buf, bufp - buf);
|
||||
|
||||
return SUCCESS;
|
||||
}
|
||||
|
||||
/*
|
||||
* Log: newstuff.c,v - for newer entries see "cvs log newstuff.c"
|
||||
*
|
||||
* Revision 1.8 2000/04/02 06:11:35 jtabor
|
||||
* Fix ChgDir Code
|
||||
*
|
||||
* Revision 1.7 2000/04/02 05:30:48 jtabor
|
||||
* Fix ChgDir Code
|
||||
*
|
||||
* Revision 1.6 2000/03/31 05:40:09 jtabor
|
||||
* Added Eric W. Biederman Patches
|
||||
*
|
||||
* Revision 1.5 2000/03/09 06:07:11 kernel
|
||||
* 2017f updates by James Tabor
|
||||
*
|
||||
* Revision 1.4 1999/08/25 03:18:09 jprice
|
||||
* ror4 patches to allow TC 2.01 compile.
|
||||
*
|
||||
* Revision 1.3 1999/04/11 04:33:39 jprice
|
||||
* ror4 patches
|
||||
*
|
||||
* Revision 1.2 1999/04/04 18:51:43 jprice
|
||||
* no message
|
||||
*
|
||||
* Revision 1.1.1.1 1999/03/29 15:41:22 jprice
|
||||
* New version without IPL.SYS
|
||||
*
|
||||
* Revision 1.4 1999/02/08 05:55:57 jprice
|
||||
* Added Pat's 1937 kernel patches
|
||||
*
|
||||
* Revision 1.3 1999/02/01 01:48:41 jprice
|
||||
* Clean up; Now you can use hex numbers in config.sys. added config.sys screen function to change screen mode (28 or 43/50 lines)
|
||||
*
|
||||
* Revision 1.2 1999/01/22 04:13:26 jprice
|
||||
* Formating
|
||||
*
|
||||
* Revision 1.1.1.1 1999/01/20 05:51:01 jprice
|
||||
* Imported sources
|
||||
*
|
||||
*
|
||||
* Rev 1.4 06 Dec 1998 8:49:02 patv
|
||||
* Bug fixes.
|
||||
*
|
||||
* Rev 1.3 04 Jan 1998 23:15:22 patv
|
||||
* Changed Log for strip utility
|
||||
*
|
||||
* Rev 1.2 04 Jan 1998 17:26:14 patv
|
||||
* Corrected subdirectory bug
|
||||
*
|
||||
* Rev 1.1 22 Jan 1997 13:21:22 patv
|
||||
* pre-0.92 Svante Frey bug fixes.
|
||||
*/
|
||||
|
||||
|
41
kernel/nls.c
41
kernel/nls.c
@ -42,31 +42,6 @@
|
||||
static BYTE *RcsId = "$Id$";
|
||||
#endif
|
||||
|
||||
/*
|
||||
* $Log$
|
||||
* Revision 1.9 2001/09/23 20:39:44 bartoldeman
|
||||
* FAT32 support, misc fixes, INT2F/AH=12 support, drive B: handling
|
||||
*
|
||||
* Revision 1.8 2001/07/09 22:19:33 bartoldeman
|
||||
* LBA/FCB/FAT/SYS/Ctrl-C/ioctl fixes + memory savings
|
||||
*
|
||||
* Revision 1.7 2001/06/03 14:16:18 bartoldeman
|
||||
* BUFFERS tuning and misc bug fixes/cleanups (2024c).
|
||||
*
|
||||
* Revision 1.6 2001/04/15 03:21:50 bartoldeman
|
||||
* See history.txt for the list of fixes.
|
||||
*
|
||||
* Revision 1.5 2001/03/21 02:56:26 bartoldeman
|
||||
* See history.txt for changes. Bug fixes and HMA support are the main ones.
|
||||
*
|
||||
* Revision 1.4 2000/08/06 05:50:17 jimtabor
|
||||
* Add new files and update cvs with patches and changes
|
||||
*
|
||||
* Revision 1.1 2000/03/23 02:44:21 ska
|
||||
* Initial revision
|
||||
*
|
||||
*/
|
||||
|
||||
/*
|
||||
* assertDSeqSS() - test if DS == SS
|
||||
* Otherwise pointers to local variables (that ones on the stack) will
|
||||
@ -635,7 +610,12 @@ COUNT DosSetCodepage(UWORD actCP, UWORD sysCP)
|
||||
UWORD ASMCFUNC syscall_MUX14(DIRECT_IREGS)
|
||||
{ struct nlsPackage FAR*nls; /* addressed NLS package */
|
||||
|
||||
UNREFERENCED_PARAMETER (flags || cs || ip || ds || es || si);
|
||||
UNREFERENCED_PARAMETER (flags);
|
||||
UNREFERENCED_PARAMETER (cs);
|
||||
UNREFERENCED_PARAMETER (ip);
|
||||
UNREFERENCED_PARAMETER (ds);
|
||||
UNREFERENCED_PARAMETER (es);
|
||||
UNREFERENCED_PARAMETER (si);
|
||||
|
||||
log( ("NLS: MUX14(): subfct=%x, cp=%u, cntry=%u\n",
|
||||
AL, BX, DX) );
|
||||
@ -680,3 +660,12 @@ log( ("NLS: MUX14(FILE_UPMEM): len=%u, %04x:%04x=\"", CX, ES, DI) );
|
||||
log( ("NLS: MUX14(): Invalid function %x\n", AL) );
|
||||
return DE_INVLDFUNC; /* no such function */
|
||||
}
|
||||
|
||||
/*
|
||||
* Log: nls.c,v - for newer log entries see "cvs log nls.c"
|
||||
*
|
||||
* Revision 1.1 2000/03/23 02:44:21 ska
|
||||
* Initial revision
|
||||
*
|
||||
*/
|
||||
|
||||
|
@ -38,16 +38,6 @@
|
||||
static BYTE *RcsId = "$Id$";
|
||||
#endif
|
||||
|
||||
/*
|
||||
* $Log$
|
||||
* Revision 1.2 2001/11/04 19:47:39 bartoldeman
|
||||
* kernel 2025a changes: see history.txt
|
||||
*
|
||||
* Revision 1.1 2000/08/06 05:50:17 jimtabor
|
||||
* Add new files and update cvs with patches and changes
|
||||
*
|
||||
*/
|
||||
|
||||
#define filename Config.cfgCSYS_fnam
|
||||
#define cntry Config.cfgCSYS_cntry
|
||||
#define cp Config.cfgCSYS_cp
|
||||
@ -389,3 +379,12 @@ INIT BOOL LoadCountryInfo(char *fnam)
|
||||
printf("Filename too long\n");
|
||||
return 0;
|
||||
}
|
||||
|
||||
/*
|
||||
* Log: nls_load.c,v for newer entries do "cvs log nls_load.c"
|
||||
*
|
||||
* Revision 1.1 2000/08/06 05:50:17 jimtabor
|
||||
* Add new files and update cvs with patches and changes
|
||||
*
|
||||
*/
|
||||
|
||||
|
@ -24,64 +24,7 @@
|
||||
; write to the Free Software Foundation, 675 Mass Ave,
|
||||
; Cambridge, MA 02139, USA.
|
||||
;
|
||||
; $Logfile: C:/dos-c/src/kernel/nlssupt.asv $
|
||||
;
|
||||
; $Id$
|
||||
;
|
||||
; $Log$
|
||||
; Revision 1.6 2001/03/21 02:56:26 bartoldeman
|
||||
; See history.txt for changes. Bug fixes and HMA support are the main ones.
|
||||
;
|
||||
;
|
||||
; Revision 1.5 2001/03/08 21:15:00 bartoldeman
|
||||
; Fixed typo in dosUpChar (Tom Ehlert)
|
||||
;
|
||||
; Revision 1.4 2000/08/06 05:50:17 jimtabor
|
||||
; Add new files and update cvs with patches and changes
|
||||
;
|
||||
; Revision 1.3 2000/05/25 20:56:21 jimtabor
|
||||
; Fixed project history
|
||||
;
|
||||
; Revision 1.2 2000/05/08 04:30:00 jimtabor
|
||||
; Update CVS to 2020
|
||||
;
|
||||
; Revision 1.1.1.1 2000/05/06 19:34:53 jhall1
|
||||
; The FreeDOS Kernel. A DOS kernel that aims to be 100% compatible with
|
||||
; MS-DOS. Distributed under the GNU GPL.
|
||||
;
|
||||
; Revision 1.3 2000/03/17 22:59:04 kernel
|
||||
; Steffen Kaiser's NLS changes
|
||||
;
|
||||
; Revision 1.2 1999/08/10 17:57:13 jprice
|
||||
; ror4 2011-02 patch
|
||||
;
|
||||
; Revision 1.1.1.1 1999/03/29 15:41:25 jprice
|
||||
; New version without IPL.SYS
|
||||
;
|
||||
; Revision 1.4 1999/02/08 05:55:57 jprice
|
||||
; Added Pat's 1937 kernel patches
|
||||
;
|
||||
; Revision 1.3 1999/02/01 01:48:41 jprice
|
||||
; Clean up; Now you can use hex numbers in config.sys. added config.sys screen function to change screen mode (28 or 43/50 lines)
|
||||
;
|
||||
; Revision 1.2 1999/01/22 04:13:26 jprice
|
||||
; Formating
|
||||
;
|
||||
; Revision 1.1.1.1 1999/01/20 05:51:01 jprice
|
||||
; Imported sources
|
||||
;
|
||||
; Rev 1.3 06 Dec 1998 8:46:56 patv
|
||||
; Bug fixes.
|
||||
;
|
||||
; Rev 1.2 16 Jan 1997 12:46:44 patv
|
||||
; pre-Release 0.92 feature additions
|
||||
;
|
||||
; Rev 1.1 29 May 1996 21:03:38 patv
|
||||
; bug fixes for v0.91a
|
||||
;
|
||||
; Rev 1.0 19 Feb 1996 3:24:04 patv
|
||||
; Added NLS, int2f and config.sys processing
|
||||
; $EndLog$
|
||||
;
|
||||
|
||||
|
||||
@ -126,3 +69,39 @@ _reloc_call_CharMapSrvc:
|
||||
pop es
|
||||
pop ds
|
||||
retf ; Return far
|
||||
; Log: nlssupt.asm,v
|
||||
;
|
||||
; Revision 1.3 2000/03/17 22:59:04 kernel
|
||||
; Steffen Kaiser's NLS changes
|
||||
;
|
||||
; Revision 1.2 1999/08/10 17:57:13 jprice
|
||||
; ror4 2011-02 patch
|
||||
;
|
||||
; Revision 1.1.1.1 1999/03/29 15:41:25 jprice
|
||||
; New version without IPL.SYS
|
||||
;
|
||||
; Revision 1.4 1999/02/08 05:55:57 jprice
|
||||
; Added Pat's 1937 kernel patches
|
||||
;
|
||||
; Revision 1.3 1999/02/01 01:48:41 jprice
|
||||
; Clean up; Now you can use hex numbers in config.sys. added config.sys screen function to change screen mode (28 or 43/50 lines)
|
||||
;
|
||||
; Revision 1.2 1999/01/22 04:13:26 jprice
|
||||
; Formating
|
||||
;
|
||||
; Revision 1.1.1.1 1999/01/20 05:51:01 jprice
|
||||
; Imported sources
|
||||
;
|
||||
; Rev 1.3 06 Dec 1998 8:46:56 patv
|
||||
; Bug fixes.
|
||||
;
|
||||
; Rev 1.2 16 Jan 1997 12:46:44 patv
|
||||
; pre-Release 0.92 feature additions
|
||||
;
|
||||
; Rev 1.1 29 May 1996 21:03:38 patv
|
||||
; bug fixes for v0.91a
|
||||
;
|
||||
; Rev 1.0 19 Feb 1996 3:24:04 patv
|
||||
; Added NLS, int2f and config.sys processing
|
||||
; EndLog
|
||||
;
|
||||
|
174
kernel/prf.c
174
kernel/prf.c
@ -48,111 +48,6 @@ COUNT ASMCFUNC fstrlen (BYTE FAR * s); /* don't want globals.h, sorry */
|
||||
static BYTE *prfRcsId = "$Id$";
|
||||
#endif
|
||||
|
||||
/*
|
||||
* $Log$
|
||||
* Revision 1.13 2001/11/04 19:47:39 bartoldeman
|
||||
* kernel 2025a changes: see history.txt
|
||||
*
|
||||
* Revision 1.12 2001/09/23 20:39:44 bartoldeman
|
||||
* FAT32 support, misc fixes, INT2F/AH=12 support, drive B: handling
|
||||
*
|
||||
* Revision 1.11 2001/07/22 01:58:58 bartoldeman
|
||||
* Support for Brian's FORMAT, DJGPP libc compilation, cleanups, MSCDEX
|
||||
*
|
||||
* Revision 1.10 2001/04/29 17:34:40 bartoldeman
|
||||
* A new SYS.COM/config.sys single stepping/console output/misc fixes.
|
||||
*
|
||||
* Revision 1.9 2001/04/21 22:32:53 bartoldeman
|
||||
* Init DS=Init CS, fixed stack overflow problems and misc bugs.
|
||||
*
|
||||
* Revision 1.8 2001/04/16 01:45:26 bartoldeman
|
||||
* Fixed handles, config.sys drivers, warnings. Enabled INT21/AH=6C, printf %S/%Fs
|
||||
*
|
||||
* Revision 1.7 2001/04/15 03:21:50 bartoldeman
|
||||
* See history.txt for the list of fixes.
|
||||
*
|
||||
* Revision 1.6 2001/03/30 19:30:06 bartoldeman
|
||||
* Misc fixes and implementation of SHELLHIGH. See history.txt for details.
|
||||
*
|
||||
* Revision 1.5 2001/03/21 02:56:26 bartoldeman
|
||||
* See history.txt for changes. Bug fixes and HMA support are the main ones.
|
||||
*
|
||||
* Revision 1.4 2001/03/07 10:00:00 tomehlert
|
||||
* recoded for smaller object footprint, added main() for testing+QA
|
||||
*
|
||||
* $Log$
|
||||
* Revision 1.13 2001/11/04 19:47:39 bartoldeman
|
||||
* kernel 2025a changes: see history.txt
|
||||
*
|
||||
* Revision 1.12 2001/09/23 20:39:44 bartoldeman
|
||||
* FAT32 support, misc fixes, INT2F/AH=12 support, drive B: handling
|
||||
*
|
||||
* Revision 1.11 2001/07/22 01:58:58 bartoldeman
|
||||
* Support for Brian's FORMAT, DJGPP libc compilation, cleanups, MSCDEX
|
||||
*
|
||||
* Revision 1.10 2001/04/29 17:34:40 bartoldeman
|
||||
* A new SYS.COM/config.sys single stepping/console output/misc fixes.
|
||||
*
|
||||
* Revision 1.9 2001/04/21 22:32:53 bartoldeman
|
||||
* Init DS=Init CS, fixed stack overflow problems and misc bugs.
|
||||
*
|
||||
* Revision 1.8 2001/04/16 01:45:26 bartoldeman
|
||||
* Fixed handles, config.sys drivers, warnings. Enabled INT21/AH=6C, printf %S/%Fs
|
||||
*
|
||||
* Revision 1.7 2001/04/15 03:21:50 bartoldeman
|
||||
* See history.txt for the list of fixes.
|
||||
*
|
||||
* Revision 1.6 2001/03/30 19:30:06 bartoldeman
|
||||
* Misc fixes and implementation of SHELLHIGH. See history.txt for details.
|
||||
*
|
||||
* Revision 1.5 2001/03/21 02:56:26 bartoldeman
|
||||
* See history.txt for changes. Bug fixes and HMA support are the main ones.
|
||||
*
|
||||
* Revision 1.3 2000/05/25 20:56:21 jimtabor
|
||||
* Fixed project history
|
||||
*
|
||||
* Revision 1.2 2000/05/08 04:30:00 jimtabor
|
||||
* Update CVS to 2020
|
||||
*
|
||||
* Revision 1.1.1.1 2000/05/06 19:34:53 jhall1
|
||||
* The FreeDOS Kernel. A DOS kernel that aims to be 100% compatible with
|
||||
* MS-DOS. Distributed under the GNU GPL.
|
||||
*
|
||||
* Revision 1.3 2000/03/09 06:07:11 kernel
|
||||
* 2017f updates by James Tabor
|
||||
*
|
||||
* Revision 1.2 1999/04/04 18:51:43 jprice
|
||||
* no message
|
||||
*
|
||||
* Revision 1.1.1.1 1999/03/29 15:42:20 jprice
|
||||
* New version without IPL.SYS
|
||||
*
|
||||
* Revision 1.3 1999/02/01 01:43:28 jprice
|
||||
* Fixed findfirst function to find volume label with Windows long filenames
|
||||
*
|
||||
* Revision 1.2 1999/01/22 04:15:28 jprice
|
||||
* Formating
|
||||
*
|
||||
* Revision 1.1.1.1 1999/01/20 05:51:00 jprice
|
||||
* Imported sources
|
||||
*
|
||||
*
|
||||
* Rev 1.4 04 Jan 1998 23:14:38 patv
|
||||
* Changed Log for strip utility
|
||||
*
|
||||
* Rev 1.3 29 May 1996 21:15:10 patv
|
||||
* bug fixes for v0.91a
|
||||
*
|
||||
* Rev 1.2 01 Sep 1995 17:48:42 patv
|
||||
* First GPL release.
|
||||
*
|
||||
* Rev 1.1 30 Jul 1995 20:50:26 patv
|
||||
* Eliminated version strings in ipl
|
||||
*
|
||||
* Rev 1.0 02 Jul 1995 8:05:10 patv
|
||||
* Initial revision.
|
||||
*/
|
||||
|
||||
static BYTE *charp = 0;
|
||||
|
||||
#ifdef PROTO
|
||||
@ -383,23 +278,27 @@ COUNT
|
||||
|
||||
case 'p':
|
||||
{
|
||||
WORD w[2];
|
||||
UWORD w[2];
|
||||
static char pointerFormat[] = "%04x:%04x";
|
||||
w[1] = *((unsigned int*) arg)++;
|
||||
w[0] = *((unsigned int*) arg)++;
|
||||
w[1] = *((UWORD *) arg);
|
||||
arg += sizeof(UWORD);
|
||||
w[0] = *((UWORD *) arg);
|
||||
arg += sizeof(UWORD);
|
||||
do_printf(pointerFormat,(BYTE**)&w);
|
||||
continue;
|
||||
}
|
||||
|
||||
case 's':
|
||||
p = *((BYTE **) arg)++;
|
||||
p = *((BYTE **) arg);
|
||||
arg += sizeof(BYTE *);
|
||||
goto do_outputstring;
|
||||
|
||||
case 'F':
|
||||
fmt++;
|
||||
/* we assume %Fs here */
|
||||
case 'S':
|
||||
p = *((BYTE FAR **) arg)++;
|
||||
p = *((BYTE FAR **) arg);
|
||||
arg += sizeof(BYTE FAR *);
|
||||
goto do_outputstring;
|
||||
|
||||
case 'i':
|
||||
@ -421,11 +320,16 @@ COUNT
|
||||
|
||||
lprt:
|
||||
if (longarg)
|
||||
currentArg = *((LONG *) arg)++;
|
||||
{
|
||||
currentArg = *((LONG *) arg);
|
||||
arg += sizeof(LONG);
|
||||
}
|
||||
else
|
||||
if (base < 0) currentArg = *((int*) arg)++;
|
||||
else currentArg = *((unsigned int*) arg)++;
|
||||
|
||||
{
|
||||
if (base < 0) currentArg = *((int*) arg);
|
||||
else currentArg = *((unsigned int*) arg);
|
||||
arg += sizeof(int);
|
||||
}
|
||||
|
||||
ltob(currentArg, s, base);
|
||||
|
||||
@ -566,3 +470,45 @@ main()
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Log: prf.c,v - see "cvs log prf.c" for newer entries
|
||||
*
|
||||
* Revision 1.4 2001/03/07 10:00:00 tomehlert
|
||||
* recoded for smaller object footprint, added main() for testing+QA
|
||||
*
|
||||
* Revision 1.3 2000/03/09 06:07:11 kernel
|
||||
* 2017f updates by James Tabor
|
||||
*
|
||||
* Revision 1.2 1999/04/04 18:51:43 jprice
|
||||
* no message
|
||||
*
|
||||
* Revision 1.1.1.1 1999/03/29 15:42:20 jprice
|
||||
* New version without IPL.SYS
|
||||
*
|
||||
* Revision 1.3 1999/02/01 01:43:28 jprice
|
||||
* Fixed findfirst function to find volume label with Windows long filenames
|
||||
*
|
||||
* Revision 1.2 1999/01/22 04:15:28 jprice
|
||||
* Formating
|
||||
*
|
||||
* Revision 1.1.1.1 1999/01/20 05:51:00 jprice
|
||||
* Imported sources
|
||||
*
|
||||
*
|
||||
* Rev 1.4 04 Jan 1998 23:14:38 patv
|
||||
* Changed Log for strip utility
|
||||
*
|
||||
* Rev 1.3 29 May 1996 21:15:10 patv
|
||||
* bug fixes for v0.91a
|
||||
*
|
||||
* Rev 1.2 01 Sep 1995 17:48:42 patv
|
||||
* First GPL release.
|
||||
*
|
||||
* Rev 1.1 30 Jul 1995 20:50:26 patv
|
||||
* Eliminated version strings in ipl
|
||||
*
|
||||
* Rev 1.0 02 Jul 1995 8:05:10 patv
|
||||
* Initial revision.
|
||||
*/
|
||||
|
||||
|
@ -26,34 +26,6 @@
|
||||
; Cambridge, MA 02139, USA.
|
||||
;
|
||||
; $Header$
|
||||
;
|
||||
; $Log$
|
||||
; Revision 1.5 2001/09/24 02:21:14 bartoldeman
|
||||
; SYS and printer fixes
|
||||
;
|
||||
; Revision 1.4 2001/09/23 20:39:44 bartoldeman
|
||||
; FAT32 support, misc fixes, INT2F/AH=12 support, drive B: handling
|
||||
;
|
||||
; Revision 1.3 2000/05/25 20:56:21 jimtabor
|
||||
; Fixed project history
|
||||
;
|
||||
; Revision 1.2 2000/05/08 04:30:00 jimtabor
|
||||
; Update CVS to 2020
|
||||
;
|
||||
; Revision 1.1.1.1 2000/05/06 19:34:53 jhall1
|
||||
; The FreeDOS Kernel. A DOS kernel that aims to be 100% compatible with
|
||||
; MS-DOS. Distributed under the GNU GPL.
|
||||
;
|
||||
; Revision 1.2 1999/08/10 17:57:13 jprice
|
||||
; ror4 2011-02 patch
|
||||
;
|
||||
; Revision 1.1.1.1 1999/03/29 15:41:26 jprice
|
||||
; New version without IPL.SYS
|
||||
;
|
||||
; Revision 1.1 1999/02/08 05:55:57 jprice
|
||||
; Added Pat's 1937 kernel patches
|
||||
;
|
||||
; $EndLog$
|
||||
;
|
||||
|
||||
%include "io.inc"
|
||||
@ -271,3 +243,17 @@ PrtGnIoctl3:
|
||||
; as the BIOS has a LARGE timeout before aborting
|
||||
;
|
||||
|
||||
; Log: printer.asm,v
|
||||
;
|
||||
; Revision 1.2 1999/08/10 17:57:13 jprice
|
||||
; ror4 2011-02 patch
|
||||
;
|
||||
; Revision 1.1.1.1 1999/03/29 15:41:26 jprice
|
||||
; New version without IPL.SYS
|
||||
;
|
||||
; Revision 1.1 1999/02/08 05:55:57 jprice
|
||||
; Added Pat's 1937 kernel patches
|
||||
;
|
||||
; EndLog
|
||||
;
|
||||
|
||||
|
@ -25,72 +25,7 @@
|
||||
; write to the Free Software Foundation, 675 Mass Ave,
|
||||
; Cambridge, MA 02139, USA.
|
||||
;
|
||||
; $Logfile: C:/usr/patv/dos-c/src/kernel/procsupt.asv $
|
||||
;
|
||||
; $Id$
|
||||
;
|
||||
; $Log$
|
||||
; Revision 1.7 2001/09/23 20:39:44 bartoldeman
|
||||
; FAT32 support, misc fixes, INT2F/AH=12 support, drive B: handling
|
||||
;
|
||||
; Revision 1.6 2001/04/15 03:21:50 bartoldeman
|
||||
; See history.txt for the list of fixes.
|
||||
;
|
||||
; Revision 1.5 2001/03/24 22:13:05 bartoldeman
|
||||
; See history.txt: dsk.c changes, warning removal and int21 entry handling.
|
||||
;
|
||||
; Revision 1.4 2001/03/21 02:56:26 bartoldeman
|
||||
; See history.txt for changes. Bug fixes and HMA support are the main ones.
|
||||
;
|
||||
; Revision 1.3 2000/05/25 20:56:21 jimtabor
|
||||
; Fixed project history
|
||||
;
|
||||
; Revision 1.2 2000/05/08 04:30:00 jimtabor
|
||||
; Update CVS to 2020
|
||||
;
|
||||
; Revision 1.1.1.1 2000/05/06 19:34:53 jhall1
|
||||
; The FreeDOS Kernel. A DOS kernel that aims to be 100% compatible with
|
||||
; MS-DOS. Distributed under the GNU GPL.
|
||||
;
|
||||
; Revision 1.4 1999/08/10 17:57:13 jprice
|
||||
; ror4 2011-02 patch
|
||||
;
|
||||
; Revision 1.3 1999/04/23 22:38:36 jprice
|
||||
; Fixed got_cbreak function.
|
||||
;
|
||||
; Revision 1.2 1999/04/16 12:21:22 jprice
|
||||
; Steffen c-break handler changes
|
||||
;
|
||||
; Revision 1.1.1.1 1999/03/29 15:41:27 jprice
|
||||
; New version without IPL.SYS
|
||||
;
|
||||
; Revision 1.4 1999/02/08 05:55:57 jprice
|
||||
; Added Pat's 1937 kernel patches
|
||||
;
|
||||
; Revision 1.3 1999/02/01 01:48:41 jprice
|
||||
; Clean up; Now you can use hex numbers in config.sys. added config.sys screen function to change screen mode (28 or 43/50 lines)
|
||||
;
|
||||
; Revision 1.2 1999/01/22 04:13:27 jprice
|
||||
; Formating
|
||||
;
|
||||
; Revision 1.1.1.1 1999/01/20 05:51:01 jprice
|
||||
; Imported sources
|
||||
;
|
||||
; Rev 1.4 06 Dec 1998 8:46:44 patv
|
||||
;Bug fixes.
|
||||
;
|
||||
; Rev 1.3 07 Feb 1998 20:42:08 patv
|
||||
;Modified stack fram to match DOS standard
|
||||
;
|
||||
; Rev 1.2 29 May 1996 21:03:36 patv
|
||||
;bug fixes for v0.91a
|
||||
;
|
||||
; Rev 1.1 01 Sep 1995 17:54:24 patv
|
||||
;First GPL release.
|
||||
;
|
||||
; Rev 1.0 02 Jul 1995 9:05:58 patv
|
||||
;Initial revision.
|
||||
; $EndLog$
|
||||
;
|
||||
|
||||
|
||||
@ -338,3 +273,45 @@ _spawn_int23:
|
||||
; ret
|
||||
;_disable endp
|
||||
|
||||
; Log: procsupt.asm,v
|
||||
; Revision 1.4 1999/08/10 17:57:13 jprice
|
||||
; ror4 2011-02 patch
|
||||
;
|
||||
; Revision 1.3 1999/04/23 22:38:36 jprice
|
||||
; Fixed got_cbreak function.
|
||||
;
|
||||
; Revision 1.2 1999/04/16 12:21:22 jprice
|
||||
; Steffen c-break handler changes
|
||||
;
|
||||
; Revision 1.1.1.1 1999/03/29 15:41:27 jprice
|
||||
; New version without IPL.SYS
|
||||
;
|
||||
; Revision 1.4 1999/02/08 05:55:57 jprice
|
||||
; Added Pat's 1937 kernel patches
|
||||
;
|
||||
; Revision 1.3 1999/02/01 01:48:41 jprice
|
||||
; Clean up; Now you can use hex numbers in config.sys. added config.sys screen function to change screen mode (28 or 43/50 lines)
|
||||
;
|
||||
; Revision 1.2 1999/01/22 04:13:27 jprice
|
||||
; Formating
|
||||
;
|
||||
; Revision 1.1.1.1 1999/01/20 05:51:01 jprice
|
||||
; Imported sources
|
||||
;
|
||||
; Rev 1.4 06 Dec 1998 8:46:44 patv
|
||||
;Bug fixes.
|
||||
;
|
||||
; Rev 1.3 07 Feb 1998 20:42:08 patv
|
||||
;Modified stack fram to match DOS standard
|
||||
;
|
||||
; Rev 1.2 29 May 1996 21:03:36 patv
|
||||
;bug fixes for v0.91a
|
||||
;
|
||||
; Rev 1.1 01 Sep 1995 17:54:24 patv
|
||||
;First GPL release.
|
||||
;
|
||||
; Rev 1.0 02 Jul 1995 9:05:58 patv
|
||||
;Initial revision.
|
||||
; EndLog
|
||||
;
|
||||
|
||||
|
272
kernel/proto.h
272
kernel/proto.h
@ -32,169 +32,6 @@ static BYTE *Proto_hRcsId = "$Id$";
|
||||
#endif
|
||||
#endif
|
||||
|
||||
/*
|
||||
* $Log$
|
||||
* Revision 1.24 2001/11/13 23:36:45 bartoldeman
|
||||
* Kernel 2025a final changes.
|
||||
*
|
||||
* Revision 1.23 2001/11/04 19:47:39 bartoldeman
|
||||
* kernel 2025a changes: see history.txt
|
||||
*
|
||||
* Revision 1.22 2001/09/23 20:39:44 bartoldeman
|
||||
* FAT32 support, misc fixes, INT2F/AH=12 support, drive B: handling
|
||||
*
|
||||
* Revision 1.21 2001/08/19 12:58:36 bartoldeman
|
||||
* Time and date fixes, Ctrl-S/P, findfirst/next, FCBs, buffers, tsr unloading
|
||||
*
|
||||
* Revision 1.20 2001/07/24 16:56:29 bartoldeman
|
||||
* fixes for FCBs, DJGPP ls, DBLBYTE, dyninit allocation (2024e).
|
||||
*
|
||||
* Revision 1.19 2001/07/23 12:47:42 bartoldeman
|
||||
* FCB fixes and clean-ups, exec int21/ax=4b01, initdisk.c printf
|
||||
*
|
||||
* Revision 1.18 2001/07/22 01:58:58 bartoldeman
|
||||
* Support for Brian's FORMAT, DJGPP libc compilation, cleanups, MSCDEX
|
||||
*
|
||||
* Revision 1.17 2001/06/03 14:16:18 bartoldeman
|
||||
* BUFFERS tuning and misc bug fixes/cleanups (2024c).
|
||||
*
|
||||
* Revision 1.16 2001/04/29 17:34:40 bartoldeman
|
||||
* A new SYS.COM/config.sys single stepping/console output/misc fixes.
|
||||
*
|
||||
* Revision 1.15 2001/04/21 22:32:53 bartoldeman
|
||||
* Init DS=Init CS, fixed stack overflow problems and misc bugs.
|
||||
*
|
||||
* Revision 1.14 2001/04/16 01:45:26 bartoldeman
|
||||
* Fixed handles, config.sys drivers, warnings. Enabled INT21/AH=6C, printf %S/%Fs
|
||||
*
|
||||
* Revision 1.13 2001/04/15 03:21:50 bartoldeman
|
||||
* See history.txt for the list of fixes.
|
||||
*
|
||||
* Revision 1.12 2001/03/30 19:30:06 bartoldeman
|
||||
* Misc fixes and implementation of SHELLHIGH. See history.txt for details.
|
||||
*
|
||||
* Revision 1.11 2001/03/27 20:27:43 bartoldeman
|
||||
* dsk.c (reported by Nagy Daniel), inthndlr and int25/26 fixes by Tom Ehlert.
|
||||
*
|
||||
* Revision 1.10 2001/03/22 04:55:36 bartoldeman
|
||||
* Fix prototypes.
|
||||
*
|
||||
* Revision 1.9 2001/03/21 02:56:26 bartoldeman
|
||||
* See history.txt for changes. Bug fixes and HMA support are the main ones.
|
||||
*
|
||||
* Revision 1.8 2000/10/30 00:21:15 jimtabor
|
||||
* Adding Brian Reifsnyder Fix for Int 25/26
|
||||
*
|
||||
* Revision 1.7 2000/08/07 22:51:34 jimtabor
|
||||
* Remove unused code
|
||||
*
|
||||
* Revision 1.6 2000/08/06 05:50:17 jimtabor
|
||||
* Add new files and update cvs with patches and changes
|
||||
*
|
||||
* Revision 1.5 2000/06/21 18:16:46 jimtabor
|
||||
* Add UMB code, patch, and code fixes
|
||||
*
|
||||
* Revision 1.4 2000/05/26 19:25:19 jimtabor
|
||||
* Read History file for Change info
|
||||
*
|
||||
* Revision 1.3 2000/05/25 20:56:21 jimtabor
|
||||
* Fixed project history
|
||||
*
|
||||
* Revision 1.2 2000/05/08 04:30:00 jimtabor
|
||||
* Update CVS to 2020
|
||||
*
|
||||
* Revision 1.1.1.1 2000/05/06 19:34:53 jhall1
|
||||
* The FreeDOS Kernel. A DOS kernel that aims to be 100% compatible with
|
||||
* MS-DOS. Distributed under the GNU GPL.
|
||||
*
|
||||
* Revision 1.17 2000/03/31 05:40:09 jtabor
|
||||
* Added Eric W. Biederman Patches
|
||||
*
|
||||
* Revision 1.16 2000/03/17 22:59:04 kernel
|
||||
* Steffen Kaiser's NLS changes
|
||||
*
|
||||
* Revision 1.15 2000/03/09 06:07:11 kernel
|
||||
* 2017f updates by James Tabor
|
||||
*
|
||||
* Revision 1.14 1999/09/23 04:40:48 jprice
|
||||
* *** empty log message ***
|
||||
*
|
||||
* Revision 1.10 1999/08/25 03:18:09 jprice
|
||||
* ror4 patches to allow TC 2.01 compile.
|
||||
*
|
||||
* Revision 1.9 1999/05/03 06:25:45 jprice
|
||||
* Patches from ror4 and many changed of signed to unsigned variables.
|
||||
*
|
||||
* Revision 1.8 1999/04/23 04:24:39 jprice
|
||||
* Memory manager changes made by ska
|
||||
*
|
||||
* Revision 1.7 1999/04/16 21:43:40 jprice
|
||||
* ror4 multi-sector IO
|
||||
*
|
||||
* Revision 1.6 1999/04/16 12:21:22 jprice
|
||||
* Steffen c-break handler changes
|
||||
*
|
||||
* Revision 1.5 1999/04/12 03:21:17 jprice
|
||||
* more ror4 patches. Changes for multi-block IO
|
||||
*
|
||||
* Revision 1.4 1999/04/11 04:33:39 jprice
|
||||
* ror4 patches
|
||||
*
|
||||
* Revision 1.2 1999/04/04 18:51:43 jprice
|
||||
* no message
|
||||
*
|
||||
* Revision 1.1.1.1 1999/03/29 15:41:30 jprice
|
||||
* New version without IPL.SYS
|
||||
*
|
||||
* Revision 1.4 1999/02/08 05:55:57 jprice
|
||||
* Added Pat's 1937 kernel patches
|
||||
*
|
||||
* Revision 1.3 1999/02/01 01:48:41 jprice
|
||||
* Clean up; Now you can use hex numbers in config.sys. added config.sys screen function to change screen mode (28 or 43/50 lines)
|
||||
*
|
||||
* Revision 1.2 1999/01/22 04:13:27 jprice
|
||||
* Formating
|
||||
*
|
||||
* Revision 1.1.1.1 1999/01/20 05:51:01 jprice
|
||||
* Imported sources
|
||||
*
|
||||
*
|
||||
* Rev 1.11 06 Dec 1998 8:47:18 patv
|
||||
*Expanded due to new I/O subsystem.
|
||||
*
|
||||
* Rev 1.10 07 Feb 1998 20:38:00 patv
|
||||
*Modified stack fram to match DOS standard
|
||||
*
|
||||
* Rev 1.9 22 Jan 1998 4:09:26 patv
|
||||
*Fixed pointer problems affecting SDA
|
||||
*
|
||||
* Rev 1.8 11 Jan 1998 2:06:22 patv
|
||||
*Added functionality to ioctl.
|
||||
*
|
||||
* Rev 1.7 04 Jan 1998 23:16:22 patv
|
||||
*Changed Log for strip utility
|
||||
*
|
||||
* Rev 1.6 03 Jan 1998 8:36:48 patv
|
||||
*Converted data area to SDA format
|
||||
*
|
||||
* Rev 1.5 16 Jan 1997 12:46:44 patv
|
||||
*pre-Release 0.92 feature additions
|
||||
*
|
||||
* Rev 1.4 29 May 1996 21:03:40 patv
|
||||
*bug fixes for v0.91a
|
||||
*
|
||||
* Rev 1.3 19 Feb 1996 3:23:06 patv
|
||||
*Added NLS, int2f and config.sys processing
|
||||
*
|
||||
* Rev 1.2 01 Sep 1995 17:54:26 patv
|
||||
*First GPL release.
|
||||
*
|
||||
* Rev 1.1 30 Jul 1995 20:51:58 patv
|
||||
*Eliminated version strings in ipl
|
||||
*
|
||||
* Rev 1.0 05 Jul 1995 11:32:16 patv
|
||||
*Initial revision.
|
||||
*/
|
||||
|
||||
/* blockio.c */
|
||||
ULONG getblkno(struct buffer FAR *);
|
||||
@ -417,28 +254,11 @@ VOID DosUmbLink(BYTE n);
|
||||
VOID mcb_print(mcb FAR * mcbp);
|
||||
|
||||
/* misc.c */
|
||||
/*
|
||||
VOID scopy(REG BYTE * s, REG BYTE * d);
|
||||
#define strcpy(d, s) scopy(s, d)
|
||||
VOID fbcopy(REG VOID FAR * s, REG VOID FAR * d, REG COUNT n);
|
||||
|
||||
*/
|
||||
VOID strcpy(REG BYTE * d, REG BYTE * s);
|
||||
#define scopy(s, d) strcpy(d,s)
|
||||
VOID ASMCFUNC fmemcpy(REG VOID FAR * d, REG VOID FAR * s, REG COUNT n);
|
||||
#define fbcopy(s, d, n) fmemcpy(d,s,n)
|
||||
|
||||
|
||||
/*VOID fscopy(REG BYTE FAR * s, REG BYTE FAR * d);*/
|
||||
VOID ASMCFUNC fstrcpy(REG BYTE FAR * d, REG BYTE FAR * s);
|
||||
#define fscopy(s,d) fstrcpy(d,s)
|
||||
|
||||
VOID ASMCFUNC fstrcpy(REG BYTE FAR * d, REG BYTE FAR * s);
|
||||
|
||||
/*VOID bcopy(REG BYTE * s, REG BYTE * d, REG COUNT n);*/
|
||||
void ASMCFUNC memcpy(REG void * d, REG VOID * s, REG COUNT n);
|
||||
#define bcopy(s,d,n) memcpy(d,s,n)
|
||||
|
||||
void ASMCFUNC fmemset(REG VOID FAR * s, REG int ch, REG COUNT n);
|
||||
void ASMCFUNC memset(REG VOID * s, REG int ch, REG COUNT n);
|
||||
|
||||
@ -598,3 +418,95 @@ ULONG FAR ASMCFUNC MULULUL(ULONG mul1, ULONG mul2); /* MULtiply ULong by ULong *
|
||||
ULONG FAR ASMCFUNC DIVULUS(ULONG mul1, UWORD mul2); /* DIVide ULong by UShort */
|
||||
ULONG FAR ASMCFUNC DIVMODULUS(ULONG mul1, UWORD mul2,UWORD *rem); /* DIVide ULong by UShort */
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Log: proto.h,v
|
||||
*
|
||||
* Revision 1.17 2000/03/31 05:40:09 jtabor
|
||||
* Added Eric W. Biederman Patches
|
||||
*
|
||||
* Revision 1.16 2000/03/17 22:59:04 kernel
|
||||
* Steffen Kaiser's NLS changes
|
||||
*
|
||||
* Revision 1.15 2000/03/09 06:07:11 kernel
|
||||
* 2017f updates by James Tabor
|
||||
*
|
||||
* Revision 1.14 1999/09/23 04:40:48 jprice
|
||||
* *** empty log message ***
|
||||
*
|
||||
* Revision 1.10 1999/08/25 03:18:09 jprice
|
||||
* ror4 patches to allow TC 2.01 compile.
|
||||
*
|
||||
* Revision 1.9 1999/05/03 06:25:45 jprice
|
||||
* Patches from ror4 and many changed of signed to unsigned variables.
|
||||
*
|
||||
* Revision 1.8 1999/04/23 04:24:39 jprice
|
||||
* Memory manager changes made by ska
|
||||
*
|
||||
* Revision 1.7 1999/04/16 21:43:40 jprice
|
||||
* ror4 multi-sector IO
|
||||
*
|
||||
* Revision 1.6 1999/04/16 12:21:22 jprice
|
||||
* Steffen c-break handler changes
|
||||
*
|
||||
* Revision 1.5 1999/04/12 03:21:17 jprice
|
||||
* more ror4 patches. Changes for multi-block IO
|
||||
*
|
||||
* Revision 1.4 1999/04/11 04:33:39 jprice
|
||||
* ror4 patches
|
||||
*
|
||||
* Revision 1.2 1999/04/04 18:51:43 jprice
|
||||
* no message
|
||||
*
|
||||
* Revision 1.1.1.1 1999/03/29 15:41:30 jprice
|
||||
* New version without IPL.SYS
|
||||
*
|
||||
* Revision 1.4 1999/02/08 05:55:57 jprice
|
||||
* Added Pat's 1937 kernel patches
|
||||
*
|
||||
* Revision 1.3 1999/02/01 01:48:41 jprice
|
||||
* Clean up; Now you can use hex numbers in config.sys. added config.sys screen function to change screen mode (28 or 43/50 lines)
|
||||
*
|
||||
* Revision 1.2 1999/01/22 04:13:27 jprice
|
||||
* Formating
|
||||
*
|
||||
* Revision 1.1.1.1 1999/01/20 05:51:01 jprice
|
||||
* Imported sources
|
||||
*
|
||||
*
|
||||
* Rev 1.11 06 Dec 1998 8:47:18 patv
|
||||
*Expanded due to new I/O subsystem.
|
||||
*
|
||||
* Rev 1.10 07 Feb 1998 20:38:00 patv
|
||||
*Modified stack fram to match DOS standard
|
||||
*
|
||||
* Rev 1.9 22 Jan 1998 4:09:26 patv
|
||||
*Fixed pointer problems affecting SDA
|
||||
*
|
||||
* Rev 1.8 11 Jan 1998 2:06:22 patv
|
||||
*Added functionality to ioctl.
|
||||
*
|
||||
* Rev 1.7 04 Jan 1998 23:16:22 patv
|
||||
*Changed Log for strip utility
|
||||
*
|
||||
* Rev 1.6 03 Jan 1998 8:36:48 patv
|
||||
*Converted data area to SDA format
|
||||
*
|
||||
* Rev 1.5 16 Jan 1997 12:46:44 patv
|
||||
*pre-Release 0.92 feature additions
|
||||
*
|
||||
* Rev 1.4 29 May 1996 21:03:40 patv
|
||||
*bug fixes for v0.91a
|
||||
*
|
||||
* Rev 1.3 19 Feb 1996 3:23:06 patv
|
||||
*Added NLS, int2f and config.sys processing
|
||||
*
|
||||
* Rev 1.2 01 Sep 1995 17:54:26 patv
|
||||
*First GPL release.
|
||||
*
|
||||
* Rev 1.1 30 Jul 1995 20:51:58 patv
|
||||
*Eliminated version strings in ipl
|
||||
*
|
||||
* Rev 1.0 05 Jul 1995 11:32:16 patv
|
||||
*Initial revision.
|
||||
*/
|
||||
|
@ -28,9 +28,6 @@
|
||||
;
|
||||
; $Id$
|
||||
;
|
||||
; Rev 1.0 02 Jul 1995 9:04:50 patv
|
||||
;Initial revision.
|
||||
; $EndLog$
|
||||
;
|
||||
|
||||
%include "segs.inc"
|
||||
|
@ -24,53 +24,8 @@
|
||||
; write to the Free Software Foundation, 675 Mass Ave,
|
||||
; Cambridge, MA 02139, USA.
|
||||
;
|
||||
; $Logfile: C:/usr/patv/dos-c/src/kernel/segs.inv $
|
||||
;
|
||||
; $Header$
|
||||
;
|
||||
; $Log$
|
||||
; Revision 1.9 2001/09/23 20:39:44 bartoldeman
|
||||
; FAT32 support, misc fixes, INT2F/AH=12 support, drive B: handling
|
||||
;
|
||||
; Revision 1.8 2001/07/09 22:19:33 bartoldeman
|
||||
; LBA/FCB/FAT/SYS/Ctrl-C/ioctl fixes + memory savings
|
||||
;
|
||||
; Revision 1.7 2001/04/29 17:34:40 bartoldeman
|
||||
; A new SYS.COM/config.sys single stepping/console output/misc fixes.
|
||||
;
|
||||
; Revision 1.6 2001/04/21 22:32:53 bartoldeman
|
||||
; Init DS=Init CS, fixed stack overflow problems and misc bugs.
|
||||
;
|
||||
; Revision 1.5 2001/04/15 03:21:50 bartoldeman
|
||||
; See history.txt for the list of fixes.
|
||||
;
|
||||
; Revision 1.4 2001/03/21 02:56:26 bartoldeman
|
||||
; See history.txt for changes. Bug fixes and HMA support are the main ones.
|
||||
;
|
||||
; Revision 1.3 2000/05/25 20:56:21 jimtabor
|
||||
; Fixed project history
|
||||
;
|
||||
; Revision 1.2 2000/05/08 04:30:00 jimtabor
|
||||
; Update CVS to 2020
|
||||
;
|
||||
; Revision 1.1.1.1 2000/05/06 19:34:53 jhall1
|
||||
; The FreeDOS Kernel. A DOS kernel that aims to be 100% compatible with
|
||||
; MS-DOS. Distributed under the GNU GPL.
|
||||
;
|
||||
; Revision 1.2 1999/08/10 17:57:13 jprice
|
||||
; ror4 2011-02 patch
|
||||
;
|
||||
; Revision 1.1.1.1 1999/03/29 15:41:30 jprice
|
||||
; New version without IPL.SYS
|
||||
;
|
||||
; Revision 1.1 1999/02/08 05:55:57 jprice
|
||||
; Added Pat's 1937 kernel patches
|
||||
;
|
||||
;
|
||||
; Rev 1.0 06 Dec 1998 8:12:36 patv
|
||||
; Initial revision.
|
||||
; $EndLog
|
||||
;
|
||||
|
||||
group PGROUP PSP
|
||||
group TGROUP _TEXT _IO_TEXT _IO_FIXED_DATA
|
||||
@ -105,3 +60,19 @@ segment IB class=IB align=2
|
||||
segment IB_E class=IB align=2
|
||||
segment IC class=IC align=2
|
||||
|
||||
; Log: segs.inc,v
|
||||
;
|
||||
; Revision 1.2 1999/08/10 17:57:13 jprice
|
||||
; ror4 2011-02 patch
|
||||
;
|
||||
; Revision 1.1.1.1 1999/03/29 15:41:30 jprice
|
||||
; New version without IPL.SYS
|
||||
;
|
||||
; Revision 1.1 1999/02/08 05:55:57 jprice
|
||||
; Added Pat's 1937 kernel patches
|
||||
;
|
||||
;
|
||||
; Rev 1.0 06 Dec 1998 8:12:36 patv
|
||||
; Initial revision.
|
||||
; EndLog
|
||||
;
|
||||
|
@ -26,28 +26,6 @@
|
||||
; Cambridge, MA 02139, USA.
|
||||
;
|
||||
; $Header$
|
||||
;
|
||||
; $Log$
|
||||
; Revision 1.3 2000/05/25 20:56:21 jimtabor
|
||||
; Fixed project history
|
||||
;
|
||||
; Revision 1.2 2000/05/08 04:30:00 jimtabor
|
||||
; Update CVS to 2020
|
||||
;
|
||||
; Revision 1.1.1.1 2000/05/06 19:34:53 jhall1
|
||||
; The FreeDOS Kernel. A DOS kernel that aims to be 100% compatible with
|
||||
; MS-DOS. Distributed under the GNU GPL.
|
||||
;
|
||||
; Revision 1.2 1999/08/10 17:57:13 jprice
|
||||
; ror4 2011-02 patch
|
||||
;
|
||||
; Revision 1.1.1.1 1999/03/29 15:41:31 jprice
|
||||
; New version without IPL.SYS
|
||||
;
|
||||
; Revision 1.1 1999/02/08 05:55:57 jprice
|
||||
; Added Pat's 1937 kernel patches
|
||||
;
|
||||
; $EndLog$
|
||||
;
|
||||
|
||||
%include "io.inc"
|
||||
@ -176,3 +154,15 @@ GetComStat:
|
||||
segment _DATA
|
||||
|
||||
ComStatArray db 0, 0, 0, 0
|
||||
|
||||
; Revision 1.2 1999/08/10 17:57:13 jprice
|
||||
; ror4 2011-02 patch
|
||||
;
|
||||
; Revision 1.1.1.1 1999/03/29 15:41:31 jprice
|
||||
; New version without IPL.SYS
|
||||
;
|
||||
; Revision 1.1 1999/02/08 05:55:57 jprice
|
||||
; Added Pat's 1937 kernel patches
|
||||
;
|
||||
; EndLog
|
||||
;
|
||||
|
119
kernel/strings.c
119
kernel/strings.c
@ -32,74 +32,6 @@
|
||||
static BYTE *stringsRcsId = "$Id$";
|
||||
#endif
|
||||
|
||||
/*
|
||||
* $Log$
|
||||
* Revision 1.6 2001/11/04 19:47:39 bartoldeman
|
||||
* kernel 2025a changes: see history.txt
|
||||
*
|
||||
* Revision 1.5 2001/04/15 03:21:50 bartoldeman
|
||||
* See history.txt for the list of fixes.
|
||||
*
|
||||
* Revision 1.4 2001/03/21 02:56:26 bartoldeman
|
||||
* See history.txt for changes. Bug fixes and HMA support are the main ones.
|
||||
*
|
||||
* Revision 1.3 2000/05/25 20:56:21 jimtabor
|
||||
* Fixed project history
|
||||
*
|
||||
* Revision 1.2 2000/05/08 04:30:00 jimtabor
|
||||
* Update CVS to 2020
|
||||
*
|
||||
* Revision 1.1.1.1 2000/05/06 19:34:53 jhall1
|
||||
* The FreeDOS Kernel. A DOS kernel that aims to be 100% compatible with
|
||||
* MS-DOS. Distributed under the GNU GPL.
|
||||
*
|
||||
* Revision 1.4 2000/03/09 06:07:11 kernel
|
||||
* 2017f updates by James Tabor
|
||||
*
|
||||
* Revision 1.3 1999/08/25 03:18:09 jprice
|
||||
* ror4 patches to allow TC 2.01 compile.
|
||||
*
|
||||
* Revision 1.2 1999/04/04 18:51:43 jprice
|
||||
* no message
|
||||
*
|
||||
* Revision 1.1.1.1 1999/03/29 15:41:32 jprice
|
||||
* New version without IPL.SYS
|
||||
*
|
||||
* Revision 1.4 1999/02/04 03:14:07 jprice
|
||||
* Formating. Added comments.
|
||||
*
|
||||
* Revision 1.3 1999/02/01 01:48:41 jprice
|
||||
* Clean up; Now you can use hex numbers in config.sys. added config.sys screen function to change screen mode (28 or 43/50 lines)
|
||||
*
|
||||
* Revision 1.2 1999/01/22 04:13:27 jprice
|
||||
* Formating
|
||||
*
|
||||
* Revision 1.1.1.1 1999/01/20 05:51:01 jprice
|
||||
* Imported sources
|
||||
*
|
||||
*
|
||||
* Rev 1.6 04 Jan 1998 23:15:16 patv
|
||||
* Changed Log for strip utility
|
||||
*
|
||||
* Rev 1.5 31 Dec 1997 3:59:30 patv
|
||||
* Added new far string functions.
|
||||
*
|
||||
* Rev 1.4 29 May 1996 21:03:30 patv
|
||||
* bug fixes for v0.91a
|
||||
*
|
||||
* Rev 1.3 19 Feb 1996 3:21:36 patv
|
||||
* Added NLS, int2f and config.sys processing
|
||||
*
|
||||
* Rev 1.2 01 Sep 1995 17:54:22 patv
|
||||
* First GPL release.
|
||||
*
|
||||
* Rev 1.1 30 Jul 1995 20:51:58 patv
|
||||
* Eliminated version strings in ipl
|
||||
*
|
||||
* Rev 1.0 02 Jul 1995 8:33:46 patv
|
||||
* Initial revision.
|
||||
*/
|
||||
|
||||
#ifndef I86
|
||||
COUNT strlen(REG BYTE * s)
|
||||
{
|
||||
@ -205,3 +137,54 @@ BYTE *strchr(BYTE * s, BYTE c)
|
||||
return 0;
|
||||
}
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Log: strings.c,v - see "cvs log strings.c" for newer entries
|
||||
*
|
||||
* Revision 1.4 2000/03/09 06:07:11 kernel
|
||||
* 2017f updates by James Tabor
|
||||
*
|
||||
* Revision 1.3 1999/08/25 03:18:09 jprice
|
||||
* ror4 patches to allow TC 2.01 compile.
|
||||
*
|
||||
* Revision 1.2 1999/04/04 18:51:43 jprice
|
||||
* no message
|
||||
*
|
||||
* Revision 1.1.1.1 1999/03/29 15:41:32 jprice
|
||||
* New version without IPL.SYS
|
||||
*
|
||||
* Revision 1.4 1999/02/04 03:14:07 jprice
|
||||
* Formating. Added comments.
|
||||
*
|
||||
* Revision 1.3 1999/02/01 01:48:41 jprice
|
||||
* Clean up; Now you can use hex numbers in config.sys. added config.sys screen function to change screen mode (28 or 43/50 lines)
|
||||
*
|
||||
* Revision 1.2 1999/01/22 04:13:27 jprice
|
||||
* Formating
|
||||
*
|
||||
* Revision 1.1.1.1 1999/01/20 05:51:01 jprice
|
||||
* Imported sources
|
||||
*
|
||||
*
|
||||
* Rev 1.6 04 Jan 1998 23:15:16 patv
|
||||
* Changed Log for strip utility
|
||||
*
|
||||
* Rev 1.5 31 Dec 1997 3:59:30 patv
|
||||
* Added new far string functions.
|
||||
*
|
||||
* Rev 1.4 29 May 1996 21:03:30 patv
|
||||
* bug fixes for v0.91a
|
||||
*
|
||||
* Rev 1.3 19 Feb 1996 3:21:36 patv
|
||||
* Added NLS, int2f and config.sys processing
|
||||
*
|
||||
* Rev 1.2 01 Sep 1995 17:54:22 patv
|
||||
* First GPL release.
|
||||
*
|
||||
* Rev 1.1 30 Jul 1995 20:51:58 patv
|
||||
* Eliminated version strings in ipl
|
||||
*
|
||||
* Rev 1.0 02 Jul 1995 8:33:46 patv
|
||||
* Initial revision.
|
||||
*/
|
||||
|
||||
|
120
kernel/sysclk.c
120
kernel/sysclk.c
@ -33,77 +33,6 @@
|
||||
static BYTE *RcsId = "$Id$";
|
||||
#endif
|
||||
|
||||
/*
|
||||
* $Log$
|
||||
* Revision 1.9 2001/09/23 20:39:44 bartoldeman
|
||||
* FAT32 support, misc fixes, INT2F/AH=12 support, drive B: handling
|
||||
*
|
||||
* Revision 1.8 2001/08/19 12:58:36 bartoldeman
|
||||
* Time and date fixes, Ctrl-S/P, findfirst/next, FCBs, buffers, tsr unloading
|
||||
*
|
||||
* Revision 1.7 2001/07/22 01:58:58 bartoldeman
|
||||
* Support for Brian's FORMAT, DJGPP libc compilation, cleanups, MSCDEX
|
||||
*
|
||||
* Revision 1.6 2001/04/21 22:32:53 bartoldeman
|
||||
* Init DS=Init CS, fixed stack overflow problems and misc bugs.
|
||||
*
|
||||
* Revision 1.5 2001/04/15 03:21:50 bartoldeman
|
||||
* See history.txt for the list of fixes.
|
||||
*
|
||||
* Revision 1.4 2001/03/21 02:56:26 bartoldeman
|
||||
* See history.txt for changes. Bug fixes and HMA support are the main ones.
|
||||
*
|
||||
* Revision 1.3 2000/05/25 20:56:21 jimtabor
|
||||
* Fixed project history
|
||||
*
|
||||
* Revision 1.2 2000/05/08 04:30:00 jimtabor
|
||||
* Update CVS to 2020
|
||||
*
|
||||
* Revision 1.1.1.1 2000/05/06 19:34:53 jhall1
|
||||
* The FreeDOS Kernel. A DOS kernel that aims to be 100% compatible with
|
||||
* MS-DOS. Distributed under the GNU GPL.
|
||||
*
|
||||
* Revision 1.3 2000/03/09 06:07:11 kernel
|
||||
* 2017f updates by James Tabor
|
||||
*
|
||||
* Revision 1.2 1999/04/12 03:21:17 jprice
|
||||
* more ror4 patches. Changes for multi-block IO
|
||||
*
|
||||
* Revision 1.1.1.1 1999/03/29 15:41:33 jprice
|
||||
* New version without IPL.SYS
|
||||
*
|
||||
* Revision 1.5 1999/02/08 05:55:58 jprice
|
||||
* Added Pat's 1937 kernel patches
|
||||
*
|
||||
* Revision 1.4 1999/02/04 03:14:07 jprice
|
||||
* Formating. Added comments.
|
||||
*
|
||||
* Revision 1.3 1999/02/01 01:48:41 jprice
|
||||
* Clean up; Now you can use hex numbers in config.sys. added config.sys screen function to change screen mode (28 or 43/50 lines)
|
||||
*
|
||||
* Revision 1.2 1999/01/22 04:13:27 jprice
|
||||
* Formating
|
||||
*
|
||||
* Revision 1.1.1.1 1999/01/20 05:51:01 jprice
|
||||
* Imported sources
|
||||
*
|
||||
*
|
||||
* Rev 1.4 04 Jan 1998 23:15:16 patv
|
||||
* Changed Log for strip utility
|
||||
*
|
||||
* Rev 1.3 29 May 1996 21:03:48 patv
|
||||
* bug fixes for v0.91a
|
||||
*
|
||||
* Rev 1.2 19 Feb 1996 3:21:34 patv
|
||||
* Added NLS, int2f and config.sys processing
|
||||
*
|
||||
* Rev 1.1 01 Sep 1995 17:54:18 patv
|
||||
* First GPL release.
|
||||
*
|
||||
* Rev 1.0 02 Jul 1995 8:32:30 patv
|
||||
* Initial revision.
|
||||
*/
|
||||
|
||||
#ifdef PROTO
|
||||
BOOL ASMCFUNC ReadPCClock(ULONG *);
|
||||
VOID ASMCFUNC WriteATClock(BYTE *, BYTE, BYTE, BYTE);
|
||||
@ -267,12 +196,12 @@ WORD FAR ASMCFUNC clk_driver(rqptr rp)
|
||||
clk.clkHundredths = remainder % 100ul;
|
||||
}
|
||||
|
||||
fbcopy((BYTE FAR *) & clk, rp->r_trans, min(sizeof(struct ClockRecord),rp->r_count ));
|
||||
fmemcpy(rp->r_trans, &clk, min(sizeof(struct ClockRecord),rp->r_count ));
|
||||
return S_DONE;
|
||||
|
||||
case C_OUTPUT:
|
||||
rp->r_count = min(rp->r_count,sizeof(struct ClockRecord));
|
||||
fbcopy(rp->r_trans, (BYTE FAR *) & clk, rp->r_count);
|
||||
fmemcpy(&clk, rp->r_trans, rp->r_count);
|
||||
|
||||
/* Set PC Clock first */
|
||||
DaysSinceEpoch = clk.clkDays;
|
||||
@ -391,3 +320,48 @@ VOID DayToBcd(BYTE * x, UWORD * mon, UWORD * day, UWORD * yr)
|
||||
x[3] = ByteToBcd(*yr / 100);
|
||||
x[2] = ByteToBcd(*yr % 100);
|
||||
}
|
||||
|
||||
/*
|
||||
* Log: sysclk.c,v - for newer entries do "cvs log sysclk.c"
|
||||
*
|
||||
* Revision 1.3 2000/03/09 06:07:11 kernel
|
||||
* 2017f updates by James Tabor
|
||||
*
|
||||
* Revision 1.2 1999/04/12 03:21:17 jprice
|
||||
* more ror4 patches. Changes for multi-block IO
|
||||
*
|
||||
* Revision 1.1.1.1 1999/03/29 15:41:33 jprice
|
||||
* New version without IPL.SYS
|
||||
*
|
||||
* Revision 1.5 1999/02/08 05:55:58 jprice
|
||||
* Added Pat's 1937 kernel patches
|
||||
*
|
||||
* Revision 1.4 1999/02/04 03:14:07 jprice
|
||||
* Formating. Added comments.
|
||||
*
|
||||
* Revision 1.3 1999/02/01 01:48:41 jprice
|
||||
* Clean up; Now you can use hex numbers in config.sys. added config.sys screen function to change screen mode (28 or 43/50 lines)
|
||||
*
|
||||
* Revision 1.2 1999/01/22 04:13:27 jprice
|
||||
* Formating
|
||||
*
|
||||
* Revision 1.1.1.1 1999/01/20 05:51:01 jprice
|
||||
* Imported sources
|
||||
*
|
||||
*
|
||||
* Rev 1.4 04 Jan 1998 23:15:16 patv
|
||||
* Changed Log for strip utility
|
||||
*
|
||||
* Rev 1.3 29 May 1996 21:03:48 patv
|
||||
* bug fixes for v0.91a
|
||||
*
|
||||
* Rev 1.2 19 Feb 1996 3:21:34 patv
|
||||
* Added NLS, int2f and config.sys processing
|
||||
*
|
||||
* Rev 1.1 01 Sep 1995 17:54:18 patv
|
||||
* First GPL release.
|
||||
*
|
||||
* Rev 1.0 02 Jul 1995 8:32:30 patv
|
||||
* Initial revision.
|
||||
*/
|
||||
|
||||
|
@ -34,53 +34,6 @@
|
||||
static BYTE *syspackRcsId = "$Id$";
|
||||
#endif
|
||||
|
||||
/*
|
||||
* $Log$
|
||||
* Revision 1.5 2001/11/04 19:47:39 bartoldeman
|
||||
* kernel 2025a changes: see history.txt
|
||||
*
|
||||
* Revision 1.4 2001/09/23 20:39:44 bartoldeman
|
||||
* FAT32 support, misc fixes, INT2F/AH=12 support, drive B: handling
|
||||
*
|
||||
* Revision 1.3 2000/05/25 20:56:21 jimtabor
|
||||
* Fixed project history
|
||||
*
|
||||
* Revision 1.2 2000/05/08 04:30:00 jimtabor
|
||||
* Update CVS to 2020
|
||||
*
|
||||
* Revision 1.1.1.1 2000/05/06 19:34:53 jhall1
|
||||
* The FreeDOS Kernel. A DOS kernel that aims to be 100% compatible with
|
||||
* MS-DOS. Distributed under the GNU GPL.
|
||||
*
|
||||
* Revision 1.1.1.1 1999/03/29 15:42:21 jprice
|
||||
* New version without IPL.SYS
|
||||
*
|
||||
* Revision 1.3 1999/02/01 01:43:28 jprice
|
||||
* Fixed findfirst function to find volume label with Windows long filenames
|
||||
*
|
||||
* Revision 1.2 1999/01/22 04:15:28 jprice
|
||||
* Formating
|
||||
*
|
||||
* Revision 1.1.1.1 1999/01/20 05:51:00 jprice
|
||||
* Imported sources
|
||||
*
|
||||
*
|
||||
* Rev 1.4 04 Jan 1998 23:14:38 patv
|
||||
* Changed Log for strip utility
|
||||
*
|
||||
* Rev 1.3 29 May 1996 21:15:12 patv
|
||||
* bug fixes for v0.91a
|
||||
*
|
||||
* Rev 1.2 01 Sep 1995 17:48:42 patv
|
||||
* First GPL release.
|
||||
*
|
||||
* Rev 1.1 30 Jul 1995 20:50:26 patv
|
||||
* Eliminated version strings in ipl
|
||||
*
|
||||
* Rev 1.0 02 Jul 1995 8:05:34 patv
|
||||
* Initial revision.
|
||||
*/
|
||||
|
||||
#ifdef NONNATIVE
|
||||
VOID getlong(REG VOID * vp, LONG * lp)
|
||||
{
|
||||
@ -143,8 +96,8 @@ VOID fputbyte(BYTE FAR * bp, VOID FAR * vp)
|
||||
|
||||
VOID getdirent(BYTE FAR * vp, struct dirent FAR * dp)
|
||||
{
|
||||
fbcopy(&vp[DIR_NAME], dp->dir_name, FNAME_SIZE);
|
||||
fbcopy(&vp[DIR_EXT], dp->dir_ext, FEXT_SIZE);
|
||||
fmemcpy(dp->dir_name, &vp[DIR_NAME], FNAME_SIZE);
|
||||
fmemcpy(dp->dir_ext, &vp[DIR_EXT], FEXT_SIZE);
|
||||
fgetbyte(&vp[DIR_ATTRIB], (BYTE FAR *) & dp->dir_attrib);
|
||||
fgetword(&vp[DIR_TIME], (WORD FAR *) & dp->dir_time);
|
||||
fgetword(&vp[DIR_DATE], (WORD FAR *) & dp->dir_date);
|
||||
@ -157,8 +110,8 @@ VOID putdirent(struct dirent FAR * dp, BYTE FAR * vp)
|
||||
REG COUNT i;
|
||||
REG BYTE FAR *p;
|
||||
|
||||
fbcopy(dp->dir_name, &vp[DIR_NAME], FNAME_SIZE);
|
||||
fbcopy(dp->dir_ext, &vp[DIR_EXT], FEXT_SIZE);
|
||||
fmemcpy(&vp[DIR_NAME], dp->dir_name, FNAME_SIZE);
|
||||
fmemcpy(&vp[DIR_EXT], dp->dir_ext, FEXT_SIZE);
|
||||
fputbyte((BYTE FAR *) & dp->dir_attrib, &vp[DIR_ATTRIB]);
|
||||
fputword((WORD FAR *) & dp->dir_time, &vp[DIR_TIME]);
|
||||
fputword((WORD FAR *) & dp->dir_date, &vp[DIR_DATE]);
|
||||
@ -168,3 +121,35 @@ VOID putdirent(struct dirent FAR * dp, BYTE FAR * vp)
|
||||
*p++ = NULL;
|
||||
}
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Log: syspack.c,v - for newer entries see "cvs log syspack.c"
|
||||
*
|
||||
* Revision 1.1.1.1 1999/03/29 15:42:21 jprice
|
||||
* New version without IPL.SYS
|
||||
*
|
||||
* Revision 1.3 1999/02/01 01:43:28 jprice
|
||||
* Fixed findfirst function to find volume label with Windows long filenames
|
||||
*
|
||||
* Revision 1.2 1999/01/22 04:15:28 jprice
|
||||
* Formating
|
||||
*
|
||||
* Revision 1.1.1.1 1999/01/20 05:51:00 jprice
|
||||
* Imported sources
|
||||
*
|
||||
*
|
||||
* Rev 1.4 04 Jan 1998 23:14:38 patv
|
||||
* Changed Log for strip utility
|
||||
*
|
||||
* Rev 1.3 29 May 1996 21:15:12 patv
|
||||
* bug fixes for v0.91a
|
||||
*
|
||||
* Rev 1.2 01 Sep 1995 17:48:42 patv
|
||||
* First GPL release.
|
||||
*
|
||||
* Rev 1.1 30 Jul 1995 20:50:26 patv
|
||||
* Eliminated version strings in ipl
|
||||
*
|
||||
* Rev 1.0 02 Jul 1995 8:05:34 patv
|
||||
* Initial revision.
|
||||
*/
|
||||
|
122
kernel/systime.c
122
kernel/systime.c
@ -35,78 +35,6 @@
|
||||
static BYTE *RcsId = "$Id$";
|
||||
#endif
|
||||
|
||||
/*
|
||||
* $Log$
|
||||
* Revision 1.7 2001/11/04 19:47:39 bartoldeman
|
||||
* kernel 2025a changes: see history.txt
|
||||
*
|
||||
* Revision 1.6 2001/08/19 12:58:36 bartoldeman
|
||||
* Time and date fixes, Ctrl-S/P, findfirst/next, FCBs, buffers, tsr unloading
|
||||
*
|
||||
* Revision 1.5 2001/04/15 03:21:50 bartoldeman
|
||||
* See history.txt for the list of fixes.
|
||||
*
|
||||
* Revision 1.4 2001/03/21 02:56:26 bartoldeman
|
||||
* See history.txt for changes. Bug fixes and HMA support are the main ones.
|
||||
*
|
||||
* Revision 1.3 2000/05/25 20:56:21 jimtabor
|
||||
* Fixed project history
|
||||
*
|
||||
* Revision 1.2 2000/05/08 04:30:00 jimtabor
|
||||
* Update CVS to 2020
|
||||
*
|
||||
* Revision 1.1.1.1 2000/05/06 19:34:53 jhall1
|
||||
* The FreeDOS Kernel. A DOS kernel that aims to be 100% compatible with
|
||||
* MS-DOS. Distributed under the GNU GPL.
|
||||
*
|
||||
* Revision 1.3 1999/05/04 16:40:30 jprice
|
||||
* ror4 date fix
|
||||
*
|
||||
* Revision 1.2 1999/04/12 03:21:18 jprice
|
||||
* more ror4 patches. Changes for multi-block IO
|
||||
*
|
||||
* Revision 1.1.1.1 1999/03/29 15:41:34 jprice
|
||||
* New version without IPL.SYS
|
||||
*
|
||||
* Revision 1.5 1999/02/08 05:55:58 jprice
|
||||
* Added Pat's 1937 kernel patches
|
||||
*
|
||||
* Revision 1.4 1999/02/04 03:14:07 jprice
|
||||
* Formating. Added comments.
|
||||
*
|
||||
* Revision 1.3 1999/02/01 01:48:41 jprice
|
||||
* Clean up; Now you can use hex numbers in config.sys. added config.sys screen function to change screen mode (28 or 43/50 lines)
|
||||
*
|
||||
* Revision 1.2 1999/01/22 04:13:27 jprice
|
||||
* Formating
|
||||
*
|
||||
* Revision 1.1.1.1 1999/01/20 05:51:01 jprice
|
||||
* Imported sources
|
||||
*
|
||||
*
|
||||
* Rev 1.6 06 Dec 1998 8:47:30 patv
|
||||
* Bug fixes.
|
||||
*
|
||||
* Rev 1.5 04 Jan 1998 23:15:22 patv
|
||||
* Changed Log for strip utility
|
||||
*
|
||||
* Rev 1.4 03 Jan 1998 8:36:50 patv
|
||||
* Converted data area to SDA format
|
||||
*
|
||||
* Rev 1.3 29 May 1996 21:03:40 patv
|
||||
* bug fixes for v0.91a
|
||||
*
|
||||
* Rev 1.2 19 Feb 1996 3:21:34 patv
|
||||
* Added NLS, int2f and config.sys processing
|
||||
*
|
||||
* Rev 1.1 01 Sep 1995 17:54:16 patv
|
||||
* First GPL release.
|
||||
*
|
||||
* Rev 1.0 02 Jul 1995 8:32:20 patv
|
||||
* Initial revision.
|
||||
*/
|
||||
|
||||
|
||||
UWORD days[2][13] =
|
||||
{
|
||||
{0, 31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334, 365},
|
||||
@ -263,3 +191,53 @@ UWORD Month,
|
||||
return char_error(&ClkReqHdr, (struct dhdr FAR *)clock);
|
||||
return SUCCESS;
|
||||
}
|
||||
|
||||
/*
|
||||
* Log: systime.c,v - see "cvs log systime.c" for newer entries
|
||||
*
|
||||
* Revision 1.3 1999/05/04 16:40:30 jprice
|
||||
* ror4 date fix
|
||||
*
|
||||
* Revision 1.2 1999/04/12 03:21:18 jprice
|
||||
* more ror4 patches. Changes for multi-block IO
|
||||
*
|
||||
* Revision 1.1.1.1 1999/03/29 15:41:34 jprice
|
||||
* New version without IPL.SYS
|
||||
*
|
||||
* Revision 1.5 1999/02/08 05:55:58 jprice
|
||||
* Added Pat's 1937 kernel patches
|
||||
*
|
||||
* Revision 1.4 1999/02/04 03:14:07 jprice
|
||||
* Formating. Added comments.
|
||||
*
|
||||
* Revision 1.3 1999/02/01 01:48:41 jprice
|
||||
* Clean up; Now you can use hex numbers in config.sys. added config.sys screen function to change screen mode (28 or 43/50 lines)
|
||||
*
|
||||
* Revision 1.2 1999/01/22 04:13:27 jprice
|
||||
* Formating
|
||||
*
|
||||
* Revision 1.1.1.1 1999/01/20 05:51:01 jprice
|
||||
* Imported sources
|
||||
*
|
||||
*
|
||||
* Rev 1.6 06 Dec 1998 8:47:30 patv
|
||||
* Bug fixes.
|
||||
*
|
||||
* Rev 1.5 04 Jan 1998 23:15:22 patv
|
||||
* Changed Log for strip utility
|
||||
*
|
||||
* Rev 1.4 03 Jan 1998 8:36:50 patv
|
||||
* Converted data area to SDA format
|
||||
*
|
||||
* Rev 1.3 29 May 1996 21:03:40 patv
|
||||
* bug fixes for v0.91a
|
||||
*
|
||||
* Rev 1.2 19 Feb 1996 3:21:34 patv
|
||||
* Added NLS, int2f and config.sys processing
|
||||
*
|
||||
* Rev 1.1 01 Sep 1995 17:54:16 patv
|
||||
* First GPL release.
|
||||
*
|
||||
* Rev 1.0 02 Jul 1995 8:32:20 patv
|
||||
* Initial revision.
|
||||
*/
|
||||
|
248
kernel/task.c
248
kernel/task.c
@ -33,151 +33,6 @@
|
||||
static BYTE *RcsId = "$Id$";
|
||||
#endif
|
||||
|
||||
/*
|
||||
* $Log$
|
||||
* Revision 1.19 2001/11/04 19:47:39 bartoldeman
|
||||
* kernel 2025a changes: see history.txt
|
||||
*
|
||||
* Revision 1.18 2001/09/23 20:39:44 bartoldeman
|
||||
* FAT32 support, misc fixes, INT2F/AH=12 support, drive B: handling
|
||||
*
|
||||
* Revision 1.17 2001/08/19 12:58:36 bartoldeman
|
||||
* Time and date fixes, Ctrl-S/P, findfirst/next, FCBs, buffers, tsr unloading
|
||||
*
|
||||
* Revision 1.16 2001/07/23 12:47:42 bartoldeman
|
||||
* FCB fixes and clean-ups, exec int21/ax=4b01, initdisk.c printf
|
||||
*
|
||||
* Revision 1.15 2001/07/22 01:58:58 bartoldeman
|
||||
* Support for Brian's FORMAT, DJGPP libc compilation, cleanups, MSCDEX
|
||||
*
|
||||
* Revision 1.14 2001/06/03 14:16:18 bartoldeman
|
||||
* BUFFERS tuning and misc bug fixes/cleanups (2024c).
|
||||
*
|
||||
* Revision 1.13 2001/04/21 22:32:53 bartoldeman
|
||||
* Init DS=Init CS, fixed stack overflow problems and misc bugs.
|
||||
*
|
||||
* Revision 1.12 2001/04/16 14:28:32 bartoldeman
|
||||
* Kernel build 2024. Fixed critical error handler/config.sys/makefiles/UMBs
|
||||
*
|
||||
* Revision 1.11 2001/04/16 01:45:26 bartoldeman
|
||||
* Fixed handles, config.sys drivers, warnings. Enabled INT21/AH=6C, printf %S/%Fs
|
||||
*
|
||||
* Revision 1.10 2001/04/15 03:21:50 bartoldeman
|
||||
* See history.txt for the list of fixes.
|
||||
*
|
||||
* Revision 1.9 2001/03/31 20:54:52 bartoldeman
|
||||
* Made SHELLHIGH behave more like LOADHIGH.
|
||||
*
|
||||
* Revision 1.8 2001/03/30 19:30:06 bartoldeman
|
||||
* Misc fixes and implementation of SHELLHIGH. See history.txt for details.
|
||||
*
|
||||
* Revision 1.7 2001/03/21 02:56:26 bartoldeman
|
||||
* See history.txt for changes. Bug fixes and HMA support are the main ones.
|
||||
*
|
||||
* Revision 1.6 2001/03/08 21:00:00 bartoldeman
|
||||
* UMB fixes to DosComLoader
|
||||
*
|
||||
* Revision 1.5 2000/08/06 05:50:17 jimtabor
|
||||
* Add new files and update cvs with patches and changes
|
||||
*
|
||||
* Revision 1.4 2000/05/26 19:25:19 jimtabor
|
||||
* Read History file for Change info
|
||||
*
|
||||
* Revision 1.3 2000/05/25 20:56:21 jimtabor
|
||||
* Fixed project history
|
||||
*
|
||||
* Revision 1.2 2000/05/08 04:30:00 jimtabor
|
||||
* Update CVS to 2020
|
||||
*
|
||||
* Revision 1.1.1.1 2000/05/06 19:34:53 jhall1
|
||||
* The FreeDOS Kernel. A DOS kernel that aims to be 100% compatible with
|
||||
* MS-DOS. Distributed under the GNU GPL.
|
||||
*
|
||||
* Revision 1.8 2000/03/31 05:40:09 jtabor
|
||||
* Added Eric W. Biederman Patches
|
||||
*
|
||||
* Revision 1.7 2000/03/09 06:07:11 kernel
|
||||
* 2017f updates by James Tabor
|
||||
*
|
||||
* Revision 1.6 1999/08/25 03:18:10 jprice
|
||||
* ror4 patches to allow TC 2.01 compile.
|
||||
*
|
||||
* Revision 1.5 1999/04/23 04:24:39 jprice
|
||||
* Memory manager changes made by ska
|
||||
*
|
||||
* Revision 1.4 1999/04/16 00:53:33 jprice
|
||||
* Optimized FAT handling
|
||||
*
|
||||
* Revision 1.3 1999/04/11 04:33:39 jprice
|
||||
* ror4 patches
|
||||
*
|
||||
* Revision 1.2 1999/03/29 17:05:09 jprice
|
||||
* ror4 changes
|
||||
*
|
||||
* Revision 1.1.1.1 1999/03/29 15:41:41 jprice
|
||||
* New version without IPL.SYS
|
||||
*
|
||||
* Revision 1.5 1999/02/08 05:55:58 jprice
|
||||
* Added Pat's 1937 kernel patches
|
||||
*
|
||||
* Revision 1.4 1999/02/04 03:14:07 jprice
|
||||
* Formating. Added comments.
|
||||
*
|
||||
* Revision 1.3 1999/02/01 01:48:41 jprice
|
||||
* Clean up; Now you can use hex numbers in config.sys. added config.sys screen function to change screen mode (28 or 43/50 lines)
|
||||
*
|
||||
* Revision 1.2 1999/01/22 04:13:27 jprice
|
||||
* Formating
|
||||
*
|
||||
* Revision 1.1.1.1 1999/01/20 05:51:01 jprice
|
||||
* Imported sources
|
||||
*
|
||||
*
|
||||
* Rev 1.15 06 Dec 1998 8:46:28 patv
|
||||
* Bug fixes.
|
||||
*
|
||||
* Rev 1.14 07 Feb 1998 20:38:32 patv
|
||||
* Modified stack fram to match DOS standard
|
||||
*
|
||||
* Rev 1.13 31 Jan 1998 14:39:20 patv
|
||||
* Corrected type in load high code.
|
||||
*
|
||||
* Rev 1.12 31 Jan 1998 14:02:52 patv
|
||||
* Added load high in memory option in DosExeLoader.
|
||||
*
|
||||
* Rev 1.11 22 Jan 1998 22:17:14 patv
|
||||
* Eliminated warnings.
|
||||
*
|
||||
* Rev 1.10 22 Jan 1998 21:31:36 patv
|
||||
* Corrected short .COM problem.
|
||||
*
|
||||
* Rev 1.9 04 Jan 1998 23:15:16 patv
|
||||
* Changed Log for strip utility
|
||||
*
|
||||
* Rev 1.8 22 Jan 1997 13:18:14 patv
|
||||
* pre-0.92 Svante Frey bug fixes.
|
||||
*
|
||||
* Rev 1.7 16 Jan 1997 12:46:56 patv
|
||||
* pre-Release 0.92 feature additions
|
||||
*
|
||||
* Rev 1.5 29 Aug 1996 13:07:22 patv
|
||||
* Bug fixes for v0.91b
|
||||
*
|
||||
* Rev 1.4 29 May 1996 21:03:36 patv
|
||||
* bug fixes for v0.91a
|
||||
*
|
||||
* Rev 1.3 19 Feb 1996 3:21:48 patv
|
||||
* Added NLS, int2f and config.sys processing
|
||||
*
|
||||
* Rev 1.2 01 Sep 1995 17:54:22 patv
|
||||
* First GPL release.
|
||||
*
|
||||
* Rev 1.1 30 Jul 1995 20:51:58 patv
|
||||
* Eliminated version strings in ipl
|
||||
*
|
||||
* Rev 1.0 02 Jul 1995 8:34:06 patv
|
||||
* Initial revision.
|
||||
*/
|
||||
#define toupper(c) ((c) >= 'a' && (c) <= 'z' ? (c) + ('A' - 'a') : (c))
|
||||
|
||||
#define LOADNGO 0
|
||||
@ -291,14 +146,15 @@ COUNT ChildEnv(exec_blk FAR * exp, UWORD * pChildEnvSeg, char far * pathname)
|
||||
/* copy the environment */
|
||||
if (pSrc)
|
||||
{
|
||||
fbcopy(pSrc, pDest, nEnvSize);
|
||||
fmemcpy(pDest, pSrc, nEnvSize);
|
||||
pDest += nEnvSize;
|
||||
}
|
||||
else
|
||||
*pDest++ = '\0'; /* create an empty environment */
|
||||
|
||||
/* initialize 'extra strings' count */
|
||||
*((UWORD FAR *) pDest)++ = 1;
|
||||
*((UWORD FAR *) pDest) = 1;
|
||||
pDest += sizeof(UWORD);
|
||||
|
||||
/* copy complete pathname */
|
||||
if ((RetCode = truename(pathname, pDest, TRUE)) != SUCCESS) {
|
||||
@ -407,9 +263,9 @@ STATIC UWORD patchPSP(UWORD pspseg, UWORD envseg, exec_blk FAR *exb,
|
||||
psp = MK_FP(pspseg, 0);
|
||||
|
||||
/* complete the psp by adding the command line and FCBs */
|
||||
fbcopy(exb->exec.cmd_line->ctBuffer, psp->ps_cmd, 127);
|
||||
fbcopy(exb->exec.fcb_1, &psp->ps_fcb1, 16);
|
||||
fbcopy(exb->exec.fcb_2, &psp->ps_fcb2, 16);
|
||||
fmemcpy(psp->ps_cmd, exb->exec.cmd_line->ctBuffer, 127);
|
||||
fmemcpy(&psp->ps_fcb1, exb->exec.fcb_1, 16);
|
||||
fmemcpy(&psp->ps_fcb2, exb->exec.fcb_2, 16);
|
||||
psp->ps_cmd_count = exb->exec.cmd_line->ctCount;
|
||||
|
||||
/* identify the mcb as this functions' */
|
||||
@ -557,8 +413,8 @@ COUNT DosComLoader(BYTE FAR * namep, exec_blk FAR * exp, COUNT mode)
|
||||
/* BUG !! in case of LH, memory may be smaller then 64K TE*/
|
||||
|
||||
|
||||
if ((ULONG)com_size > ((ULONG)asize << 4)) /* less memory than the .COM file has */
|
||||
(ULONG)com_size = (ULONG)asize << 4;
|
||||
if (com_size > ((LONG)asize << 4)) /* less memory than the .COM file has */
|
||||
com_size = (LONG)asize << 4;
|
||||
}
|
||||
do
|
||||
{
|
||||
@ -1051,4 +907,92 @@ COUNT DosExec(COUNT mode, exec_blk FAR * ep, BYTE FAR * lp)
|
||||
return rc;
|
||||
}
|
||||
|
||||
/*
|
||||
* Log: task.c,v - for newer log entries do "cvs log task.c"
|
||||
*
|
||||
* Revision 1.8 2000/03/31 05:40:09 jtabor
|
||||
* Added Eric W. Biederman Patches
|
||||
*
|
||||
* Revision 1.7 2000/03/09 06:07:11 kernel
|
||||
* 2017f updates by James Tabor
|
||||
*
|
||||
* Revision 1.6 1999/08/25 03:18:10 jprice
|
||||
* ror4 patches to allow TC 2.01 compile.
|
||||
*
|
||||
* Revision 1.5 1999/04/23 04:24:39 jprice
|
||||
* Memory manager changes made by ska
|
||||
*
|
||||
* Revision 1.4 1999/04/16 00:53:33 jprice
|
||||
* Optimized FAT handling
|
||||
*
|
||||
* Revision 1.3 1999/04/11 04:33:39 jprice
|
||||
* ror4 patches
|
||||
*
|
||||
* Revision 1.2 1999/03/29 17:05:09 jprice
|
||||
* ror4 changes
|
||||
*
|
||||
* Revision 1.1.1.1 1999/03/29 15:41:41 jprice
|
||||
* New version without IPL.SYS
|
||||
*
|
||||
* Revision 1.5 1999/02/08 05:55:58 jprice
|
||||
* Added Pat's 1937 kernel patches
|
||||
*
|
||||
* Revision 1.4 1999/02/04 03:14:07 jprice
|
||||
* Formating. Added comments.
|
||||
*
|
||||
* Revision 1.3 1999/02/01 01:48:41 jprice
|
||||
* Clean up; Now you can use hex numbers in config.sys. added config.sys screen function to change screen mode (28 or 43/50 lines)
|
||||
*
|
||||
* Revision 1.2 1999/01/22 04:13:27 jprice
|
||||
* Formating
|
||||
*
|
||||
* Revision 1.1.1.1 1999/01/20 05:51:01 jprice
|
||||
* Imported sources
|
||||
*
|
||||
*
|
||||
* Rev 1.15 06 Dec 1998 8:46:28 patv
|
||||
* Bug fixes.
|
||||
*
|
||||
* Rev 1.14 07 Feb 1998 20:38:32 patv
|
||||
* Modified stack fram to match DOS standard
|
||||
*
|
||||
* Rev 1.13 31 Jan 1998 14:39:20 patv
|
||||
* Corrected type in load high code.
|
||||
*
|
||||
* Rev 1.12 31 Jan 1998 14:02:52 patv
|
||||
* Added load high in memory option in DosExeLoader.
|
||||
*
|
||||
* Rev 1.11 22 Jan 1998 22:17:14 patv
|
||||
* Eliminated warnings.
|
||||
*
|
||||
* Rev 1.10 22 Jan 1998 21:31:36 patv
|
||||
* Corrected short .COM problem.
|
||||
*
|
||||
* Rev 1.9 04 Jan 1998 23:15:16 patv
|
||||
* Changed Log for strip utility
|
||||
*
|
||||
* Rev 1.8 22 Jan 1997 13:18:14 patv
|
||||
* pre-0.92 Svante Frey bug fixes.
|
||||
*
|
||||
* Rev 1.7 16 Jan 1997 12:46:56 patv
|
||||
* pre-Release 0.92 feature additions
|
||||
*
|
||||
* Rev 1.5 29 Aug 1996 13:07:22 patv
|
||||
* Bug fixes for v0.91b
|
||||
*
|
||||
* Rev 1.4 29 May 1996 21:03:36 patv
|
||||
* bug fixes for v0.91a
|
||||
*
|
||||
* Rev 1.3 19 Feb 1996 3:21:48 patv
|
||||
* Added NLS, int2f and config.sys processing
|
||||
*
|
||||
* Rev 1.2 01 Sep 1995 17:54:22 patv
|
||||
* First GPL release.
|
||||
*
|
||||
* Rev 1.1 30 Jul 1995 20:51:58 patv
|
||||
* Eliminated version strings in ipl
|
||||
*
|
||||
* Rev 1.0 02 Jul 1995 8:34:06 patv
|
||||
* Initial revision.
|
||||
*/
|
||||
|
||||
|
53
lib/makefile
53
lib/makefile
@ -4,44 +4,6 @@
|
||||
# $Id$
|
||||
#
|
||||
|
||||
# $Log$
|
||||
# Revision 1.2 2001/11/13 23:36:45 bartoldeman
|
||||
# Kernel 2025a final changes.
|
||||
#
|
||||
# Revision 1.1 2001/11/04 20:10:15 bartoldeman
|
||||
# Added new makefile names, utils sources, kconfig.h
|
||||
#
|
||||
# Revision 1.5 2001/06/03 14:16:18 bartoldeman
|
||||
# BUFFERS tuning and misc bug fixes/cleanups (2024c).
|
||||
#
|
||||
# Revision 1.4 2001/03/19 04:50:56 bartoldeman
|
||||
# See history.txt for overview: put kernel 2022beo1 into CVS
|
||||
#
|
||||
# Revision 1.4 2001/03/08 21:15:00 bartoldeman
|
||||
# Fix from Martin Stromberg to make this fully configurable from config.mak
|
||||
#
|
||||
# Revision 1.3 2000/05/25 20:56:22 jimtabor
|
||||
# Fixed project history
|
||||
#
|
||||
# Revision 1.2 2000/05/11 03:57:10 jimtabor
|
||||
# Clean up and Release
|
||||
#
|
||||
# Revision 1.1.1.1 2000/05/06 19:34:53 jhall1
|
||||
# The FreeDOS Kernel. A DOS kernel that aims to be 100% compatible with
|
||||
# MS-DOS. Distributed under the GNU GPL.
|
||||
#
|
||||
# Revision 1.6 1999/09/14 17:32:20 jprice
|
||||
# no message
|
||||
#
|
||||
# Revision 1.5 1999/09/13 20:13:15 jprice
|
||||
# Added !if so we can use TC2 or TC3 to compile.
|
||||
#
|
||||
# Revision 1.4 1999/08/25 03:19:22 jprice
|
||||
# ror4 patches to allow TC 2.01 compile.
|
||||
#
|
||||
# Revision 1.3 1999/04/23 03:45:18 jprice
|
||||
# Improved by jprice
|
||||
#
|
||||
|
||||
!include "..\mkfiles\generic.mak"
|
||||
|
||||
@ -58,3 +20,18 @@ clobber: clean
|
||||
|
||||
clean:
|
||||
-$(RM) *.obj *.bak
|
||||
|
||||
# Log: makefile,v
|
||||
#
|
||||
# Revision 1.6 1999/09/14 17:32:20 jprice
|
||||
# no message
|
||||
#
|
||||
# Revision 1.5 1999/09/13 20:13:15 jprice
|
||||
# Added !if so we can use TC2 or TC3 to compile.
|
||||
#
|
||||
# Revision 1.4 1999/08/25 03:19:22 jprice
|
||||
# ror4 patches to allow TC 2.01 compile.
|
||||
#
|
||||
# Revision 1.3 1999/04/23 03:45:18 jprice
|
||||
# Improved by jprice
|
||||
#
|
||||
|
@ -38,7 +38,8 @@ TARGET=KMS
|
||||
# heavy stuff - building
|
||||
|
||||
|
||||
ALLCFLAGS=-I..\hdr $(TARGETOPT) $(ALLCFLAGS) -nologo -Zl -Fc -Zp1 -Gs -Os -WX
|
||||
ALLCFLAGS=-I..\hdr $(TARGETOPT) $(ALLCFLAGS) -nologo -Zl -Fc -Zp1 -WX -Gr -f- -Os -Gs -Ob1 -OV4 -Gy -Oe
|
||||
|
||||
INITCFLAGS=$(ALLCFLAGS) -NTINIT_TEXT -AT
|
||||
CFLAGS=$(ALLCFLAGS) -NTHMA_TEXT
|
||||
DYNCFLAGS=$(ALLCFLAGS) -NTHMA_TEXT
|
||||
|
@ -21,7 +21,7 @@ LIBUTIL=$(COMPILERBIN)\wlib
|
||||
LIBPLUS=
|
||||
LIBTERM=
|
||||
|
||||
CFLAGST=-mt
|
||||
CFLAGST=-zp=1 -mt
|
||||
CFLAGSC=-zp=1 -mc
|
||||
|
||||
TARGET=KWC
|
||||
@ -69,7 +69,7 @@ MATH_INSERT= +i4d +i4m
|
||||
# -3 optimization for 386 - given in CONFIG.MAK, not here
|
||||
#
|
||||
|
||||
ALLCFLAGS=-I..\hdr $(TARGETOPT) $(ALLCFLAGS) -zq -os -ms -s -e=5 -j -zl -zp=1
|
||||
ALLCFLAGS=-I..\hdr $(TARGETOPT) $(ALLCFLAGS) -zq -os -ms -s -e=5 -j -zl -zp=1 -we
|
||||
INITCFLAGS=$(ALLCFLAGS) -nt=INIT_TEXT -nc=INIT -g=IGROUP
|
||||
CFLAGS=$(ALLCFLAGS) -nt=HMA_TEXT -nc=HMA -g=HGROUP
|
||||
DYNCFLAGS=$(ALLCFLAGS)
|
||||
|
44
sys/makefile
44
sys/makefile
@ -3,35 +3,6 @@
|
||||
#
|
||||
# $Id$
|
||||
#
|
||||
# $Log$
|
||||
# Revision 1.2 2001/11/13 23:36:45 bartoldeman
|
||||
# Kernel 2025a final changes.
|
||||
#
|
||||
# Revision 1.1 2001/11/04 20:10:15 bartoldeman
|
||||
# Added new makefile names, utils sources, kconfig.h
|
||||
#
|
||||
# Revision 1.3 2000/05/25 20:56:23 jimtabor
|
||||
# Fixed project history
|
||||
#
|
||||
# Revision 1.2 2000/05/15 05:28:09 jimtabor
|
||||
# Cleanup CRs
|
||||
#
|
||||
# Revision 1.1.1.1 2000/05/06 19:34:53 jhall1
|
||||
# The FreeDOS Kernel. A DOS kernel that aims to be 100% compatible with
|
||||
# MS-DOS. Distributed under the GNU GPL.
|
||||
#
|
||||
# Revision 1.6 1999/09/20 18:34:40 jprice
|
||||
# *** empty log message ***
|
||||
#
|
||||
# Revision 1.5 1999/08/25 03:19:51 jprice
|
||||
# ror4 patches to allow TC 2.01 compile.
|
||||
#
|
||||
# Revision 1.4 1999/05/03 05:01:38 jprice
|
||||
# no message
|
||||
#
|
||||
# Revision 1.3 1999/04/23 03:45:33 jprice
|
||||
# Improved by jprice
|
||||
#
|
||||
|
||||
!include "..\mkfiles\generic.mak"
|
||||
|
||||
@ -86,3 +57,18 @@ bin2c.obj: bin2c.c
|
||||
|
||||
sys.obj: sys.c ..\hdr\portab.h ..\hdr\device.h b_fat12.h b_fat16.h b_fat32.h
|
||||
$(CC) $(CFLAGS) -c $*.c
|
||||
|
||||
# Log: makefile,v
|
||||
#
|
||||
# Revision 1.6 1999/09/20 18:34:40 jprice
|
||||
# *** empty log message ***
|
||||
#
|
||||
# Revision 1.5 1999/08/25 03:19:51 jprice
|
||||
# ror4 patches to allow TC 2.01 compile.
|
||||
#
|
||||
# Revision 1.4 1999/05/03 05:01:38 jprice
|
||||
# no message
|
||||
#
|
||||
# Revision 1.3 1999/04/23 03:45:33 jprice
|
||||
# Improved by jprice
|
||||
#
|
||||
|
192
sys/sys.c
192
sys/sys.c
@ -25,121 +25,6 @@
|
||||
675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
|
||||
***************************************************************/
|
||||
/* $Log$
|
||||
* Revision 1.12 2001/11/13 23:36:45 bartoldeman
|
||||
* Kernel 2025a final changes.
|
||||
*
|
||||
/* Revision 1.11 2001/11/04 19:47:39 bartoldeman
|
||||
/* kernel 2025a changes: see history.txt
|
||||
/*
|
||||
/* Revision 1.10 2001/09/24 02:28:14 bartoldeman
|
||||
/* Minor printf fixes.
|
||||
/*
|
||||
/* Revision 1.9 2001/09/24 02:21:14 bartoldeman
|
||||
/* SYS and printer fixes
|
||||
/*
|
||||
/* Revision 1.8 2001/09/23 20:39:44 bartoldeman
|
||||
/* FAT32 support, misc fixes, INT2F/AH=12 support, drive B: handling
|
||||
/*
|
||||
|
||||
/* version 2.2 jeremyd 2001/9/20
|
||||
Changed so if no source given or only source drive (no path)
|
||||
given, then checks for kernel.sys & command.com in current
|
||||
path (of current drive or given drive) and if not there
|
||||
uses root (but only if source & destination drive are different).
|
||||
Fix printf to include count(ret) if copy can't write all requested bytes
|
||||
*/
|
||||
/* version 2.1a jeremyd 2001/8/19
|
||||
modified so takes optional 2nd parameter (similar to PC DOS)
|
||||
where if only 1 argument is given, assume to be destination drive,
|
||||
but if two arguments given, 1st is source (drive and/or path)
|
||||
and second is destination drive
|
||||
*/
|
||||
|
||||
/* Revision 1.7 2001/07/09 22:19:33 bartoldeman
|
||||
/* LBA/FCB/FAT/SYS/Ctrl-C/ioctl fixes + memory savings
|
||||
/*
|
||||
/* Revision 2.1 tomehlert 2001/4/26
|
||||
|
||||
changed the file system detection code.
|
||||
|
||||
|
||||
*/
|
||||
|
||||
/* Revision 2.0 tomehlert 2001/4/26
|
||||
|
||||
no direct access to the disk any more, this is FORMAT's job
|
||||
no floppy.asm anymore, no segmentation problems.
|
||||
no access to partition tables
|
||||
|
||||
instead copy boot sector using int25/int26 = absdiskread()/write
|
||||
|
||||
if xxDOS is able to handle the disk, SYS should work
|
||||
|
||||
additionally some space savers:
|
||||
|
||||
replaced fopen() by open()
|
||||
|
||||
included (slighly modified) PRF.c from kernel
|
||||
|
||||
size is no ~7500 byte vs. ~13690 before
|
||||
|
||||
*/
|
||||
/* Revision 1.6 2001/04/29 17:34:41 bartoldeman
|
||||
/* A new SYS.COM/config.sys single stepping/console output/misc fixes.
|
||||
/*
|
||||
/* Revision 1.5 2001/03/25 17:11:54 bartoldeman
|
||||
/* Fixed sys.com compilation. Updated to 2023. Also: see history.txt.
|
||||
/*
|
||||
/* Revision 1.4 2000/08/06 05:50:17 jimtabor
|
||||
/* Add new files and update cvs with patches and changes
|
||||
/*
|
||||
* Revision 1.3 2000/05/25 20:56:23 jimtabor
|
||||
* Fixed project history
|
||||
*
|
||||
* Revision 1.2 2000/05/15 05:28:09 jimtabor
|
||||
* Cleanup CRs
|
||||
*
|
||||
* Revision 1.1.1.1 2000/05/06 19:34:53 jhall1
|
||||
* The FreeDOS Kernel. A DOS kernel that aims to be 100% compatible with
|
||||
* MS-DOS. Distributed under the GNU GPL.
|
||||
*
|
||||
* Revision 1.10 2000/03/31 06:59:10 jprice
|
||||
* Added discription of program.
|
||||
*
|
||||
* Revision 1.9 1999/09/20 18:34:40 jprice
|
||||
* *** empty log message ***
|
||||
*
|
||||
* Revision 1.8 1999/09/20 18:27:19 jprice
|
||||
* Changed open/creat to fopen to make TC2 happy.
|
||||
*
|
||||
* Revision 1.7 1999/09/15 05:39:02 jprice
|
||||
* Changed boot sector writing code so easier to read.
|
||||
*
|
||||
* Revision 1.6 1999/09/14 17:30:44 jprice
|
||||
* Added debug log creation to sys.com.
|
||||
*
|
||||
* Revision 1.5 1999/08/25 03:19:51 jprice
|
||||
* ror4 patches to allow TC 2.01 compile.
|
||||
*
|
||||
* Revision 1.4 1999/04/17 19:14:44 jprice
|
||||
* Fixed multi-sector code
|
||||
*
|
||||
* Revision 1.3 1999/04/01 07:24:05 jprice
|
||||
* SYS modified for new boot loader
|
||||
*
|
||||
* Revision 1.2 1999/03/29 16:24:48 jprice
|
||||
* Fixed error message
|
||||
*
|
||||
* Revision 1.1.1.1 1999/03/29 15:43:15 jprice
|
||||
* New version without IPL.SYS
|
||||
* Revision 1.3 1999/01/21 04:35:21 jprice Fixed comments.
|
||||
* Added indent program
|
||||
*
|
||||
* Revision 1.2 1999/01/21 04:13:52 jprice Added messages to sys. Also made
|
||||
* it create a .COM file.
|
||||
*
|
||||
*/
|
||||
|
||||
/*
|
||||
TE thinks, that the boot info storage should be done by FORMAT, noone else
|
||||
@ -793,4 +678,81 @@ BOOL copy(COUNT drive, BYTE * srcPath, BYTE * rootPath, BYTE * file)
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
/* Log: sys.c,v see "cvs log sys.c" for newer entries.
|
||||
|
||||
/* version 2.2 jeremyd 2001/9/20
|
||||
Changed so if no source given or only source drive (no path)
|
||||
given, then checks for kernel.sys & command.com in current
|
||||
path (of current drive or given drive) and if not there
|
||||
uses root (but only if source & destination drive are different).
|
||||
Fix printf to include count(ret) if copy can't write all requested bytes
|
||||
*/
|
||||
/* version 2.1a jeremyd 2001/8/19
|
||||
modified so takes optional 2nd parameter (similar to PC DOS)
|
||||
where if only 1 argument is given, assume to be destination drive,
|
||||
but if two arguments given, 1st is source (drive and/or path)
|
||||
and second is destination drive
|
||||
*/
|
||||
|
||||
/* Revision 2.1 tomehlert 2001/4/26
|
||||
|
||||
changed the file system detection code.
|
||||
|
||||
|
||||
*/
|
||||
|
||||
/* Revision 2.0 tomehlert 2001/4/26
|
||||
|
||||
no direct access to the disk any more, this is FORMAT's job
|
||||
no floppy.asm anymore, no segmentation problems.
|
||||
no access to partition tables
|
||||
|
||||
instead copy boot sector using int25/int26 = absdiskread()/write
|
||||
|
||||
if xxDOS is able to handle the disk, SYS should work
|
||||
|
||||
additionally some space savers:
|
||||
|
||||
replaced fopen() by open()
|
||||
|
||||
included (slighly modified) PRF.c from kernel
|
||||
|
||||
size is no ~7500 byte vs. ~13690 before
|
||||
|
||||
* Revision 1.10 2000/03/31 06:59:10 jprice
|
||||
* Added discription of program.
|
||||
*
|
||||
* Revision 1.9 1999/09/20 18:34:40 jprice
|
||||
* *** empty log message ***
|
||||
*
|
||||
* Revision 1.8 1999/09/20 18:27:19 jprice
|
||||
* Changed open/creat to fopen to make TC2 happy.
|
||||
*
|
||||
* Revision 1.7 1999/09/15 05:39:02 jprice
|
||||
* Changed boot sector writing code so easier to read.
|
||||
*
|
||||
* Revision 1.6 1999/09/14 17:30:44 jprice
|
||||
* Added debug log creation to sys.com.
|
||||
*
|
||||
* Revision 1.5 1999/08/25 03:19:51 jprice
|
||||
* ror4 patches to allow TC 2.01 compile.
|
||||
*
|
||||
* Revision 1.4 1999/04/17 19:14:44 jprice
|
||||
* Fixed multi-sector code
|
||||
*
|
||||
* Revision 1.3 1999/04/01 07:24:05 jprice
|
||||
* SYS modified for new boot loader
|
||||
*
|
||||
* Revision 1.2 1999/03/29 16:24:48 jprice
|
||||
* Fixed error message
|
||||
*
|
||||
* Revision 1.1.1.1 1999/03/29 15:43:15 jprice
|
||||
* New version without IPL.SYS
|
||||
* Revision 1.3 1999/01/21 04:35:21 jprice Fixed comments.
|
||||
* Added indent program
|
||||
*
|
||||
* Revision 1.2 1999/01/21 04:13:52 jprice Added messages to sys. Also made
|
||||
* it create a .COM file.
|
||||
*
|
||||
*/
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user