Skip to content

Commit

Permalink
enable installation check for driver.sys
Browse files Browse the repository at this point in the history
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
  • Loading branch information
PerditionC committed Aug 19, 2024
1 parent 1c6d1e8 commit dabfaf7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion kernel/int2f.asm
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ Int2f?iret:
DriverSysCal:
extern _Dyn
cmp al, 3
jne Int2f?iret
jne IntDosCal ; pass other calls through
mov ds, [cs:_DGROUP_]
mov di, _Dyn+2
jmp short Int2f?iret
Expand Down
1 change: 1 addition & 0 deletions kernel/inthndlr.c
Original file line number Diff line number Diff line change
Expand Up @@ -2220,6 +2220,7 @@ VOID ASMCFUNC int2F_12_handler(struct int2f12regs FAR *pr)
/* TODO */
break;

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

0 comments on commit dabfaf7

Please sign in to comment.