Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 28 Nov 2001 14:59:48 -0800 (PST)
From:      Paul Herman <pherman@frenchfries.net>
To:        John Baldwin <jhb@FreeBSD.org>
Cc:        FreeBSD Alpha <freebsd-alpha@FreeBSD.org>
Subject:   RE: NFS Kernel Panic.  Unaligned Access?
Message-ID:  <200111282259.fASMxm802241@tick.sc.omation.com>
In-Reply-To: <XFMail.011128144730.jhb@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 28 Nov 2001, John Baldwin wrote:

> The *(tl + 1) is the problem I think.  What is the type of 'tl'?
>
>         register u_int32_t *tl;
>
> Ah yes, definitely the problem here.

I see.  Ah thanks.  I'm not used to these types of problems.
Would a possible fix be something like:

#define ALLIGNED_GET_SECOND_INT32_FROM_LONG(x) \
  (u_int32_t)(((*(long *)(tl)) >> 32) & 0xffffff)

and then...

   eof = fxdr_unsigned(int,ALLIGNED_GET_SECOND_INT32_FROM_LONG(tl));

:-)

Like I said, I'm new at this game.  Is there perhaps a better, more
standard way?  Just curious, I don't want this server to crash any
more.  :-)

-Paul.


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-alpha" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200111282259.fASMxm802241>