NTT DOCOMO, INC - Fix for Bug 3598 - The argument for ReadReg() and WriteReg() in Syborg BSP overflows
authorandrew.jordan <>
Tue, 07 Sep 2010 23:21:20 +0100
changeset 105 70ccc05e6c8c
parent 104 fba9a3afb710
child 107 3bc1a978be44
NTT DOCOMO, INC - Fix for Bug 3598 - The argument for ReadReg() and WriteReg() in Syborg BSP overflows
baseport/syborg/specific/syborg.h
--- a/baseport/syborg/specific/syborg.h	Tue Sep 07 12:23:10 2010 +0100
+++ b/baseport/syborg/specific/syborg.h	Tue Sep 07 23:21:20 2010 +0100
@@ -10,7 +10,8 @@
 * Nokia Corporation - initial contribution.
 *
 * Contributors:
-* NTT Docomo, Inc : BUG 1296
+* NTT DOCOMO, INC : BUG 1296
+* NTT DOCOMO, INC : BUG 3598
 * NTT DOCOMO, INC - Fix for bug 1291 "E32test t_tock.exe failed to load Logical Device"
 *
 * Description:
@@ -133,12 +134,12 @@
 	IMPORT_C static void MarkDebugPortOff();
 };
 
-static inline TUint32 ReadReg(TUint32 base, TUint8 aReg)
+static inline TUint32 ReadReg(TUint32 base, TUint32 aReg)
 {
   return *(volatile TUint32 *)(base + (aReg << 2));
 }
 
-static inline void WriteReg(TUint32 base, TUint8 aReg, TUint32 aVal)
+static inline void WriteReg(TUint32 base, TUint32 aReg, TUint32 aVal)
 {
   *(volatile TUint32*)(base + (aReg<<2)) = aVal;
 }