public inbox for linux-ia64@vger.kernel.org
 help / color / mirror / Atom feed
* a question about memory access on IA64
@ 2004-01-16  3:03 liuduo
  2004-01-16  3:16 ` David Mosberger
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: liuduo @ 2004-01-16  3:03 UTC (permalink / raw)
  To: linux-ia64

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
===================


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2004-01-16  7:12 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-01-16  3:03 a question about memory access on IA64 liuduo
2004-01-16  3:16 ` David Mosberger
2004-01-16  3:56 ` liuduo
2004-01-16  4:16 ` Martin Pool
2004-01-16  4:59 ` David Mosberger
2004-01-16  7:01 ` Martin Pool
2004-01-16  7:12 ` liuduo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox