home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 36 Tips / 36-Tips.zip / osdamem.txt < prev    next >
Text File  |  1996-11-17  |  9KB  |  220 lines

  1. OSDAMEM - PROBLEMS RUNNING DOS APPLICATIONS IN A DOS SESSION
  2. 01/18/96
  3.  
  4. =======================================================================
  5.          Problems Running DOS Applications in a DOS Session--
  6.                         All OS/2 Releases
  7. =======================================================================
  8.  
  9. Please Read Entire Document for Full Explanation of Procedures
  10. --------------------------------------------------------------
  11.  
  12. DESCRIPTION
  13.  
  14. DOS applications running in a DOS session (sometimes called "virtual 
  15. DOS machine" or "VDM") might have problems with Expanded Memory 
  16. Specification (EMS) conflicts, SYS3176 errors, and session lockups.
  17.  
  18. RESOLUTION
  19.  
  20. Many DOS applications, Terminate-and-Stay Resident programs (TSRs),
  21. or loading device drivers high, use expanded memory specification (EMS)
  22. when loading. Some examples of DOS applications are spreadsheets, word 
  23. processors, databases, desktop publishing, and computer aided design 
  24. (CAD) systems. Several problems can occur if EMS is not detected:
  25.  
  26. * You receive a SYS3176 error.
  27.  
  28. * The DOS session locks up when starting an application.
  29.  
  30. * When starting an application in a DOS session, a flash of text
  31.   pertaining to an adapter conflict appears and disappears so quickly,
  32.   you can barely see it. You then are returned to the OS/2 Desktop.
  33.   This problem usually is related to a Terminate-and-Stay-Resident
  34.   program (TSR).
  35.  
  36.   A DOS session closes when it detects the TSR ending, so the session
  37.   cannot become resident. To load a TSR:
  38.  
  39.   1. Open the Templates folder on the Desktop.
  40.  
  41.   2. Move the mouse pointer to the Program object; then press and hold
  42.      mouse button 2 and drag the Program object icon to the Desktop.
  43.      Release mouse button 2. The Settings notebook appears.
  44.  
  45.   3. Select the Program tab.
  46.  
  47.   4. In the Path and File Name entry field, type an asterisk (*) if it
  48.      does not already exist.
  49.  
  50.   5. In the Parameters field, type /K followed by the path and name of
  51.      the TSR; for example, /K C:\FT\FTTERM.BAT.
  52.  
  53.   For more information, see Volume 2, page 200, of the IBM Redbooks. 
  54.  
  55. * Very little expanded memory shows up in the application, no matter
  56.   what changes were made to the DOS Settings.
  57.  
  58.   To configure EMS support for an OS/2 DOS session (VDM), a contiguous
  59.   64 KB block of RAM is used as the EMS Page Frame. This must be
  60.   available within the upper memory block (UMB) between 640 KB and 1 MB.
  61.   That address range should be between C0000 and CFFFF, which is exactly
  62.   64 KB of memory.
  63.  
  64.   All adapter cards whose ROM and RAM addresses are mapped within the
  65.   C0000--CFFFF range, should be remapped to the D0000--DFFFF range. The
  66.   most-common adapter cards are video, network, modem, and emulation.
  67.   Many IBM and OEM systems have their Token-Ring cards mapped to the
  68.   C0000--CFFFF region.
  69.  
  70. Additional Information for  EMS Memory
  71. --------------------------------------
  72. EMS Memory and Conflicts with Adapter Memory
  73. --------------------------------------------
  74. Expanded Memory uses memory addresses that sometimes conflict with 
  75. adapters. EMS needs 64 KB of contiguous space before it can be 
  76. installed. The more adapters you have, the more likely it is for a 
  77. conflict to occur. Network, disk, and 3270 adapters usually have memory
  78. present that can prevent EMS activation.
  79.  
  80. There are two techniques to prevent conflicts:
  81.  
  82. * Use the INCLUDE property, MEM_INCLUDE_REGIONS. With this property,
  83.   you can disable the adapter memory for that session only and allow
  84.   EMS to use it instead.
  85.  
  86.   Example:
  87.  
  88.   If you have a 3270 adapter, and already have OS/2 Communications
  89.   Manager support, you do not need to use the 3270 memory in a DOS
  90.   session. To disable the memory in a DOS session, you need to find the
  91.   address of the 3270 adapter, by using the PS/2 Reference diskettes.
  92.   When you know the address, specify the range in the INCLUDE property.
  93.   Most IBM 3270 adapters start at CE000 (0XCE00 absolute). The property
  94.   should be set to CE000-CFFFF. This allows EMS to use this memory, if
  95.   there is enough of it near this range.
  96.  
  97. * Change addresses of the adapters with the Reference diskette.
  98.  
  99.   Example:
  100.  
  101.   On a PS/2 Model 80 ESDI with both a Token-Ring and 3270 adapter, the
  102.   defaults must be changed to enable EMS.
  103.  
  104.   Note: In the following, the 0x prefix indicates hexadecimal.
  105.  
  106.     Address Use           Address Name      Length (in KB)
  107.     -----------           ------------      --------------
  108.     VGA (Video)           0xA0000-0xBFFFF        128
  109.     Not in Use            0xC0000-0xC7FFF         32 (Free)
  110.     ESDI Adapter (Disk)   0xC8000-0xCBFFF         16
  111.     IBM Token Ring ROM    0xCC000-0xCDFFF          8
  112.     IBM 3270 Adapter      0xCE000-0xCFFFF          8
  113.     Not in Use            0xD0000-0xD7FFF         32 (Free)
  114.     IBM Token Ring RAM    0xD8000-0xDBFFF         16
  115.     Not in Use            0xDC000-0xDFFFF         16 (Free)
  116.     PS/2 ROM              0xE0000-0xFFFFF        128
  117.  
  118.   To use a DOS network redirector and a DOS 3270 driver in the same
  119.   session with EMS memory, re-arrange the addresses of the adapters
  120.   that allow a 64 KB window into the range 0xA0000 to 0xFFFFF. Because
  121.   you need both VGA and PS/2 ROM, the range  must be between 0xC0000
  122.   and 0xDFFFF. A total of 80 KB is free in that range; it just isn't
  123.   contiguous. The goal is to make it contiguous.
  124.  
  125.   Use the PS/2 Reference Diskette to change the addresses of the
  126.   adapters. In this case, it is best to move the adapters from the
  127.   0xC0000--0xCFFFF range to the 0xD0000--0xDFFFF range:
  128.  
  129.     Move ESDI ROM       to 0xD0000
  130.     Move Token-Ring ROM to 0xD4000
  131.     Move 3270 RAM       to 0xD6000
  132.  
  133.   The new map would look like this:
  134.  
  135.   Address Use             Address Name      Length (in KB)
  136.   -----------             ------------      --------------
  137.   VGA                     0xA0000-0xBFFFF        128
  138.   EMS Memory              0xC0000-0xCFFFF         64 (EMS Range)
  139.   ESDI Adapter            0xD0000-0xD3FFF         16
  140.   IBM Token Ring ROM      0xD4000-0xD5FFF          8
  141.   IBM 3270 Adapter        0xD6000-0xD7FFF          8
  142.   IBM Token Ring RAM      0xD8000-0xDBFFF         16
  143.   Not in Use              0xDC000-0xDFFFF         16 (Free)
  144.   PS/2 ROM                0xE0000-0xFFFFF        128
  145.  
  146.   The memory not in use for EMS could be used by the XMS Upper Memory
  147.   Blocks. The 16 KB could be used by OS/2 DOS to load a device driver
  148.   or TSR high.
  149.  
  150. Reconfiguring the Memory Remapping on Various Systems
  151. -----------------------------------------------------
  152. IBM Systems
  153. -----------
  154. Some IBM systems, such as 56 SLC, 57 SLC, 56 SLC2, 57 SLC2, 76, 77,
  155. and 90, have a built-in utility program for creating a backup
  156. Reference diskette. The diagnostic programs to reconfigure register
  157. addresses can be run from the hard disk. Most of these systems have
  158. their video adapters mapped to the C0000--CFFFF region.
  159.  
  160. To start the Utility Program from the hard disk:
  161.  
  162. 1. Turn on the computer and allow the self-tests to finish.
  163.  
  164. 2. Press Ctrl+Alt+Del.
  165.  
  166. 3. Watch the cursor closely. When it moves to the top-right corner of
  167.    the screen, press Ctrl+Alt+Ins.
  168.  
  169. 4. Go to "IBM Reference Diskette Instructions" below.
  170.  
  171. IBM ValuePoint
  172. --------------
  173. These systems have their video addresses mapped to the A0000--AFFFF
  174. range. They also have to start the program from the hard disk.
  175.  
  176. Other IBM PS/2 Micro Channel Systems
  177. ------------------------------------
  178. A Reference Diskette is provided with each system. Start the system
  179. with the diskette in drive A; then see the next topic.
  180.  
  181. IBM Reference Diskette Instructions
  182. -----------------------------------
  183. 1. When the IBM logo appears, press Enter.
  184.  
  185. 2. Select Set Configuration.
  186.  
  187. 3. Select Change Configuration.
  188.  
  189. 4. Select the slot and location of the adapter that is mapped to the
  190.    C0000--CFFFF range.
  191.  
  192. 5. Press F6 to toggle to a free D0000--DFFFF memory range address.
  193.  
  194. 6. Press F10 to save the configuration.
  195.  
  196. 7. Restart the system.
  197.  
  198. The goal is to free the C0000--CFFFF address by moving adapter ROM
  199. and RAM addresses to the D0000--DFFFF range.
  200.  
  201. EISA and ISA Bus Architecture Systems
  202. -------------------------------------
  203. Many of these systems have a built-in Diagnostics Setup and
  204. Configuration file. After startup, the screen displays a sequence
  205. of keys that you press to get to the setup. Some systems allow
  206. only viewing; others allow viewing and reconfiguring. Many adapters
  207. can be reconfigured only by resetting switches on the adapter.
  208. Refer to the documentation that came with the adapter, or contact
  209. your vendor for additional information.
  210.  
  211. ______________________________________________________________________
  212. IBM disclaims all warranties, whether express or implied, including 
  213. without limitation, warranties of fitness and merchantability with 
  214. respect to the information in this document. By furnishing this 
  215. document, IBM grants no licenses to any related patents or copyrights.  
  216. Copyright (c) 1994, 1995 IBM Corporation. Any trademarks and product 
  217. or brand names referenced in this document are the property of their 
  218. respective owners. Consult your product manuals for complete trademark 
  219. information. 
  220.