memdisk-cd: Kill off Int13MaxFunc slot for installer handling EDD case
authorShao Miller <shao.miller@yrdsb.edu.on.ca>
Tue, 10 Mar 2009 05:13:25 +0000 (01:13 -0400)
committerH. Peter Anvin <hpa@zytor.com>
Tue, 10 Mar 2009 22:02:04 +0000 (15:02 -0700)
The memdisk install code previously controlled EDD features by controlling
how many INT 13 functions were available.  Since we have EDD and non-EDD
versions of the memdisk hooking code now, this is no longer needed.

memdisk/memdisk.inc
memdisk/setup.c

index eae5e19..1e2076b 100644 (file)
@@ -148,7 +148,7 @@ Int13Start:
                mov bp,sp               ; Point BP to the entry stack frame
                TRACER 'F'
                ; Note: AH == P_AH here
-               cmp ah,[Int13MaxFunc]
+               cmp ah,[Int13FuncsCnt-1]
                ja Invalid_jump
                xor al,al               ; AL = 0 is standard entry condition
                mov di,ax
@@ -929,10 +929,6 @@ DPT_ptr            dw 0                    ; If nonzero, pointer to DPT
 MDI_Len                equ $-MemDisk_Info
 
 ; ---- MDI structure ends here ---
-Int13MaxFunc   db Int13FuncsCnt-1      ; Max INT 13h function (to disable EDD)
-               db 0                    ; pad
-
-               dw 0                    ; pad
 MemInt1588     dw 0                    ; 1MB-65MB memory amount (1K)
 
 Cylinders      dw 0                    ; Cylinder count
index 1cd5e11..bdc6086 100644 (file)
@@ -96,10 +96,6 @@ struct patch_area {
 
   uint16_t dpt_ptr;
   /* End of the official MemDisk_Info */
-  uint8_t  maxint13func;
-  uint8_t  _pad2;
-
-  uint16_t _pad3;
   uint16_t memint1588;
 
   uint16_t cylinders;