#------------------------------------------------------------------------------ # /etc/rc.d/rc930.setcyrix - cyrix cpu optimization __FLI4LVER__ # # Creation: 31.01.2004 mp # Last Update: $Id$ # # Copyright (c) 2004 Maximilian Pasternak # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. #------------------------------------------------------------------------------ if [ "$OPT_SETCYRIX" = yes ] then begin_script SETCYRIX echo -n "Cyrix 6x86: Suspend-on-Halt, " /usr/local/bin/set6x86 -p 0xC2 -s 0x08 # MAPEN (access to CCR4/5 enabled -- needed for settings below) /usr/local/bin/set6x86 -p 0xC3 -s 0x10 echo -n "Enable Memory Bypass, " /usr/local/bin/set6x86 -p 0xE8 -s 0x80 echo -n "Enable DTE, " /usr/local/bin/set6x86 -p 0xE8 -s 0x10 echo -n "Fast FPU, " /usr/local/bin/set6x86 -p 0xE8 -s 0x20 echo -n "Disable LSSER, " /usr/local/bin/set6x86 -p 0x20 -c 0x80 echo -n "Enable Incrementor, " if [ "$SETCYRIX_CPUSPEED" != none ] then if [ "$SETCYRIX_CPUSPEED" -ge 300 ] then /usr/local/bin/set6x86 -p 0xF0 -s 0x02 /usr/local/bin/set6x86 -p 0x20 -s 0x05 else /usr/local/bin/set6x86 -p 0xF0 -s 0x02 /usr/local/bin/set6x86 -p 0x20 -s 0x04 fi fi # Don't reset SLOP here, as this would require a kernel delay loop # recalibration, which can only be done inside the kernel #echo -n "Fast LOOP, " #/usr/local/bin/set6x86 -p 0xE9 -c 0x02 if [ "$SETCYRIX_VIDMEM" = yes ] then # This enables some performance features for the linear memory mapped # VGA memory buffer, assuming it's on address 0xE0000000. # # On some systems, memory bandwidth goes from 44 MB/sec to 78 MB/sec. # # It is disabled here, because this is very system-dependent. # echo -n "Fast Lin. VidMem." /usr/local/bin/set6x86 -p 0xD6 0xE0 /usr/local/bin/set6x86 -p 0xD7 0x00 /usr/local/bin/set6x86 -p 0xD8 0x0A /usr/local/bin/set6x86 -p 0xE2 0x09 fi # MAPEN (disable access to CCR4/5) /usr/local/bin/set6x86 -p 0xC3 -c 0x10 echo end_script fi