diff options
author | Eric W. Biederman <ebiederm@xmission.com> | 2011-04-08 04:38:59 -0700 |
---|---|---|
committer | Eric W. Biederman <ebiederm@xmission.com> | 2011-04-08 14:35:01 -0700 |
commit | 79519817d7949054e4934d166e21d275362eddd9 (patch) | |
tree | 89a4187ed533d9c28db1dcf45487212ed1d92a8c /core/lwip/src/include/arch/cc.h | |
parent | 0c26be28ddd5b63083ad0fbe98625458a61df340 (diff) | |
download | syslinux-79519817d7949054e4934d166e21d275362eddd9.tar.gz syslinux-79519817d7949054e4934d166e21d275362eddd9.tar.xz syslinux-79519817d7949054e4934d166e21d275362eddd9.zip |
lwip: Minimal configuration to get lwip building in syslinux
- Disable all of lwip advanced features
- Redeclare kaboom because including core.h causes the
artificial namespace conflict on lfree.
t
lfree is a global sylinux function and lwip static variable.
Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
Diffstat (limited to 'core/lwip/src/include/arch/cc.h')
-rw-r--r-- | core/lwip/src/include/arch/cc.h | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/core/lwip/src/include/arch/cc.h b/core/lwip/src/include/arch/cc.h new file mode 100644 index 00000000..0df87f7d --- /dev/null +++ b/core/lwip/src/include/arch/cc.h @@ -0,0 +1,36 @@ +#ifndef __LWIP_ARCH_CC_H__ +#define __LWIP_ARCH_CC_H__ + +#include <klibc/compiler.h> +#include <inttypes.h> +#include <errno.h> +#include <stdlib.h> + +#define BYTE_ORDER LITTLE_ENDIAN + +typedef uint8_t u8_t; +typedef int8_t s8_t; +typedef uint16_t u16_t; +typedef int16_t s16_t; +typedef uint32_t u32_t; +typedef int32_t s32_t; + +typedef uintptr_t mem_ptr_t; + +extern __noreturn _kaboom(void); +#define kaboom() _kaboom() + +#define PACK_STRUCT_STRUCT __packed + +#define LWIP_PLATFORM_DIAG(x) ((void)0) /* For now... */ +#define LWIP_PLATFORM_ASSERT(x) kaboom() + +#define U16_F PRIu16 +#define S16_F PRId16 +#define X16_F PRIx16 +#define U32_F PRIu16 +#define S32_F PRId16 +#define X32_F PRIx16 +#define SZT_F "zu" + +#endif /* __LWIP_ARCH_CC_H__ */ |