a question about memory access on IA64

From: liuduo <liuduo_at_sinosoft.com.cn>
Date: 2004-01-16 14:03:00
Dear Sir:
nice to see you !
here is a problem about accessing memory on IA64 as follows,
 we define a structrue is :
typedef struct b{
unsigned short  b1;
unsigned short  b2;
unsigned char   b3;
unsigned char  b4;
unsigned char  b5;
unsigned char  b6;
}B;

typedef struct  a{
struct b bb[512];
int c;}A;

when we use  the struct A on IA64, the segmentation fault occurs ,
and then we modify the struct A as follows :
typedef struct  a{
int c;
struct b bb[512];
}A;
we can use it normally .
can you  explain why ?
thanks a lot , and expect your reply urgently

yours : calis






-- 
=======================================
Liu duo
tel:(010)62570007-509
email:liuduo@sinosoft.com.cn
Sinosoft Software.Co.Ltd.
Esmpro Group.Secic Department
=======================================


-
To unsubscribe from this list: send the line "unsubscribe linux-ia64" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Received on Thu Jan 15 22:00:44 2004

This archive was generated by hypermail 2.1.8 : 2005-08-02 09:20:21 EST