Avoid sys warning and have a VDISK signature in the HMA

git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@205 6ac86273-5f31-0410-b378-82cca8765d1b
This commit is contained in:
Bart Oldeman 2001-04-22 01:19:34 +00:00
parent cb13571dab
commit 6882b1b13d
3 changed files with 18 additions and 14 deletions

View File

@ -30,6 +30,9 @@
; $Id$ ; $Id$
; ;
; $Log$ ; $Log$
; 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 ; Revision 1.5 2001/04/15 03:21:50 bartoldeman
; See history.txt for the list of fixes. ; See history.txt for the list of fixes.
; ;
@ -85,13 +88,10 @@
%ifndef SYS %ifndef SYS
%include "..\kernel\segs.inc" %include "..\kernel\segs.inc"
segment HMA_TEXT
%else %else
group TGROUP HMA_TEXT _TEXT segment _TEXT class=CODE
segment _TEXT class=CODE %endif
segment HMA_TEXT class=CODE
%endif
segment HMA_TEXT
; ;
; ;
; Reset both the diskette and hard disk system ; Reset both the diskette and hard disk system

View File

@ -62,7 +62,7 @@
%include "..\kernel\segs.inc" %include "..\kernel\segs.inc"
segment INIT_TEXT segment HMA_TEXT
; ;
;COUNT ReadATClock(bcdDays, bcdHours, bcdMinutes, bcdSeconds) ;COUNT ReadATClock(bcdDays, bcdHours, bcdMinutes, bcdSeconds)

View File

@ -28,8 +28,8 @@
; $Id$ ; $Id$
; ;
; $Log$ ; $Log$
; Revision 1.10 2001/04/21 22:32:53 bartoldeman ; Revision 1.11 2001/04/22 01:19:34 bartoldeman
; Init DS=Init CS, fixed stack overflow problems and misc bugs. ; Avoid sys warning and have a VDISK signature in the HMA
; ;
; Revision 1.9 2001/04/15 03:21:50 bartoldeman ; Revision 1.9 2001/04/15 03:21:50 bartoldeman
; See history.txt for the list of fixes. ; See history.txt for the list of fixes.
@ -665,12 +665,16 @@ __HMATextAvailable
__HMATextStart: __HMATextStart:
; ;
; the HMA area is filled with 16+22(=sizeof VDISK) = 32 byte dummy data, ; the HMA area is filled with 1eh+3(=sizeof VDISK) = 33 byte dummy data,
; so nothing will ever be below 0xffff:25 ; so nothing will ever be below 0xffff:0031
; ;
segment HMA_TEXT segment HMA_TEXT
times 16 db 0 ; filler [ffff:0..ffff:10] begin_hma:
times 22 db 0 ; filler [sizeof VDISK info] times 13h db 0 ; filler [ffff:0..ffff:12]
db 'VDISK',0 ; VDISK3.3 signature at ffff:0013
times (2eh-($-begin_hma)) db 0
dw 1088 ; 0x2e: first free kb position for extended memory
db 0
init_ret_np: push ds init_ret_np: push ds
push word [retoff] push word [retoff]