From owner-freebsd-alpha Sat Nov 9 13:10:23 2002 Delivered-To: freebsd-alpha@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CC54437B401; Sat, 9 Nov 2002 13:10:22 -0800 (PST) Received: from philotas.hosting.swbell.net (philotas.hosting.swbell.net [216.100.99.7]) by mx1.FreeBSD.org (Postfix) with ESMTP id 77EB543E75; Sat, 9 Nov 2002 13:10:22 -0800 (PST) (envelope-from alc@imimic.com) Received: from imimic.com (adsl-216-63-78-19.dsl.hstntx.swbell.net [216.63.78.19]) by philotas.hosting.swbell.net id QAA12192; Sat, 9 Nov 2002 16:10:05 -0500 (EST) [ConcentricHost SMTP Relay 1.14] Message-ID: <3DCD79AC.AAED8D2A@imimic.com> Date: Sat, 09 Nov 2002 15:10:04 -0600 From: "Alan L. Cox" Organization: iMimic Networking, Inc. X-Mailer: Mozilla 4.8 [en] (X11; U; Linux 2.4.2 i386) X-Accept-Language: en MIME-Version: 1.0 To: Jeff Roberson , Matthew Jacob , Andrew Gallatin , alpha@FreeBSD.ORG, alc@FreeBSD.ORG, John Baldwin Subject: Re: alpha: top of tree kernel blooie References: <20021109150359.B97372-100000@mail.chesapeake.net> <3DCD7244.DEEA7387@imimic.com> Content-Type: text/plain; charset=x-user-defined Content-Transfer-Encoding: 7bit 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 "Alan L. Cox" wrote: > ... > 2. Don't we compile by default for the older Alphas that lack byte > manipulation instructions? Thus, a byte store is implemented by a > read-modify-write sequence of instructions. Thus, two simultaneous > uma_dbg_alloc()s on adjacent locations in us_freelist could cause > corruption. > Specifically, here's the code sequence for the assignment of 255 to us_freelist[] in uma_dbg_alloc() when compiling for ev5: 47c: 0b 00 43 2c ldq_u t1,11(t2) 480: 2b 00 7b 23 lda t12,43(t12) 484: 42 00 5b 48 mskbl t1,t12,t1 488: ff ff 3f 20 lda t0,-1 48c: 61 01 3b 48 insbl t0,t12,t0 490: 01 04 22 44 or t0,t1,t0 494: 0b 00 23 3c stq_u t0,11(t2) Regards, Alan To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-alpha" in the body of the message