[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lwip-users] [Bug?]too many misaligned data access error
From: |
乔崇 |
Subject: |
[lwip-users] [Bug?]too many misaligned data access error |
Date: |
Wed, 5 Nov 2003 9:40:7 +0800 |
Dear Sir:
In etharp.c,ip_addr.h,icmp.c,inet.c,tcp_in.c.
Most misalignments relate to &ipaddr->addr,&tcphdr->seqno,&tcphdr->ackno.
By the way I use lwip in adi's BF533 dsp.
How to fix it?
//my cc.h:
#ifndef __CC_H__
#define __CC_H__
#define nr_printf uart_printf
#define BYTE_ORDER LITTLE_ENDIAN
typedef unsigned char u8_t;
typedef signed char s8_t;
typedef unsigned short u16_t;
typedef signed short s16_t;
//yangye 2003-1-22
//int is 32bit long in skyeye
typedef unsigned int u32_t;
typedef signed int s32_t;
typedef u32_t mem_ptr_t;
#define PACK_STRUCT_FIELD(x) x
#define PACK_STRUCT_STRUCT
#define PACK_STRUCT_BEGIN
#define PACK_STRUCT_END
#define PACK_STRUCT_USE_INCLUDES 1
#define LWIP_PLATFORM_DIAG(x) do {nr_printf x;} while(0)
#define LWIP_PLATFORM_ASSERT(x) do {nr_printf("Assertion \"%s\" failed at line
%d in %s\n", \
x, __LINE__, __FILE__); } while(0)
#endif /* __CC_H__ */
//my bpstruct.h:
#pragma pack(1)
//my epstruct.h:
#pragma pack()
address@hidden
2003-11-05