RE: [Linux-ia64] unaligned access?

From: Pereira, D LailaX E <d.lailax.e.pereira_at_intel.com>
Date: 2001-11-29 04:56:44
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;
	...
}

??

d'laila 



On Wed, 28 Nov 2001, Pereira, D LailaX E wrote:

> HI 
> While running the following  code, 
> define WRITE_CAUSED_SIGBUS_or_SEGV \
>         (((*(unsigned long*)scp->sc_ip)>>21)&1)
> ....
> if (WRITE_CAUSED_SIGBUS_or_SEGV){
> ........
> }
> else {
> .........
> }
> 
> I get the following error on the "if " statement: 
> stress.udp(31438): unaligned access to
> 0x4000000000003541,ip=0x4000000000015fc1
> Please let me know what is wrong with the macro:
> define WRITE_CAUSED_SIGBUS_or_SEGV \
>         (((*(unsigned long*)scp->sc_ip)>>21)&1)
Received on Wed Nov 28 09:56:50 2001

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