DOS Protected Mode Services

From HandWiki
Short description: Set of extended DOS memory management services

DOS Protected Mode Services (DPMS) is a set of extended DOS memory management services to allow DPMS-enabled DOS drivers to load and execute in extended memory and protected mode.[1][2][3]

Not being a DOS extender by itself, DPMS is a minimal set of extended DOS memory management services to allow slightly modified DOS resident system extensions (RSX) such as device drivers or terminate-and-stay-resident programs (TSRs) (as so called DPMS clients) to relocate themselves into extended memory and run in 16-bit or 32-bit protected mode while leaving only a tiny stub in conventional memory as an interface to communicate with the conventional DOS environment.[2][4][5] The DPMS clients do so through DPMS services provided by a previously loaded DPMS server.[1] The necessary size of the remaining stub depends on the type of driver, but often can be reduced to a few hundred bytes for just the header even for complex drivers.

By executing the driver in extended memory and freeing up conventional memory, DPMS not only allows very large drivers to load and take advantage of the available memory, but also to leave more memory available for normal DOS drivers to load or non-extended DOS applications to execute within the space constraints of the conventional memory area. This will also help increase the amount of free system resources under Windows. Providing unified interfaces for the software to allocate and use memory in protected mode[1] without having to tunnel all requests through real mode DOS, DPMS at the same time can help improve system performance as well.

DPMS

DPMS was originally developed by Novell's Digital Research GmbH, Germany, in 1992.[6][nb 1] It is compatible with any DOS and can coexist with memory managers and DOS extenders such as DPMI, VCPI, etc. The DPMS API is reentrant[1] and compatible with multitaskers such as the DR-DOS multitasker or DESQview.[7] By providing a built-in DPMS VxD-driver, it is also compatible with Windows 3.x and Windows 9x.[7]

