[syslinux:lwip] lwip: fix timestamps, statistics functions
syslinux-bot for H. Peter Anvin
hpa at zytor.com
Fri Apr 22 20:05:50 PDT 2011
Commit-ID: 7af49ffe77f0ed6ea134a15ed2fddcf9dd0823e6
Gitweb: http://syslinux.zytor.com/commit/7af49ffe77f0ed6ea134a15ed2fddcf9dd0823e6
Author: H. Peter Anvin <hpa at zytor.com>
AuthorDate: Fri, 18 Sep 2009 13:38:50 -0700
Committer: Eric W. Biederman <ebiederm at xmission.com>
CommitDate: Tue, 12 Apr 2011 14:40:53 -0700
lwip: fix timestamps, statistics functions
Add bits needed to support timestamps and stats functions.
Signed-off-by: H. Peter Anvin <hpa at zytor.com>
Signed-off-by: Eric W. Biederman <ebiederm at xmission.com>
---
core/lwip/src/include/arch/cc.h | 6 ++++++
core/lwip/src/include/arch/sys_arch.h | 1 +
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 065afa8..add3658 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 7bae904..8912620 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
More information about the Syslinux-commits
mailing list