From d2a37668079e87e00b2a8ee8e29eaedde6729d40 Mon Sep 17 00:00:00 2001 From: Chris Ring Date: Fri, 15 Mar 2013 10:36:09 -0700 Subject: [PATCH 1/1] OMAP5: Use #define'd VRING0 addr and remove unnecessary #ifdef Minor code cleanup. There is already a #define with the VRING0 address, but there is a block of code that's not using that #define, rather it's hardcoding the address. Switching to the #define'd address enables further cleanup in mapPAtoVA(). --- packages/ti/ipc/family/omap54xx/VirtQueue.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/packages/ti/ipc/family/omap54xx/VirtQueue.c b/packages/ti/ipc/family/omap54xx/VirtQueue.c index ab01173..6916a93 100644 --- a/packages/ti/ipc/family/omap54xx/VirtQueue.c +++ b/packages/ti/ipc/family/omap54xx/VirtQueue.c @@ -211,11 +211,7 @@ extern Int OffloadM3_processSysM3Tasks(UArg msg); static inline Void * mapPAtoVA(UInt pa) { -#ifndef DSPC674 - return (Void *)((pa & 0x000fffffU) | 0xa0000000U); -#else - return (Void *)((pa & 0x000fffffU) | 0x9fb00000U); -#endif + return (Void *)((pa & 0x000fffffU) | IPC_MEM_VRING0); } static inline UInt mapVAtoPA(Void * va) -- 2.39.2