From owner-freebsd-ia64@FreeBSD.ORG Sun Oct 19 20:15:37 2008 Return-Path: Delivered-To: freebsd-ia64@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B22FA106569E for ; Sun, 19 Oct 2008 20:15:37 +0000 (UTC) (envelope-from xcllnt@mac.com) Received: from asmtpout019.mac.com (asmtpout019.mac.com [17.148.16.94]) by mx1.freebsd.org (Postfix) with ESMTP id 9E2F88FC13 for ; Sun, 19 Oct 2008 20:15:37 +0000 (UTC) (envelope-from xcllnt@mac.com) MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; charset=US-ASCII; format=flowed Received: from [192.168.1.95] (209-128-86-226.bayarea.net [209.128.86.226]) by asmtp019.mac.com (Sun Java(tm) System Messaging Server 6.3-7.03 (built Aug 7 2008; 32bit)) with ESMTPSA id <0K9000LNG5M0PS10@asmtp019.mac.com> for freebsd-ia64@freebsd.org; Sun, 19 Oct 2008 13:15:37 -0700 (PDT) Message-id: From: Marcel Moolenaar To: Christian Kandeler In-reply-to: <35C58F22-E133-49AB-923E-AE858802D389@mac.com> Date: Sun, 19 Oct 2008 13:15:36 -0700 References: <200810171319.38605.christian.kandeler@hob.de> <35C58F22-E133-49AB-923E-AE858802D389@mac.com> X-Mailer: Apple Mail (2.929.2) Cc: FreeBSD-IA64 Mailing List Subject: Re: Question about ia64_ap_startup() X-BeenThere: freebsd-ia64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the IA-64 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 19 Oct 2008 20:15:37 -0000 On Oct 19, 2008, at 9:52 AM, Marcel Moolenaar wrote: > > On Oct 17, 2008, at 4:19 AM, Christian Kandeler wrote: > >> Hello, >> >> I've been looking at the implementation of ia64_ap_startup() and it >> seems to me that the "ap_awake++" statement has a rather obvious race >> condition. Shouldn't one of the atomic macros be used here instead? >> Or am I missing something? > > No, you're not missing anything. It should use an atomic > operation. Fixed in HEAD. Thanks, -- Marcel Moolenaar xcllnt@mac.com