From owner-freebsd-alpha Wed Nov 28 14:59:58 2001 Delivered-To: freebsd-alpha@freebsd.org Received: from mta1x04.coxmail.com (cm-fe1.coxmail.com [206.157.231.20]) by hub.freebsd.org (Postfix) with ESMTP id BD26437B405; Wed, 28 Nov 2001 14:59:51 -0800 (PST) Received: from tick.sc.omation.com ([64.58.167.31]) by mta1x04.coxmail.com (InterMail vK.4.03.04.01 201-232-130-101 license c271d808eeaddc9d652e7c0b1383e8cc) with ESMTP id <20011128230257.DRHJ22114.mta1x04@tick.sc.omation.com>; Wed, 28 Nov 2001 18:02:57 -0500 Received: from tick.sc.omation.com (tick.sc.omation.com [192.168.128.2]) by tick.sc.omation.com (8.11.6/8.11.6) with ESMTP id fASMxm802241; Wed, 28 Nov 2001 14:59:49 -0800 (PST) (envelope-from pherman@frenchfries.net) Message-Id: <200111282259.fASMxm802241@tick.sc.omation.com> Date: Wed, 28 Nov 2001 14:59:48 -0800 (PST) From: Paul Herman To: John Baldwin Cc: FreeBSD Alpha Subject: RE: NFS Kernel Panic. Unaligned Access? In-Reply-To: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-alpha@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org 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