The DPMS server must be loaded after the memory managers (and before the drivers using it), either as a "DPMSXXX0"[7] device driver per DEVICE statement in CONFIG.SYS (preferred method), or later as a TSR.[7] For debug purposes (for example in conjunction with Microsoft's WDEB386.EXE[1]), SDK-versions of EMM386.EXE 3.00 can alternatively provide DPMS services[1] via EMM386 [/]DPMS[=ON] through a built-in DPMS.SYS module,[8] then running at ring 1 instead of ring 0, as with the stand-alone version of DPMS.EXE. The DPMS [/]NOCR3 option allows debugging under older NuMega SoftICE versions.[8]

Depending on circumstances the server will occupy between about 700 to 1400 bytes of conventional memory by itself and cannot be loaded into UMBs.[7][nb 2] The DPMS server will require at least a 286 machine to run, but since DPMS-enabled software can be designed in a way so that it continues to execute in conventional memory if DPMS services are not available, the software does not need to give up compatibility with systems not providing DPMS services, either because DPMS is not loaded or not available (for example on pre-286 processors).[1][7] On 386 CPUs (and higher), the DPMS server will not only provide a set of 16-bit, but also a set of 32-bit services.[1] Even on these machines, DPMS can be forced to load only its 16-bit services using the DPMS [/]2[86] option.

DPMS will allocate memory either through VCPI or XMS,[8] depending on what kind of memory is available. VCPI will typically call down to XMS as well. Newer versions of DPMS can be forced to use one of these interfaces using the DPMS [/]MEM=XMS|VCPI option.[8] In some versions, it is possible to specify the maximum amount of extended memory to be allocated with DPMS [/]MB=nnnn.[8]

DPMS registering services can be disabled or re-enabled at any time after load using the DPMS [/]OFF or DPMS [/]ON command, however, this will only affect new drivers loaded, not those already running and using DPMS.[1][7]

There are basically three revisions of the DPMS specification, DPMS beta,[9][10] DPMS 1.0 (original Novell DOS 7 shipment)[1] and DPMS 1.1 (since March 1994 update).[11] The 1.0 specification continued to support the beta specification as well, whereas the 1.1 (and higher) implementation does not.[11]

DPMS saw its debut in beta versions of DR DOS "Panther" in October 1992,[8][nb 1] which, besides others, came with DPMS-enabled versions of the Super PC-Kwik disk cache,[8] Addstor's SuperStor disk compression,[9][8] and DEBUG as "stealth" protected mode system debugger.[8] While DPMS was already called "DOS Protected Mode Services" at this time, the DPMS.EXE/DPMS.SYS 0.10 driver would still display "DOS Protected Mode Server" startup messages. The PCMCIA card services CS in PalmDOS were DPMS-enabled as well.[8] Later retail products such as Novell DOS 7[3] and Personal NetWare 1.0 in December 1993 also came with many DPMS-enabled drivers such as the file deletion tracking component DELWATCH 2.00, the adaptive disk cache NWCACHE 1.00,[9][7] NWCDEX 1.00,[6][7] a CD-ROM redirector extension, the peer-to-peer networking server SERVER 1.20, and STACKER 3.12, the disk compression component. DPMS was also provided by Caldera OpenDOS 7.01,[1] DR-DOS 7.02 and 7.03, which, at least in some releases, added DPMS-enabled issues of DRFAT32 (a FAT32 redirector extension),[8] LONGNAME (VFAT long filename support)[8] and VDISK (virtual RAM disk).[1][10] DR-DOS 7.03 contains the latest version of DPMS 1.44.

DPMS was also provided by IBM's PC DOS 7.0[12][13] and PC DOS 2000, which came with an older version of Novell's DPMS server and a DPMS-enabled version of Stacker 4.02 bundled.[12][13]

Stac Electronics also produced a DPMS-enabled stand-alone version of Stacker 4.[14]

PC-Kwik Corporation's Super PC-Kwik 6.xx for DOS[15] and their Power Pak 4.0 for Windows also included the DPMS-enabled disk cache SUPERPCK in 1994.[16]

Some third-party DOS driver suites such as the Eicon Diva or High Soft Tech GmbH (HST) Saphir[17] CAPI ISDN drivers or PCMCIA/PCCard driver stacks such as Award's CardWare 2.5 (or higher) are known to support DPMS as well.[8] After Phoenix's acquisition of Award, their PCMCIA drivers 6.0 (and higher) have been sold off to UniCore.[8] CardWare 6.0 and 7.0 were available through APSoft,[18][19] Socket Services (SSxxxxxx.EXE), Card Services (PCCS.EXE), PC Enable (PCENABLE.EXE), and card handlers (PCDISK.EXE, PCSRAM.EXE, PCATA.EXE, and PCFLASH.EXE) could use DPMS. Through LXE's integration of the stack into their ruggedized DOS PCs, DPMS also found its way into the Datalight ROM-DOS suite.[20][21][22]

In 1999, Funk Software introduced a DPMS-enabled version of their remote control software Proxy Host, allowing PHOST to occupy only 9 KB of conventional memory.[23] The Remote Dial-in Client software REMOTE for the 833 Remote Access Server by Perle Systems could take advantage of DPMS for the same purpose at least since 2002.[24] SciTech Software's Kendall Bennett investigated the possibility to add DPMS support to their DOS driver suite around 2000 as well, but this was never published.

Bret Johnson developed DPMS-enabled Print Screen to file (PRTSCR) and USB drivers for DOS.[25][26]

CLOAKING

In 1993, Helix Software Company's memory manager NETROOM 3 introduced a feature very similar to Novell's DPMS: CLOAKING was used to relocate Helix's and third-party drivers into extended memory[2] and run them at ring 0.[27] Providing its functions as an extension to the real-mode EMS and XMS interface, its protected mode services are available under INT 2Ch.[10][28] A CLOAKING developer's kit was available which included a NuMega SoftICE debugger.[29][30] Cloaked driver or TSR software hooking interrupts had to leave a small 11-byte stub in conventional memory which would invoke the CLOAKING server to pass execution to the protected mode portion of the driver software.[27]

CLOAKING includes support for operation under Windows 3.x and Windows 95, providing compatible INT 2Ch services to protected mode drivers via a Windows VxD, as well as debugging through Windows start-up using SoftICE. This ability to transition between protected mode host environments is also the subject of a patent.[31]

CLOAKING integrates into and works with existing virtual memory control programs, without switching descriptor tables or resetting the control registers. This allows for faster interrupt processing, according to Helix's documentation.[30][31]

In contrast to Novell's DPMS, Helix's CLOAKING driver can be loaded high,[7][nb 2] but it does not run on 286 machines,[7][nb 2] though it does support 16-bit services and program structure on a 386. Also, CLOAKING 2.01 has been found to be incompatible with the DR-DOS multitasker (EMM386 /MULTI[=ON] + TASKMGR).[7]

If no DPMS server is present when CLOAKING.EXE loads, CLOAKING will, by default, also provide a cloaked DPMS server at a mere 100 bytes increase of its DOS memory footprint.[14][7] However, it can also coexist with a DPMS server loaded before CLOAKING. The loading of its built-in DPMS server can be suppressed using the CLOAKING /NODPMS parameter.[7] DPMS-enabled drivers will work with both DPMS or CLOAKING, but not vice versa.[7]

In NETROOM v3.04, the Supplemental Disk distribution dated 10 February 1995 included the password-protected resource file NR.ZIP (679,271 KB) as an undocumented file; DPMSCLK.EXE (13,904 KB), "Cloaked DPMS Server v3.03". The file does not reveal support for any options or parameters when queried using the standard help option, DPMSCLK /? . This file is not unzipped by the NETROOM 3 SETUP.EXE program and does not install. There is no hint of the file's existence in the NETROOM 3 software manual[32] or any of the on-disk program documentation and human-readable files.[33] This final version of NETROOM as released basically ignored DPMS.

Helix licensed a version of Award Software's BIOS and developed cloaked system and video BIOSes which executed entirely in protected mode, reducing their real-mode memory footprint down to 8 KB (instead of 96 KB[10]) and used these as run-time BIOS in conjunction with their NETROOM memory manager.[7][28]

As part of their Multimedia Cloaking product, Helix provided cloaked versions of Logitech's MOUSE 6.33 driver, Microsoft's MSCDEX, and a home-grown disk cache to replace Microsoft's SmartDrive drivers.

There was also a product named Multimedia Stacker consisting of Stac's DPMS-enabled Stacker 4.01 with Helix's above suite of cloaked DOS utilities.[14][34]

The Logitech DOS mouse driver since MouseWare 6.50 was enabled to take advantage of CLOAKING as well, thereby reducing the mouse driver's memory footprint visible to DOS applications from 27 KB to 1 KB.[7]

CLOAKING was also licensed to Symantec for their utility suite, to Corel for their CD Creator and Corel SCSI products, and to SMC Networks for their Ethernet drivers.

Novell's DPMS utility may not be used to temporarily disable DPMS with a DPMS [/]OFF command if those DPMS services are provided by CLOAKING instead of DPMS itself, because Helix's implementation will erroneously not only disallow new drivers to register with DPMS, but completely switch off DPMS services even for already loaded drivers, leading to a system crash.[7]

NIOS

In 1993, Novell had announced plans to convert their resident workstation management utilities as well as their DOS network driver stacks (shells, redirectors and requestors) to use DPMS,[10] however, only the Personal NetWare server component was modified to actually take advantage of it.

Announced in 1993,[35][36][37][38] Novell introduced a new 32-bit DOS/Windows NetWare client (Client 32) based on ODI32/NIOS in 1996, replacing the former 16-bit client based on ODI/VLM.[7] The NIOS (NetWare I/O Subsystem[37][39][40]) client for DOS and Windows used techniques very similar to DPMS or Cloaking to relocate and run the code of the loaded NLMs (NetWare Loadable Modules) in protected mode and extended memory in order to reduce the conventional memory footprint of the network stack down to about 2 to 5 KB.[7][39]

NIOS neither required nor used DPMS or Cloaking directly, and it did not provide a generic interface which could be used by non-NLM modules, however, it was certainly inspired by the DPMS technology and it can coexist with both of them.

While Novell's Personal NetWare was published unmodified as part of the DR-DOS suite by its newer owners Caldera, Lineo and DeviceLogics up to 2018, Personal NetWare had been abandoned since 1995 within Novell itself. This led to the situation that Novell never published a PNW.NLM driver to support the Personal NetWare protocol under the newer 32-bit ODI32/NIOS stack, so that users of Personal NetWare, who could take advantage of the PNW server module's DPMS capabilities already, were bound to continue to use the memory-consuming ODI/VLM 16-bit client with its PNW.VLM protocol driver.[7]

See also

Notes

  1. 1.0 1.1 The DPMS.EXE executable version 0.10 from DR DOS "Panther" shows a "1985,1992" copyright and refers to an embedded DPMS.SYS device driver.
  2. 2.0 2.1 2.2 Some early versions of DPMS (before Novell DOS 7 Update 3) could be loaded high, but this was deliberately defeated in later versions (by artificially letting the driver declare an impossible to satisfy amount of memory during initialization, so that the operating system could not load it high and had to leave it in conventional memory during initialization) for compatibility reasons. It could cause stability problems in some scenarios on 286 and 386 machines supporting chipset-level memory backfilling mechanisms.

References

  1. 1.00 1.01 1.02 1.03 1.04 1.05 1.06 1.07 1.08 1.09 1.10 1.11 OpenDOS Developer's Reference Series — DOS Protected Mode Services (DPMS) 1.0 API — Programmer's Guide. UK: Caldera, Inc.. August 1997. Caldera Part No. 200-DODG-005. http://www.drdos.net/documentation/dpms/dpms.htm. Retrieved 2016-05-21. 
  2. 2.0 2.1 2.2 "QPI: The QEMM-386 Programming Interface". Dr. Dobb's Journal. Undocumented Corner (San Mateo, California, USA: Miller Freeman, Inc.): 123–131. July 1994. https://www.cs.cmu.edu/~ralf/papers/qpi.txt. Retrieved 2017-08-23. 
  3. 3.0 3.1 "Das Ende von DOS ist nur noch eine Frage der Zeit" (in de). Computerwoche (Munich, Germany: IDG Business Media GmbH). 1994-06-17. https://www.computerwoche.de/a/das-ende-von-dos-ist-nur-noch-eine-frage-der-zeit,1121952. Retrieved 2022-01-02. 
  4. "Novell rolls out new net-ready DR DOS version". Network World: 10. 1993-03-23. https://books.google.com/books?id=ehwEAAAAMBAJ&pg=PA10. Retrieved 2017-09-09. 
  5. "Novell DOS gives an exciting look at future of DOS". InfoWorld (InfoWorld Media Group, Inc.) 16 (4): 63. 1994-01-24. https://books.google.com/books?id=_DoEAAAAMBAJ&pg=PA63. Retrieved 2017-09-09. 
  6. 6.0 6.1 "Resume: Joe Wein". 2012. http://www.joewein.de/resume.htm. "[…] [up to] 1992 Digital Research GmbH […] DR DOS 6.0 […] Designed and implemented DPMS protected mode extender for device drivers for DR DOS 7. […]" 
  7. 7.00 7.01 7.02 7.03 7.04 7.05 7.06 7.07 7.08 7.09 7.10 7.11 7.12 7.13 7.14 7.15 7.16 7.17 7.18 7.19 7.20 (in de) NWDOS-TIPs — Tips & Tricks rund um Novell DOS 7, mit Blick auf undokumentierte Details, Bugs und Workarounds (3 ed.). 1997-07-30. http://www.antonis.de/dos/dos-tuts/mpdostip/html/nwdostip.htm. Retrieved 2012-01-11.  (NB. NWDOSTIP.TXT is a comprehensive work on Novell DOS 7 and OpenDOS 7.01, including the description of many undocumented features and internals. It is part of the author's yet larger MPDOSTIP.ZIP collection maintained up to 2001 and distributed on many sites at the time. The provided link points to a HTML-converted older version of the NWDOSTIP.TXT file.)
  8. 8.00 8.01 8.02 8.03 8.04 8.05 8.06 8.07 8.08 8.09 8.10 8.11 8.12 8.13 (in de) NWDOS-TIPs — Tips & Tricks rund um Novell DOS 7, mit Blick auf undokumentierte Details, Bugs und Workarounds (3 ed.). 2001-04-09. 
  9. 9.0 9.1 9.2 "Coming Attractions: Novell's DOS". PC Magazine: 124. 1993-04-13. https://books.google.com/books?id=kjyIOLYr7yMC&pg=PA124. Retrieved 2018-09-16. 
  10. 10.0 10.1 10.2 10.3 10.4 Undocumented DOS: A programmer's guide to reserved MS-DOS functions and data structures - expanded to include MS-DOS 6, Novell DOS and Windows 3.1 (2 ed.). Reading, Massachusetts, USA: Addison Wesley. 1994. p. 11. ISBN 0-201-63287-X. https://archive.org/details/undocumenteddosp00andr_0/page/11.  (xviii+856+vi pages, 3.5"-floppy) Errata: [1][2]
  11. 11.0 11.1 "The x86 Interrupt List". Ralf Brown's Interrupt List. 2002-12-29. https://www.cs.cmu.edu/~ralf/files.html. 
  12. 12.0 12.1 "PC DOS 7 beats its disappearing competitors". InfoWorld (InfoWorld Media Group, Inc.) 17 (15): 68. 1995-04-10. ISSN 0199-6649. https://books.google.com/books?id=oToEAAAAMBAJ. Retrieved 2017-09-09. 
  13. 13.0 13.1 "Appendix E. DOS Protected Mode Services". PC DOS 7 Technical Update (1 ed.). Boca Raton, Florida, USA: IBM Corporation, International Technical Support Organization, Boca Raton Center. February 1995. pp. 313–324. Document Number GG24-4459-00. http://www.eie.polyu.edu.hk/~enyhchan/DOS%207%20manual.pdf. Retrieved 2018-09-17. 
  14. 14.0 14.1 14.2 "Stacker, Helix combo frees memory". InfoWorld (International Data Group) 16 (52/1): 99. 1994-12-26. ISSN 0199-6649. https://books.google.com/books?id=lDoEAAAAMBAJ&q=DPMS. Retrieved 2022-01-05. "[…] In Stacker 4.0, Stac provided DOS Protected Mode Services (DPMS) support, which allows most of the Stacker driver to move into extended memory. […]". 
  15. "Dùng Cache để nâng cao tốc độ" (in vi). VIETBOOK. 1994. https://text.123doc.org/document/15299-dung-cache-de-nang-cao-toc-do.htm. 
  16. "Windows Performance Utility - Power Pak 4.0 for Windows helps bring slower PC models up to speed". InfoWorld: 117. 1994-07-25. https://books.google.com/books?id=kDgEAAAAMBAJ&pg=PA117. Retrieved 2018-09-16. 
  17. "Saphir ISDN-Adapterfamilie Bedienungsanleitung" (in de). HST High Soft Tech Gesellschaft für Telekommunikation mbH. February 2003. https://www.voipango.de/out/pictures/wysiwigpro/voipango/Saphir_ISDN_Manual_DE.pdf. 
  18. "PCMCIA drivers for DR-DOS". www.delorie.com/opendos. 2002-01-17. http://www.delorie.com/opendos//archives/browse.cgi?p=opendos/2002/01/17/14:47:13.1. 
  19. APSoft CardWare for Windows 3.x R7.00. Feldkirchen, Germany: APSoft. 2004-03-04. http://www.tssc.de/site/download/docs/cwdwum.pdf. Retrieved 2018-09-17. 
  20. MX1 Reference Guide (Revision D ed.). Norcross, Georgia, USA: LXE Inc. (EMS Technologies). January 2004. http://www.barcodepros.com/Manuals/E-EQ-MX1RG-D.pdf. Retrieved 2018-09-16. 
  21. VX1 Reference Guide (Revision F ed.). Norcross, Georgia, USA: LXE Inc. (EMS Technologies). March 2004. http://www.barcodepros.com/Manuals/E-EQ-VX1RG-F.pdf. Retrieved 2018-09-16. 
  22. MX3 Reference Guide. Norcross, Georgia, USA: LXE Inc. (EMS Technologies). December 2005. https://country.honeywellaidc.com/CatalogDocuments/E-EQ-MX3RG-J-ARC.pdf. Retrieved 2018-09-16. 
  23. "PROXY Host". Cambridge, Massachusetts, USA: Funk Software, Inc.. May 1999. ftp://ftp.proxynetworks.com/Previous%20Versions/v5.10.5.1041/Documentation_5.10/PxHost30.pdf. [yes|permanent dead link|dead link}}]
  24. Perle Remote User's Guide (for DOS and Windows 3.x). Perle Systems Limited. 2002. 5500118-10. https://www.perle.com/support_services/documentation_pdfs/5500118-10.pdf. Retrieved 2018-09-17. 
  25. "My Source Code: PRTSCR". 2011-09-24. http://bretjohnson.us/source/source.htm.  [3] (NB. Source code for PRTSCR program to modify PrintScreen to copy to a file. Loads itself into upper memory and uses DPMS or EMS memory.)
  26. "Have you heard from USB yet?". 2015-11-03. http://bretjohnson.us/forum/viewtopic.php?f=5&t=789.  (NB. About a DPMS-enabled USB TSR suite for DOS.)
  27. 27.0 27.1 Pentium Processor Optimization Tools (1 ed.). Cambridge, Massachusetts, USA: Academic Press, Inc. (AP Professional). 1995. pp. 252–253. ISBN 0-12-627230-1. 
  28. 28.0 28.1 "NETROOM 3.0: More Room at the Top". PC Magazine 12 (13): 40. 1993-07-13. https://books.google.com/books?id=eX8w8B-OhIIC&pg=PA40. Retrieved 2014-12-12. 
  29. "Hide Programs With Cloaking". PC Magazine (Ziff Communications Company / Ziff-Davis Publishing Company) 13 (9): 269. 1994-05-17. https://books.google.com/books?id=L39FUG-zDswC&pg=RA1-PA269. Retrieved 2014-12-04. 
  30. 30.0 30.1 Helix Cloaking API Services, 1.01, Helix Software Company, 1993-10-01 
  31. 31.0 31.1 US patent 5459869 [4]
  32. NETROOM Version 3 Guide to Operations (6 ed.), October 1994, MPN N03,1094 
  33. NETROOM Version 3 Supplemental Disk, all (11) *.BAT/*.DOC/*.HLP/*.INF/*.TXT files, 1995-02-10 
  34. "Multimedia Cloaking Reclaims RAM Gobbled by Drivers". PC Magazine (Ziff Communications Company / Ziff-Davis Publishing Company) 13 (10): 48. 1994-05-31. https://books.google.com/books?id=MfbDrFwiARgC&q=pc+magazine+netroom+helix&pg=PA48. Retrieved 2014-12-04. 
  35. "Netnotes: Novell, Inc.". Network World 10 (13): 17. 1993-03-29. https://books.google.com/books?id=ehwEAAAAMBAJ&pg=PA17. Retrieved 2018-09-20. 
  36. "Novell at a crossroads". InfoWorld: 116, 118. 1994-11-04. https://books.google.com/books?id=bTgEAAAAMBAJ&pg=PA118. Retrieved 2018-09-16. 
  37. 37.0 37.1 "Novell to dress up Tuxedo and deliver 32-bit client". Network World 12 (13): 141. 1995-03-27. https://books.google.com/books?id=ShgEAAAAMBAJ&pg=PA141. Retrieved 2018-08-18. 
  38. "Network Edition - Cover Story". PC Magazine: NE27. 1995-10-24. https://books.google.com/books?id=3jNOHGmrpRkC&pg=PA527. Retrieved 2018-08-18. 
  39. 39.0 39.1 "NetWare Client 32 for DOS/Windows: Overview of Architecture and Features". Novell AppNotes. Novell. 1996-05-01. https://support.novell.com/techcenter/articles/ana19960501.html. 
  40. "Overview of NetWare Client 32 for Windows 95". Novell AppNotes. Novell. 1996-11-01. https://support.novell.com/techcenter/articles/ana19961101.html. 

Further reading

External links