Subject: Re: unaligned access during bootup
To: Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>
From: Jason Thorpe <thorpej@shagadelic.org>
List: port-alpha
Date: 03/01/2007 09:22:33
On Mar 1, 2007, at 4:45 AM, Izumi Tsutsui wrote:

> martin@duskware.de wrote:
>
>> And of course a much better patch had already been posted here -  
>> sorry
>
> No problem, but I guess ldbu is a part of BWX, right?

Yes, ldbu is a BWX thing.

> Anyway, if no one objects I'll commit the attached patch
> after I dig out my DEC3000/300 from closet to test it.

Thanks!

> ---
> Izumi Tsutsui
>
>
> Index: locore.s
> ===================================================================
> RCS file: /cvsroot/src/sys/arch/alpha/alpha/locore.s,v
> retrieving revision 1.109
> diff -u -r1.109 locore.s
> --- locore.s	9 Feb 2007 21:55:01 -0000	1.109
> +++ locore.s	1 Mar 2007 12:41:53 -0000
> @@ -696,7 +696,9 @@
>  	ldl	t0, sched_whichqs		/* look for non-empty queue */
>  	bne	t0, 4f
>  2:	lda	t0, uvm
> -	ldl	t0, UVM_PAGE_IDLE_ZERO(t0)	/* should we zero some pages? */
> +	ldq_u	t1, UVM_PAGE_IDLE_ZERO(t0)
> +	lda	t0, UVM_PAGE_IDLE_ZERO(t0)	/* should we zero some pages? */
> +	extbl	t1, t0, t0
>  	beq	t0, 3f				/* nope. */
>  	CALL(uvm_pageidlezero)
>  3:	ldl	t0, sched_whichqs		/* look for non-empty queue */

-- thorpej