From owner-freebsd-mips@FreeBSD.ORG Tue Apr 24 06:35:43 2012 Return-Path: Delivered-To: freebsd-mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 13271106564A; Tue, 24 Apr 2012 06:35:43 +0000 (UTC) (envelope-from c.jayachandran@gmail.com) Received: from mail-wg0-f50.google.com (mail-wg0-f50.google.com [74.125.82.50]) by mx1.freebsd.org (Postfix) with ESMTP id 46D428FC0C; Tue, 24 Apr 2012 06:35:42 +0000 (UTC) Received: by wgbds12 with SMTP id ds12so276236wgb.31 for ; Mon, 23 Apr 2012 23:35:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=3WxFbshD+8rnPM6LkI+nTR0we9toe03+AGfmaP+EVSA=; b=KydIpHJOvylbKNw8AU6YyKR/28JsP6++owbBH7D3VeZ4V8J66L9Kxii1Jks/vgVl1j SghZUF/wD/CkeltrvgN5wcBj1uaWPJMElkyZPb8LsXjn6jSOkHD8xx39UvPRwYIiuIUY YHVYHY6d6hDZyQzySsJDqXX7r/5mdUgLsVpNjNslgskDFXFeW3p95TULhP9ynSeO14Yc 5ZQgHDWJz3t6d91VidYqbRgVBafmb9lCvTs8YRBHH0Ofqygsb4+Y7Z7fF14cU9S9ts0Z 0qmU2lMaOLSkMkkcTZw1fqriTGtnp/DDBZM8f0+CijlVje3YUT8jX83Mp+qV4NGnLfQO 8TJA== MIME-Version: 1.0 Received: by 10.180.102.129 with SMTP id fo1mr19896276wib.6.1335249340605; Mon, 23 Apr 2012 23:35:40 -0700 (PDT) Sender: c.jayachandran@gmail.com Received: by 10.216.60.71 with HTTP; Mon, 23 Apr 2012 23:35:40 -0700 (PDT) In-Reply-To: <201204170722.q3H7ME6A070934@svn.freebsd.org> References: <201204170722.q3H7ME6A070934@svn.freebsd.org> Date: Tue, 24 Apr 2012 12:05:40 +0530 X-Google-Sender-Auth: 8-7zcALqxC0FQin-Mef0oxQgcak Message-ID: From: "Jayachandran C." To: Jason Evans Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-mips@freebsd.org Subject: Re: svn commit: r234370 - in head: contrib/jemalloc contrib/jemalloc/doc contrib/jemalloc/include contrib/jemalloc/include/jemalloc contrib/jemalloc/include/jemalloc/internal contrib/jemalloc/src inclu... X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 Apr 2012 06:35:43 -0000 On Tue, Apr 17, 2012 at 12:52 PM, Jason Evans wrote: > Author: jasone > Date: Tue Apr 17 07:22:14 2012 > New Revision: 234370 > URL: http://svn.freebsd.org/changeset/base/234370 [....] > +diff --git a/include/jemalloc/jemalloc_FreeBSD.h b/include/jemalloc/jema= lloc_FreeBSD.h > +new file mode 100644 > +index 0000000..2c5797f > +--- /dev/null > ++++ b/include/jemalloc/jemalloc_FreeBSD.h > +@@ -0,0 +1,76 @@ [....] > ++#ifdef __mips__ > ++# =A0define LG_SIZEOF_PTR =A0 =A0 =A0 =A0 =A0 =A0 =A0 2 > ++#endif This breaks 64-bit mips platforms. I have a simple patch that fixes this at http://people.freebsd.org/~jchandra/jemalloc.patch Another possible fix suggested by Juli is to do #define LG_SIZEOF_PTR _MIPS_SZPTR Can you please check-in one of these? If you are busy, I can do the check-in if you approve the changes. Thanks, JC.