home *** CD-ROM | disk | FTP | other *** search
/ rtsi.com / 2014.01.www.rtsi.com.tar / www.rtsi.com / OS9 / OS9_6X09 / SYSMODS / OS9p2_DistoHD_FSleepFix.lzh / os9p2.doc < prev    next >
Text File  |  1991-01-25  |  4KB  |  86 lines

  1.  
  2.     ***  OS9p2 F$Sleep Patch  ***
  3.  
  4.   Included in this archive are the following files:
  5.  
  6.        os9p2.doc   This information file.
  7.        os9p2.ipc   IPatch file to create new OS9p2
  8.        init.ipc    IPatch file to create new Init
  9.  
  10.   A number of persons have noted lockup problems when using the Disto
  11.   HD interface, especially when multitasking is occurring.  Numerous
  12.   theories have been put forth to explain this problem.  One involves
  13.   problems with the F$Sleep routine.  Difficulties associated with
  14.   Boot problems of the new version of CCHDisk posted by KScales were
  15.   also attributed to a bug with this routine.
  16.  
  17.   A solution suggested by Volney Larowe involved patching the sleep
  18.   routine in OS9p2.  The solution suggested inserts a test into the
  19.   Sleep routine to prevent the SysProcess from sleeping. The example
  20.   is given below:
  21.    
  22.    -----------------------------------------------------------------
  23.     Sleep    PshS  CC         Save CC register
  24.              Ldx   <D.Proc>   Load current process pointer into X
  25.              CmpX  <D.SysPrc> Is Sleep called by the system??
  26.              Beq   SleepXit   If Yes, branch to SleepXit
  27.   
  28.               (rest of Sleep code)
  29.  
  30.     SleepXit Rts              Return
  31.                   (etc...)
  32.    ----------------------------------------------------------------
  33.  
  34.   Included in this archive is a IPatch file os9p2.ipc to generate a new
  35.   OS9p2 from the Tandy module. The new OS9p2 was developed using source
  36.   code provided by Volney Larowe (Thanks Volney !!!).  A few minor bugs
  37.   were also fixed and the new module is 18 bytes shorter than the original.
  38.   The CRC values of the original Tandy and the new OS9p2 are given below:
  39.  
  40.  
  41.           Original Tandy Module      New Module
  42.           ---------------------      ----------
  43.     Header for:  OS9p2                OS9p2
  44.     Module size: $0CAE    #3246       $0C9C    #3228
  45.     Module CRC:  $47B370 (Good)       $E9D722 (Good)
  46.     Hdr parity:  $58                  $6A
  47.     Edition:     $11      #17         $12      #18
  48.     Ty/La At/Rv: $C0 $82              $C0 $82
  49.     System mod, Data, re-en, R/O 
  50.  
  51.   This module has been successfully tested with Disto based HD systems
  52.   using the WD1002-SHD, Xebec 1410A, Xebec 1420, and OMTI 20L hard drive
  53.   controllers.  (The OMTI uses a version of CCHDisk not in the public
  54.   domain. Sorry.)  In all cases the observed lockup problem was
  55.   eliminated.  However the module has in no way been fully tested. USE
  56.   IT AT YOU OWN RISK.  Use it with CAUTION and report any bugs to my
  57.   UserId given below.
  58.  
  59.   Also included in this archive is an IPatch file, init.ipc, to fix minor
  60.   bugs in the INIT module.  The missing Rev Number was added and changes
  61.   to the interrupt and device tables were made.  CRC values of the original
  62.   Tandy  Init and the new Init are shown below:
  63.  
  64.           Original Tandy Module      New Module
  65.           ---------------------      ----------
  66.     Header for:  Init                 Init
  67.     Module size: $002E    #46         $002F    #47
  68.     Module CRC:  $0B2322 (Good)       $BD0820 (Good)
  69.     Hdr parity:  $CC                  $CF
  70.     Edition:     $43      #67         $02      #2
  71.     Ty/La At/Rv: $C0 $81              $C0 $83
  72.     System mod, Data, re-en, R/O 
  73.  
  74.   Those users who have patched the Init data directory from /D0 to /DD
  75.   can do the same with the new module.  The new Init has been used in
  76.   conjunction with the patched OS9p2 although either can be used
  77.   independently.
  78.  
  79.   I hope these patches help those who have seen the lockup bug.  Thanks
  80.   to Volney Larowe for the source code, and also to Joe Miller and
  81.   Ken Scales (KSCALES) for their participation.  Any comments or bug
  82.   reports should be sent to user DocBear on Delphi.
  83.  
  84.                                    01/14/91      DocBear
  85.  
  86.