# HG changeset patch # User andrew.jordan <> # Date 1283898080 -3600 # Node ID 70ccc05e6c8c35bfe1159ee331b8b472bda80e5e # Parent fba9a3afb7106a22a6924630ffe1d0a57da45364 NTT DOCOMO, INC - Fix for Bug 3598 - The argument for ReadReg() and WriteReg() in Syborg BSP overflows diff -r fba9a3afb710 -r 70ccc05e6c8c 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; }