RE: [Linux-ia64] unaligned access?

Dan Pop
2001-11-28T19:18:18Z

> scp->sc_ip is not properly aligned for an unsigned long access, i.e.
> it is not a multiple of 8.
>
> Dan
> But ,
> sc_ip field is defined as "unsigned long" in
> struct sigcontext {
> ...
> unsigned long sc_ip;
> ...
> }
>
> ??

The problem is not how it is defined, but what value it contains. In
your case, its value was not a multiple of 8, hence your problem.

Other people have already explained how to properly use its value to
get the relevant bundle address (clear the least significant 4 bits).
Do the proper masking in your macro and you should get the expected
results.

Dan