Commit a5c907f8 authored by Jeffrey Lee's avatar Jeffrey Lee

Fix initial OS_ResyncTime to occur before Service_PostInit

Detail:
  s/NewReset - In Kernel-5_89, the initial OS_ResyncTime call was erroneously moved to after Service_PostInit, which had the side-effect of causing TerritoryManager's initial evaluation of AutoDST rules to be performed using an uninitialised RTC, with varying side effects depending on the user's timezone (e.g. UK stuck in DST all year round due to lack of BST in 1970). Move the call back to its original location so that TerritoryManager and any other PostInit claimants can see the correct time.
Admin:
  Tested in Iyonix ROM
  Resolves ticket #441


Version 5.91. Tagged as 'Kernel-5_91'
parent 36062ff5
......@@ -11,13 +11,13 @@
GBLS Module_HelpVersion
GBLS Module_ComponentName
GBLS Module_ComponentPath
Module_MajorVersion SETS "5.90"
Module_Version SETA 590
Module_MajorVersion SETS "5.91"
Module_Version SETA 591
Module_MinorVersion SETS ""
Module_Date SETS "07 Oct 2017"
Module_ApplicationDate SETS "07-Oct-17"
Module_Date SETS "12 Nov 2017"
Module_ApplicationDate SETS "12-Nov-17"
Module_ComponentName SETS "Kernel"
Module_ComponentPath SETS "castle/RiscOS/Sources/Kernel"
Module_FullVersion SETS "5.90"
Module_HelpVersion SETS "5.90 (07 Oct 2017)"
Module_FullVersion SETS "5.91"
Module_HelpVersion SETS "5.91 (12 Nov 2017)"
END
/* (5.90)
/* (5.91)
*
* This file is automatically maintained by srccommit, do not edit manually.
* Last processed by srccommit version: 1.1.
*
*/
#define Module_MajorVersion_CMHG 5.90
#define Module_MajorVersion_CMHG 5.91
#define Module_MinorVersion_CMHG
#define Module_Date_CMHG 07 Oct 2017
#define Module_Date_CMHG 12 Nov 2017
#define Module_MajorVersion "5.90"
#define Module_Version 590
#define Module_MajorVersion "5.91"
#define Module_Version 591
#define Module_MinorVersion ""
#define Module_Date "07 Oct 2017"
#define Module_Date "12 Nov 2017"
#define Module_ApplicationDate "07-Oct-17"
#define Module_ApplicationDate "12-Nov-17"
#define Module_ComponentName "Kernel"
#define Module_ComponentPath "castle/RiscOS/Sources/Kernel"
#define Module_FullVersion "5.90"
#define Module_HelpVersion "5.90 (07 Oct 2017)"
#define Module_LibraryVersionInfo "5:90"
#define Module_FullVersion "5.91"
#define Module_HelpVersion "5.91 (12 Nov 2017)"
#define Module_LibraryVersionInfo "5:91"
......@@ -745,6 +745,9 @@ init_other_modules
MOV R0, #FSControl_SelectFS ; set configured filing system
SWI XOS_FSControl
; Update RTC now all the modules are running
SWI XOS_ResyncTime
[ DebugROMInit
SWI XOS_WriteS
= "Service_PostInit",0
......@@ -774,9 +777,6 @@ init_other_modules
STRVCB lr, [lr, #ErrorSemaphore] ; then allow errors to be translated
]
; Update RTC now all the modules are running
SWI XOS_ResyncTime
; OS_ReadSysInfo 9,2 now relies on the Territory module, which may
; enable IRQs. But the PRMs say OS_ReadSysInfo shouldn't alter the IRQ
; state. So call it once here just to initialise the string which it
......
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