public inbox for linux-ia64@vger.kernel.org
 help / color / mirror / Atom feed
* [Linux-ia64] do me a favor
@ 2001-11-13  0:57 Qiu HongBing
  2001-11-13  1:20 ` Dan Pop
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: Qiu HongBing @ 2001-11-13  0:57 UTC (permalink / raw)
  To: linux-ia64

Hi,

I'm Qiu HongBing. Now I process some project from IA32 to IA64 on Linux. Now
I have one question. If someone know it why and have spare time, Please help
me.Thanks a lot.

My problem is as follows:

struct aa{
unsigned short a;
unsigned short b;
unsigned short c;
unsigned short d;
unsigned int e;
unsigned int f;
unsigned int g;
unsigned int h;
unsigned short i;
}
...
struct aa *a1;
...

fun1(char *,unsigned int *,char *,char *,unsigned int * temp,unsigned int *)
{
...
*temp\x10;
...
}
...

fun1(a,b,c,d,&a1->b,e);
...

On IA64 Linux RedHat 7.1(2.4.3-3), when the program run to
fun1(a,b,c,d,&a1->b,e), the kernel write into syslog some message which is
"Nov  5 10:12:02 sdv2 kernel: ESMmlx(7837): unaligned access to
0x600000000001684c, ip=0x2000000000624370".

But if I modify the source as follows and it is OK. I dont know why. So I
want to get some help to solve the real cause.

...
{
    unsigned int tt;
    tt¡->b;

    fun1(a,b,c,d,&a1->b,e);

    a1->b=tt;
}
...

    That's all.






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

end of thread, other threads:[~2001-11-13 15:30 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-11-13  0:57 [Linux-ia64] do me a favor Qiu HongBing
2001-11-13  1:20 ` Dan Pop
2001-11-13  1:59 ` Qiu HongBing
2001-11-13  2:11 ` Tom King
2001-11-13  4:12 ` Qiu HongBing
2001-11-13 10:04 ` Andreas Schwab
2001-11-13 10:11 ` Qiu HongBing
2001-11-13 11:26 ` Andreas Schwab
2001-11-13 15:30 ` n0ano

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