Skip to content

Commit dabfaf7

Browse files
committed
enable installation check for driver.sys
For now we still only support subfunction 3 (return drive table) and subfunction 0 (check if installed) which we say yes. This allows DOS Internals DRVINFO.EXE to correctly use internal drive table (it checks if installed and doesn't bother if not) and return corresponding information. Note: subfunction 3 is still handled in int2f.asm for now, but may be moved to cleaner (but bigger and slower) implementation in inthndlr.c
1 parent 1c6d1e8 commit dabfaf7

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

kernel/int2f.asm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ Int2f?iret:
180180
DriverSysCal:
181181
extern _Dyn
182182
cmp al, 3
183-
jne Int2f?iret
183+
jne IntDosCal ; pass other calls through
184184
mov ds, [cs:_DGROUP_]
185185
mov di, _Dyn+2
186186
jmp short Int2f?iret

kernel/inthndlr.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2220,6 +2220,7 @@ VOID ASMCFUNC int2F_12_handler(struct int2f12regs FAR *pr)
22202220
/* TODO */
22212221
break;
22222222

2223+
/* Note: see in2f.asm where this is handled */
22232224
case 0x03: /* get drive data table */
22242225
r.DS = FP_SEG(&nul_dev);
22252226
r.DI = FP_OFF(getddt(0));

0 commit comments

Comments
 (0)