From dd6baa8b6c91488425d149404a83050078de4d9c Mon Sep 17 00:00:00 2001
From: Robert Sprowson <rsprowson@gitlab.riscosopen.org>
Date: Sat, 9 Nov 2013 15:59:21 +0000
Subject: [PATCH] Pass the right address to register the RTC

Spotted by Willi Theiss.

Version 0.91. Tagged as 'OMAP3-0_91'
---
 VersionNum | 20 ++++++++++----------
 s/RTC      |  2 +-
 2 files changed, 11 insertions(+), 11 deletions(-)

diff --git a/VersionNum b/VersionNum
index 580cc6e..6ee2fc8 100644
--- a/VersionNum
+++ b/VersionNum
@@ -1,23 +1,23 @@
-/* (0.90)
+/* (0.91)
  *
  * This file is automatically maintained by srccommit, do not edit manually.
  * Last processed by srccommit version: 1.1.
  *
  */
-#define Module_MajorVersion_CMHG        0.90
+#define Module_MajorVersion_CMHG        0.91
 #define Module_MinorVersion_CMHG        
-#define Module_Date_CMHG                01 Nov 2013
+#define Module_Date_CMHG                09 Nov 2013
 
-#define Module_MajorVersion             "0.90"
-#define Module_Version                  90
+#define Module_MajorVersion             "0.91"
+#define Module_Version                  91
 #define Module_MinorVersion             ""
-#define Module_Date                     "01 Nov 2013"
+#define Module_Date                     "09 Nov 2013"
 
-#define Module_ApplicationDate          "01-Nov-13"
+#define Module_ApplicationDate          "09-Nov-13"
 
 #define Module_ComponentName            "OMAP3"
 #define Module_ComponentPath            "castle/RiscOS/Sources/HAL/OMAP3"
 
-#define Module_FullVersion              "0.90"
-#define Module_HelpVersion              "0.90 (01 Nov 2013)"
-#define Module_LibraryVersionInfo       "0:90"
+#define Module_FullVersion              "0.91"
+#define Module_HelpVersion              "0.91 (09 Nov 2013)"
+#define Module_LibraryVersionInfo       "0:91"
diff --git a/s/RTC b/s/RTC
index 02f86de..dc22551 100644
--- a/s/RTC
+++ b/s/RTC
@@ -73,8 +73,8 @@ RTC_Init
         Pull    "lr"
         STR     sb, [a1, #RTCDeviceHAL_SB]
 
+        MOV     a2, a1
         MOV     a1, #0
-        ADR     a2, RTCDevice
         CallOS  OS_AddDevice, tailcall
 
 RTCDeviceTemplate
-- 
GitLab