]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - ipc/ipcdev.git/commitdiff
am65xx: Fix Compilation warnings on int to pointer conversion
authorSam Nelson <sam.nelson@ti.com>
Sun, 21 Oct 2018 20:42:47 +0000 (16:42 -0400)
committerSam Nelson <sam.nelson@ti.com>
Tue, 23 Oct 2018 01:22:49 +0000 (21:22 -0400)
Signed-off-by: Sam Nelson <sam.nelson@ti.com>
packages/ti/sdo/ipc/family/am65xx/InterruptHost.c
packages/ti/sdo/ipc/family/am65xx/InterruptR5f.c
packages/ti/sdo/ipc/family/am65xx/NotifyDriverMbx.c

index 8c75141fcc1f08cdb9f1b7a7c702117abeb6713f..7ca78e92fc5deb3d40698d78b849e8acaac0f973 100644 (file)
@@ -48,8 +48,8 @@
 #include "package/internal/InterruptHost.xdc.h"
 
 /* Register access method. */
-#define REG16(A)   (*(volatile UInt16 *) (A))
-#define REG32(A)   (*(volatile UInt32 *) (A))
+#define REG16(A)   (*(volatile UInt16 *) ((uintptr_t)A))
+#define REG32(A)   (*(volatile UInt32 *) ((uintptr_t)A))
 
 #define PROCID(IDX)               (InterruptHost_procIdTable[(IDX)])
 #define MBX_TABLE_IDX(SRC, DST)   ((PROCID(SRC) * InterruptHost_NUM_CORES) + \
index 7a6ffb504b5bb466d8ef7925ee992e4e344cc39b..158316c781e1a0647baacf903f7cc63753e07720 100644 (file)
@@ -49,8 +49,8 @@
 #include "package/internal/InterruptR5f.xdc.h"
 
 /* Register access method. */
-#define REG16(A)   (*(volatile UInt16 *) (A))
-#define REG32(A)   (*(volatile UInt32 *) (A))
+#define REG16(A)   (*(volatile UInt16 *) ((uintptr_t)A))
+#define REG32(A)   (*(volatile UInt32 *) ((uintptr_t)A))
 
 #define PROCID(IDX)               (InterruptR5f_procIdTable[(IDX)])
 #define MBX_TABLE_IDX(SRC, DST)   ((PROCID(SRC) * InterruptR5f_NUM_CORES) + \
index 4079163280c24bde330bd9f2ca8bc9913d06b321..dd9bb428e787901288b8cdb4af117569adc15a91 100644 (file)
@@ -61,8 +61,8 @@
 #define TEST_BIT(num,pos)           ((num) & (1u << (pos)))
 
 /* register access methods */
-#define REG16(A)        (*(volatile UInt16 *)(A))
-#define REG32(A)        (*(volatile UInt32 *)(A))
+#define REG16(A)        (*(volatile UInt16 *)((uintptr_t)A))
+#define REG32(A)        (*(volatile UInt32 *)((uintptr_t)A))
 
 #define MAILBOX_FIFOLENGTH 4
 #define PROCID(idx) (NotifyDriverMbx_procIdTable[(idx)])