Received: by mail.netbsd.org (Postfix, from userid 0) id 1513D63B123; Fri, 16 Jan 2009 10:28:26 +0000 (UTC) Received: from cvs.netbsd.org (unknown [IPv6:2001:4f8:4:7:2e0:81ff:fe25:eab4]) by mail.netbsd.org (Postfix) with ESMTP id 1C40F63B10C for ; Fri, 16 Jan 2009 10:28:25 +0000 (UTC) Received: by cvs.netbsd.org (Postfix, from userid 500) id F3310175D0; Fri, 16 Jan 2009 10:28:24 +0000 (UTC) From: Ben Harris Subject: CVS commit: src/sys/arch/arm/arm To: source-changes@NetBSD.org Reply-To: bjh21@netbsd.org Message-Id: <20090116102824.F3310175D0@cvs.netbsd.org> Date: Fri, 16 Jan 2009 10:28:24 +0000 (UTC) Sender: source-changes-owner@NetBSD.org List-Id: source-changes Precedence: list Module Name: src Committed By: bjh21 Date: Fri Jan 16 10:28:24 UTC 2009 Modified Files: src/sys/arch/arm/arm: lock_cas.S Log Message: Simplify the pre-ARMv6 code. Specifically: * Take advantage of conditional instructions to avoid branching. * Tweak register allocation to remove some MOVs from the debug code. * In the debug code, only the address of the counter varies between the success and failure cases, so make the rest of the code common. Also correct the initial comment: _lock_cas returns the old value, not a boolean. To generate a diff of this commit: cvs rdiff -r1.5 -r1.6 src/sys/arch/arm/arm/lock_cas.S Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.