home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 8 Other / 08-Other.zip / set6x86.zip / 6x86MX.cmd < prev    next >
OS/2 REXX Batch file  |  1998-01-03  |  2KB  |  46 lines

  1. REM This command file will enable the various performance and power-saving
  2. REM features of your Cyrix CPU.  Once you have tested the settings on your
  3. REM system, simply call this file from your STARTUP.CMD file located at
  4. REM the root of your OS/2 system drive (create one if it isn't there) and
  5. REM the registers will be set automatically on system startup.
  6. REM
  7. REM set6x86 version 1.2 or newer required
  8.  
  9. echo Cyrix 6x86MX: Suspend-on-Halt,
  10. set6x86 -r 0xC2 -s 0x08
  11.  
  12. REM Enable protection against the Cyrix Coma bug
  13. echo NO_LOCK,
  14. set6x86 -r 0xC1 -s 0x10
  15.  
  16. REM MAPEN (access to CCR4/5 enabled -- needed for settings below)
  17. set6x86 -r 0xC3 -s 0x10
  18.  
  19. echo Fast IORT,
  20. set6x86 -r 0xE8 -s 0x07
  21.  
  22. echo Enable WT_ALLOC,
  23. set6x86 -r 0xE9 -s 0x01
  24.  
  25. REM This enables some performance features for the memory mapped LVFB -
  26. REM Linear Video Frame Buffer, assuming it's on address 0xE0000000 and its size
  27. REM is 4Mb. 
  28. REM
  29. REM Also assumed a power-of-two amount of main memory.
  30. REM
  31. REM Improves CPU/video memory bandwidth by anything from 20 to 50%.
  32. REM On the original author's Linux system, memory bandwidth goes from 
  33. REM 44 MB/sec to 78 MB/sec.  DIVE performance under OS/2 gets a nice
  34. REM boost from this if your video card can handle it.  My S3 765 couldn't
  35. REM but my Matrox Millennium can.
  36. REM
  37. REM It is disabled here, because this is very system-dependent.
  38. REM
  39. REM echo Fast Lin. VidMem.
  40. REM set6x86 -r 0xD6 -d 0xE0
  41. REM set6x86 -r 0xD7 -d 0x00
  42. REM set6x86 -r 0xD8 -d 0x0B
  43. REM set6x86 -r 0xE2 -d 0x09
  44.  
  45. REM MAPEN (disable access to CCR4/5)
  46. set6x86 -r 0xC3 -c 0x10