From owner-cvs-all Sat Nov 16 9: 7:51 2002 Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3940337B401; Sat, 16 Nov 2002 09:07:50 -0800 (PST) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id DFA7243E8A; Sat, 16 Nov 2002 09:07:49 -0800 (PST) (envelope-from marcel@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.6/8.12.6) with ESMTP id gAGH56mV058240; Sat, 16 Nov 2002 09:05:06 -0800 (PST) (envelope-from marcel@repoman.freebsd.org) Received: (from marcel@localhost) by repoman.freebsd.org (8.12.6/8.12.6/Submit) id gAGH56v5058239; Sat, 16 Nov 2002 09:05:06 -0800 (PST) Message-Id: <200211161705.gAGH56v5058239@repoman.freebsd.org> From: Marcel Moolenaar Date: Sat, 16 Nov 2002 09:05:06 -0800 (PST) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/lib/libc_r/arch/ia64 _atomic_lock.S X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG marcel 2002/11/16 09:05:06 PST Modified files: lib/libc_r/arch/ia64 _atomic_lock.S Log: Implement the lock with a cmpxchg instruction instead of a xchg. Both are atomic, but the cmpxchg has memory ordering hints. We give this acquire semantics. NOTE: The unlock in libc_r is implemented by a "normal" assign statement. This is not correct on ia64 due to the memory ordering characteristics of the architecture. We need release semantics for an unlock. Revision Changes Path 1.2 +3 -2 src/lib/libc_r/arch/ia64/_atomic_lock.S To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message