Commit af1f546b authored by Jeffrey Lee's avatar Jeffrey Lee
Browse files

Tweak OS_ReadModeVariable optimisations

Detail:
  s/vdu/vduswis - Don't use RMVForCurrentMode when R0 = ModeNo, only use it if R0 is -1. This ensures that results for explicitly-specified modes will always represent the base properties of the mode and won't be influenced by any unusual properties of the current mode, e.g. LineLength/ScreenSize alterations caused by driver-specific framebuffer padding.
Admin:
  Tested on Raspberry Pi 3


Version 5.83. Tagged as 'Kernel-5_83'
parent 90cc1d38
......@@ -11,13 +11,13 @@
GBLS Module_HelpVersion
GBLS Module_ComponentName
GBLS Module_ComponentPath
Module_MajorVersion SETS "5.82"
Module_Version SETA 582
Module_MajorVersion SETS "5.83"
Module_Version SETA 583
Module_MinorVersion SETS ""
Module_Date SETS "07 Jun 2017"
Module_ApplicationDate SETS "07-Jun-17"
Module_Date SETS "13 Jun 2017"
Module_ApplicationDate SETS "13-Jun-17"
Module_ComponentName SETS "Kernel"
Module_ComponentPath SETS "castle/RiscOS/Sources/Kernel"
Module_FullVersion SETS "5.82"
Module_HelpVersion SETS "5.82 (07 Jun 2017)"
Module_FullVersion SETS "5.83"
Module_HelpVersion SETS "5.83 (13 Jun 2017)"
END
/* (5.82)
/* (5.83)
*
* This file is automatically maintained by srccommit, do not edit manually.
* Last processed by srccommit version: 1.1.
*
*/
#define Module_MajorVersion_CMHG 5.82
#define Module_MajorVersion_CMHG 5.83
#define Module_MinorVersion_CMHG
#define Module_Date_CMHG 07 Jun 2017
#define Module_Date_CMHG 13 Jun 2017
#define Module_MajorVersion "5.82"
#define Module_Version 582
#define Module_MajorVersion "5.83"
#define Module_Version 583
#define Module_MinorVersion ""
#define Module_Date "07 Jun 2017"
#define Module_Date "13 Jun 2017"
#define Module_ApplicationDate "07-Jun-17"
#define Module_ApplicationDate "13-Jun-17"
#define Module_ComponentName "Kernel"
#define Module_ComponentPath "castle/RiscOS/Sources/Kernel"
#define Module_FullVersion "5.82"
#define Module_HelpVersion "5.82 (07 Jun 2017)"
#define Module_LibraryVersionInfo "5:82"
#define Module_FullVersion "5.83"
#define Module_HelpVersion "5.83 (13 Jun 2017)"
#define Module_LibraryVersionInfo "5:83"
......@@ -312,8 +312,6 @@ SWIReadModeVariable ; alternative symbol used for init'ing
; AMG - Fix bug MED-00414 ... need to support eig=0 modes here 26-Oct-93
LDR r11, [WsPtr, #ModeNo] ; get current mode
CMP r0, #-1 ; if explicitly asking for current mode
BEQ RMVForCurrentMode ; then use optimised code
......@@ -425,9 +423,6 @@ RMVMS_YWindLimit
B GoodReadModeVar
11
CMP r0, r11 ; if implicitly asking for current mode (and mode <> mode selector)
BEQ RMVForCurrentMode ; then use optimised code
BIC r11, r0, #&80 ; clear shadow bit
BranchIfKnownMode r11, %FA50
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment