Update for SA LLD 1.4.1
authorRaghu Nambiath <rnambiath@ti.com>
Fri, 3 Aug 2012 21:28:08 +0000 (17:28 -0400)
committerRaghu Nambiath <rnambiath@ti.com>
Fri, 3 Aug 2012 21:28:08 +0000 (17:28 -0400)
ti/runtime/netapi/build/Makefile
ti/runtime/netapi/src/osal.c

index 2b8920951ab16d72bac5eccb5b1e212f358892d3..62078e29d856f615e43d78ce141f4e9f7e8c2cef 100755 (executable)
@@ -39,7 +39,7 @@ COMMONSRCC = \
     tim64.c\\r
     timlist.c\r
 \r
-CFLAGS= $(DEBUG_FLAG) -I$(NETAPI_INC_DIR) -I.  -I $(SRCDIR) -I$(PDK_INSTALL_PATH) -I$(NWAL_INSTALL_PATH) -I$(PKTLIB_INSTALL_PATH) -I$(TRANS_SDK_INSTALL_PATH) -I$(QMSS_INC_DIR) -I$(CPPI_INC_DIR)  -D__ARMv7 -D_VIRTUAL_ADDR_SUPPORT -D__LINUX_USER_SPACE -D_LITTLE_ENDIAN=1 -DMAKEFILE_BUILD -pthread -D _GNU_SOURCE\r
+CFLAGS= $(DEBUG_FLAG) -I$(NETAPI_INC_DIR) -I.  -I $(SRCDIR) -I$(PDK_INSTALL_PATH) -I$(NWAL_INSTALL_PATH) -I$(PKTLIB_INSTALL_PATH) -I$(TRANS_SDK_INSTALL_PATH) -I$(QMSS_INC_DIR) -I$(CPPI_INC_DIR) -I$(SA_INSTALL_PATH) -D__ARMv7 -D_VIRTUAL_ADDR_SUPPORT -D__LINUX_USER_SPACE -D_LITTLE_ENDIAN=1 -DMAKEFILE_BUILD -pthread -D _GNU_SOURCE\r
 INCS = -I$(strip $(subst ;, -I,$(subst $(space),\$(space),$(INCDIR))))\r
 all: lib \r
 \r
index 329cf9682f58a26f9e359c2fc3d0b90cceabf28b..b6f4d3c44f6ad67569a071bd74b6af94684ab9bb 100755 (executable)
@@ -62,6 +62,7 @@
 #include <string.h>
 #include "netapi_util.h"
 #include "tools/module/netapimod.h"
+#include <ti/drv/sa/sa_osal.h>
 #define System_printf   printf
 
 uint32_t              Osal_qmss_MallocCounter =0;
@@ -562,7 +563,14 @@ void Osal_saEndMemAccess (void *blockPtr, uint32_t size)
     return;
 }
 
-
+int   Osal_saGetSysEndianMode(void)
+{
+#if defined( _BIG_ENDIAN ) 
+    return((int)sa_SYS_ENDIAN_MODE_BIG);
+#else
+    return((int)sa_SYS_ENDIAN_MODE_LITTLE);
+#endif
+}
 
 void Osal_pktLibBeginMemAccess(void* ptr, uint32_t size)
 {