Re: Memory alignment of pointers for sparc64
On Thu, 5 Sep 2002, Bill Moseley wrote:
>
> Here's where it's blowing up:
>
> struct dev_ino *p;
> struct stat buf;
> ...
> // allocate a bit of memory from the pool.
> p = (struct dev_ino *) Mem_ZoneAlloc(
> sw->Index->entryZone,sizeof(struct dev_ino));
>
> p->dev = buf.st_dev; // *poof!* SIGBUS
>
> SIGBUS when the address ends in 4 or C but OK when it ends in 0 or 8.
Hum, that seems a bit surprising, what does your 'struct dev_ino' look
like?
Jason
Reply to: