Subject: Re: unaligned access during bootup
To: None <martin@duskware.de>
From: Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>
List: port-alpha
Date: 03/01/2007 21:45:15
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?

Anyway, if no one objects I'll commit the attached patch
after I dig out my DEC3000/300 from closet to test it.
---
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 */