summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 4afba08)
raw | patch | inline | side by side (parent: 4afba08)
author | Raghu Nambiath <rnambiath@ti.com> | |
Fri, 3 Aug 2012 21:28:08 +0000 (17:28 -0400) | ||
committer | Raghu Nambiath <rnambiath@ti.com> | |
Fri, 3 Aug 2012 21:28:08 +0000 (17:28 -0400) |
ti/runtime/netapi/build/Makefile | patch | blob | history | |
ti/runtime/netapi/src/osal.c | patch | blob | history |
index 2b8920951ab16d72bac5eccb5b1e212f358892d3..62078e29d856f615e43d78ce141f4e9f7e8c2cef 100755 (executable)
tim64.c\\r
timlist.c\r
\r
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
INCS = -I$(strip $(subst ;, -I,$(subst $(space),\$(space),$(INCDIR))))\r
all: lib \r
\r
index 329cf9682f58a26f9e359c2fc3d0b90cceabf28b..b6f4d3c44f6ad67569a071bd74b6af94684ab9bb 100755 (executable)
#include <string.h>
#include "netapi_util.h"
#include "tools/module/netapimod.h"
#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;
#define System_printf printf
uint32_t Osal_qmss_MallocCounter =0;
return;
}
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)
{
void Osal_pktLibBeginMemAccess(void* ptr, uint32_t size)
{