home *** CD-ROM | disk | FTP | other *** search
/ Mega Top 1 / os2_top1.zip / os2_top1 / INFO / FAQS / OS2FAXES / OSDAMEM.FAX < prev    next >
Encoding:
Text File  |  1994-12-20  |  8.7 KB  |  207 lines

  1. OSDAMEM - PROBLEMS RUNNING DOS APPLICATIONS IN A VDM
  2. 10/19/94
  3.  
  4. ================================================================
  5.        PROBLEMS RUNNING DOS APPLICATIONS IN A VDM
  6. ================================================================
  7.  
  8. Please Read Entire Document For Full Explanation of Procedure
  9. ----------------------------------------------------------------
  10.  
  11. SYMPTOMS:
  12.   DOS applications running in a VDM may have problems with
  13.   expanded memory conflicts (EMS), SYS3176, and session locks up.
  14.  
  15.  
  16. RESOLUTION:
  17.   Many DOS applications, TSRs, or loading device drivers high,
  18.   use Expanded Memory (EMS) when loading.  Some examples of DOS
  19.   applications are spreadsheets, wordprocesssors, databases,
  20.   desktop publishing, and CAD systems.  Several problems can
  21.   occur if EMS is not detected:
  22.  
  23.   1.  SYS3176 error.
  24.   2.  The VDM session locks up when starting up the application.
  25.   3.  When starting up the application in a VDM, a flash of text
  26.       relating to an adapter conflict appears before it closes
  27.       and goes back to OS/2 desktop.  It goes by so fast, you
  28.       can hardly see it.
  29.  
  30.   TSR (Terminate-and-Stay-Resident)
  31.       A VDM closes when it detects the TSR terminating, so there
  32.       is no chance for it to become resident.  To load a TSR you
  33.       must make a Desktop Program Object from Templates Folder.
  34.  
  35.   On the Program page of the Settings Notebook:
  36.       A. Type: * in PATH and FILENAME field if it does not appear
  37.       B. Complete the parameters field with /K followed by the
  38.          PATH and program name of the TSR.  For example:
  39.                   /K C:\FT\FTTERM.BAT
  40.       See Vol. 2, Page 200, IBM Redbooks for more information.
  41.  
  42.   4.  Very little expanded memory shows up in the application no
  43.       matter what changes were made to the DOS Settings.  To
  44.       configure EMS support for the OS/2 Virtual DOS Machine
  45.       (VDM), a contiguous 64KB block of RAM is used as the EMS
  46.       Page Frame and must be available with the Upper Memory
  47.       Block (UMB) between 640KB and 1MB.  That address range is
  48.       between C0000-CFFFF which is exactly 64KB of memory.
  49.  
  50.       We recommend remapping to the D0000-DFFFF range all adapter
  51.       cards whose ROM and RAM addresses are mapped between the
  52.       C0000-CFFFF range.  The most common adapter cards are
  53.       video, network, modem, and emulation.  Many IBM and OEM
  54.       systems have their Token Ring Adapter cards mapped to
  55.       the C0000-CFFFF region.
  56.  
  57. ================================================================
  58.  
  59. ADDITIONAL INFORMATION FOR EMS MEMORY
  60.  
  61.   EMS MEMORY AND CONFLICTS WITH ADAPTER MEMORY
  62.  
  63.     Expanded Memory uses memory addresses that sometimes conflict
  64.     with adapters.  EMS needs 64k of contiguous space before it
  65.     can install.  The more adapters you have, the more likely
  66.     the conflict.  Network, disk, and 3270 adapters usually have
  67.     memory present which can prevent EMS activation.
  68.  
  69.     There are two techniques to stop the conflict.
  70.  
  71. ONE:
  72.     Use the INCLUDE property MEM_INCLUDE_REGIONS.  With this
  73.     property, you can disable the adapter memory for only that
  74.     session and allow EMS to use it instead.
  75.  
  76.   EXAMPLE:  If you have a 3270 adapter, and already have OS/2
  77.     Comm Manager support, you do not need to use the 3270 memory
  78.     in a DOS session.  To disable the memory in a DOS session,
  79.     you need to find the address of the 3270 adapter, by using
  80.     the reference diskettes on PS/2's.  When the address is
  81.     known, specify the range in the INCLUDE property.  Most
  82.     IBM 3270 adapters start at CE000 (0XCE00 absolute).  The
  83.     property should be set to:
  84.  
  85.                      CE000-CFFFF
  86.  
  87.     This allows EMS to use this memory if there is enough memory
  88.     near this range.
  89.  
  90. TWO:
  91.     Change addresses of the adapters with the reference diskette.
  92.  
  93.   EXAMPLE:  On a PS/2 Model 80 ESDI with both a Token Ring and
  94.     3270 adapter, it is necessary to change the defaults to
  95.     enable EMS.
  96.  
  97.     NOTE:  The '0x' prefix on numbers means it is hexadecimal.
  98.  
  99.     Address Use           Address Name    Length (in KBytes)
  100.     ------------          ------------    ------------------
  101.     VGA (Video)           0xA0000-0xBFFFF        128K
  102.     Not in Use            0xC0000-0xC7FFF         32K (Free)
  103.     ESDI Adapter (Disk)   0xC8000-0xCBFFF         16K
  104.     IBM Token Ring ROM    0xCC000-0xCDFFF          8K
  105.     IBM 3270 Adapter      0xCE000-0xCFFFF          8K
  106.     Not in Use            0xD0000-0xD7FFF         32K (Free)
  107.     IBM Token Ring RAM    0xD8000-0xDBFFF         16K
  108.     Not in Use            0xDC000-0xDFFFF         16K (Free)
  109.     PS/2 ROM              0xE0000-0xFFFFF         128K
  110.  
  111.   To use a DOS network redirector and a DOS 3270 driver in the
  112.   same session with EMS memory, re-arrange the addresses of the
  113.   adapters that allow a 64k sized window into the range from
  114.   0xA0000 to 0xFFFFF.  Since you need both VGA and PS/2 ROM,
  115.   the range has to be between 0xC0000 and 0xDFFFF.
  116.  
  117.   There is a total of 80k free in that range, it just is not
  118.   contiguous.  The goal is to make it contiguous.
  119.  
  120.   Use the PS/2 Reference diskette to change the addresses of the
  121.   adapters.  In this case, it is best to move the adapters
  122.   from the 0xC0000-0xCFFFF range into the 0xD0000-0xDFFFF range.
  123.  
  124.                  Move ESDI ROM       to 0xD0000
  125.                  Move Token-Ring ROM to 0xD4000
  126.                  Move 3270 RAM       to 0xD6000
  127.  
  128.   The new map would look like:
  129.  
  130.    Address Use        Address Name    Length (in KBytes)
  131.    ------------       ------------    ------------------
  132.    VGA                0xA0000-0xBFFFF       128K
  133.    EMS Memory         0xC0000-0xCFFFF        64K (EMS Range)
  134.    ESDI Adapter       0xD0000-0xD3FFF        16K
  135.    IBM Token Ring ROM 0xD4000-0xD5FFF         8K
  136.    IBM 3270 Adapter   0xD6000-0xD7FFF         8K
  137.    IBM Token Ring RAM 0xD8000-0xDBFFF        16K
  138.    Not in Use         0xDC000-0xDFFFF        16K (Free)
  139.    PS/2 ROM           0xE0000-0xFFFFF       128K
  140.  
  141.   The memory not in use for EMS could be used by the XMS Upper
  142.   Memory Blocks.  The 16k could be used by OS/2 DOS to load a
  143.   device driver or TSR high.
  144.  
  145. ================================================================
  146.  
  147. RECONFIGURING THE MEMORY REMAPPING ON VARIOUS MACHINES
  148.  
  149.   IBM SYSTEMS
  150.   ------------
  151.     Some of the IBM hardware systems:  56 SLC, 57 SLC, 56 SLC2,
  152.     57 SLC2, 76, 77, and 90, have a built in utility program to
  153.     create a backup Reference diskette.  The diagnostics to
  154.     reconfigure the register addresses is run from the hard
  155.     disk.  Most of these systems have their video adapter
  156.     cards mapped to the C0000-CFFFF region.
  157.  
  158.     To start the Utility Program from the hard disk:
  159. 1.  Turn on the computer and let the self-tests complete.
  160. 2.  Press Ctrl+Alt+Del.  Watch the cursor closely, and when it
  161.     moves to the top-right corner of the screen.
  162. 3.  Press Ctrl+Alt+Ins.  See IBM Reference Diskette Instructions
  163.     below.
  164.  
  165.   IBM VALUE POINT
  166.   ---------------
  167.     These systems have their video addresses mapped to the
  168.     A0000-AFFFF range.  These also have to start the utility
  169.     program from the hard disk.  See instructions from IBM
  170.     Preloads above.
  171.  
  172.   OTHER IBM PS/2 MICRO CHANNEL SYSTEMS
  173.   ------------------------------------
  174.     A Reference Diskette is supplied with each system.  Start
  175.     the diskette from Drive A:. See IBM Reference Diskette
  176.     Instructions below.
  177.  
  178.   IBM REFERENCE DISKETTE INSTRUCTIONS
  179.     When the IBM logo appears:
  180. 1.  Press Enter and select Set Configuration.
  181. 2.  Select Change Configuration
  182. 3.  Select the slot and location of the adapter card that is
  183.     mapped to the C0000-CFFFF range.
  184. 4.  Use PF6 to toggle up or down to a free D0000-DFFFF memory
  185.     range address.
  186. 5.  Press PF10 to Save the configuration.
  187. 6.  Restart the machine.  The goal is to free the C0000-CFFFF
  188.     address range by moving adapter ROM and RAM addresses to
  189.     the D0000-DFFFF range.
  190.  
  191.   EISA/ISA BUS ARCHITECTURE SYSTEMS
  192.     Many of these systems have a built in Diagnostics Setup and
  193.     Configuration file.  After starting, the screen displays a
  194.     sequence of keys to press to display the Setup.  Some
  195.     systems allow only viewing and some allow viewing and
  196.     reconfiguring.  Quite a few adapter cards can only be
  197.     reconfigured by resetting dip switches on the card.  Refer
  198.     to the manufacturer's documentation that came with the card,
  199.     or contact the vendor where you purchased the system.
  200.  
  201. ----------------------------------------------------------------
  202. IBM disclaims all warranties, whether express or implied,
  203. including without limitation, warranties of fitness and
  204. merchantability with respect to the information in this document.
  205. By furnishing this document, IBM grants no licenses to any
  206. related patents or copyrights.
  207.