aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2009-09-18 13:38:50 -0700
committerEric W. Biederman <ebiederm@xmission.com>2011-04-12 14:40:53 -0700
commit7af49ffe77f0ed6ea134a15ed2fddcf9dd0823e6 (patch)
treecbd8188653c49b6c8e4388376fe27b71010b73b0 /core
parent5272cd63783fa992c5cb46a901adf4b28f1ad3e6 (diff)
downloadsyslinux-7af49ffe77f0ed6ea134a15ed2fddcf9dd0823e6.tar.gz
syslinux-7af49ffe77f0ed6ea134a15ed2fddcf9dd0823e6.tar.xz
syslinux-7af49ffe77f0ed6ea134a15ed2fddcf9dd0823e6.zip
lwip: fix timestamps, statistics functions
Add bits needed to support timestamps and stats functions. Signed-off-by: H. Peter Anvin <hpa@zytor.com> Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
Diffstat (limited to 'core')
-rw-r--r--core/lwip/src/include/arch/cc.h6
-rw-r--r--core/lwip/src/include/arch/sys_arch.h1
2 files changed, 7 insertions, 0 deletions
diff --git a/core/lwip/src/include/arch/cc.h b/core/lwip/src/include/arch/cc.h
index 065afa84..add36589 100644
--- a/core/lwip/src/include/arch/cc.h
+++ b/core/lwip/src/include/arch/cc.h
@@ -6,6 +6,7 @@
#include <errno.h>
#include <stdlib.h>
#include <kaboom.h>
+#include <stdio.h>
#define BYTE_ORDER LITTLE_ENDIAN
@@ -20,8 +21,13 @@ typedef uintptr_t mem_ptr_t;
#define PACK_STRUCT_STRUCT __packed
+#if 1
+#define LWIP_PLATFORM_DIAG(x) do { printf x; } while(0)
+#define LWIP_PLATFORM_ASSERT(x) do { printf("%s", (x)); kaboom(); } while(0)
+#else
#define LWIP_PLATFORM_DIAG(x) ((void)0) /* For now... */
#define LWIP_PLATFORM_ASSERT(x) kaboom()
+#endif
#define U16_F PRIu16
#define S16_F PRId16
diff --git a/core/lwip/src/include/arch/sys_arch.h b/core/lwip/src/include/arch/sys_arch.h
index 7bae9048..89126208 100644
--- a/core/lwip/src/include/arch/sys_arch.h
+++ b/core/lwip/src/include/arch/sys_arch.h
@@ -11,6 +11,7 @@ typedef struct mailbox *sys_mbox_t;
typedef struct thread *sys_thread_t;
#define sys_sem_signal(x) sem_up(x)
+#define sys_now ms_timer
#define SYS_MBOX_NULL NULL
#define SYS_SEM_NULL NULL