From owner-svn-src-projects@FreeBSD.ORG Thu May 12 03:15:40 2011 Return-Path: Delivered-To: svn-src-projects@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 50BE1106566B; Thu, 12 May 2011 03:15:40 +0000 (UTC) (envelope-from asmrookie@gmail.com) Received: from mail-yx0-f182.google.com (mail-yx0-f182.google.com [209.85.213.182]) by mx1.freebsd.org (Postfix) with ESMTP id 9A28E8FC15; Thu, 12 May 2011 03:15:39 +0000 (UTC) Received: by yxl31 with SMTP id 31so498985yxl.13 for ; Wed, 11 May 2011 20:15:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type :content-transfer-encoding; bh=hRgRbrXckwXM70D527ti7IVlBqiwAIJ0+T75TblHywo=; b=WDojGJ1mvrrSWbYY7NIPTMdhbzUNkxG/LK9dNcryWm7dT6tTnzMw9654A270LIb7kY 3dulvHr+pbjsE8duLFRcYXhoGPTG744muqSN/wUTIQLcvQvFQpTtT654oxVFfHHIb+6c J6DyKX4whuUZ0pHpp/jdwjVlP6636V1xV66DM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type :content-transfer-encoding; b=YXHqW51kNZUzRnIEBfiq4LbJ79+5sTCiOBqZrUash/2KYbasy8qYxrilqEAFrr7Xcu Hm5kVHJBaznfDOxCierhmyeWCpOHfQYEuGhkAGvwwlTScOcS+r6rTLgjDLhjT4RI3vKj CiyyXY1CvgpERAPtKlPvydPniEKf5Y5AAIdxs= MIME-Version: 1.0 Received: by 10.236.180.36 with SMTP id i24mr5635233yhm.305.1305170138772; Wed, 11 May 2011 20:15:38 -0700 (PDT) Sender: asmrookie@gmail.com Received: by 10.236.111.33 with HTTP; Wed, 11 May 2011 20:15:38 -0700 (PDT) In-Reply-To: <201105080039.p480doiZ021493@svn.freebsd.org> References: <201105080039.p480doiZ021493@svn.freebsd.org> Date: Thu, 12 May 2011 05:15:38 +0200 X-Google-Sender-Auth: zGanDpIW3NgBZIu1JyKqMk7wSHo Message-ID: From: Attilio Rao To: src-committers@freebsd.org, svn-src-projects@freebsd.org, Bruce Evans , Warner Losh , Artem Belevich , Oleksandr Tymoshenko Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: Subject: Re: svn commit: r221614 - projects/largeSMP/sys/powerpc/include X-BeenThere: svn-src-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the src " projects" tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 May 2011 03:15:40 -0000 2011/5/8 Attilio Rao : > Author: attilio > Date: Sun May =C2=A08 00:39:49 2011 > New Revision: 221614 > URL: http://svn.freebsd.org/changeset/base/221614 > > Log: > =C2=A0All architectures define the size-bounded types (uint32_t, uint64_t= , etc.) > =C2=A0starting from base C types (int, long, etc). mips seems having the same issue, so here is my patch: http://www.freebsd.org/~attilio/largeSMP/mips-atomic.diff Please note that mips defines the 16/8 bits functions within support.S but it really hadn't do (I didn't rewrite as inline functions because I wasn't confident enough with modifying mips assembly). In this patch I removed the 8-bits operations like they aren't used anywhere and actually they weren't complete at all. I tried almost all the MIPS config file with all modules and they compile fine with this patch. I have cpumask_t -> cpuset_t conversion ready and I'd commit to this tree just after someone has tested this atomic alone. Thanks, Attilio --=20 Peace can only be achieved by understanding - A. Einstein