Subject: Re: CVS commit: src/sys/arch/powerpc/ibm4xx
To: Herb Peyerl <hpeyerl@netbsd.org>
From: Juergen Hannken-Illjes <hannken@eis.cs.tu-bs.de>
List: source-changes
Date: 11/26/2007 16:34:42
On Thu, Nov 22, 2007 at 01:33:08PM +0000, Herb Peyerl wrote:
> 
> Module Name:	src
> Committed By:	hpeyerl
> Date:		Thu Nov 22 13:33:08 UTC 2007
> 
> Modified Files:
> 	src/sys/arch/powerpc/ibm4xx: trap.c
> 
> Log Message:
> Optimize copyin/copyout to transfer as many words as possible before doing
> residual bytes. This improves small transfers. As a result, we can avoid
> doing bigcopyin/bigcopyout until len>1024 instead of len>256.
> 
> Reviewed by: simonb.
> 
> (everybody run, Herb's in the kernel again).

This breaks with alignment trap on the 1st copyout for evbppc/explora:

	kaddr=0x2fda88 udaddr=0xfffebff5 len=11

Trap is at this line:

	"   stw %[tmp],0(%[udaddr]);"       /* Store user word */

-- 
Juergen Hannken-Illjes - hannken@eis.cs.tu-bs.de - TU Braunschweig (Germany)