From owner-freebsd-sparc64@FreeBSD.ORG Sat Aug 27 13:37:14 2005 Return-Path: X-Original-To: freebsd-sparc64@freebsd.org Delivered-To: freebsd-sparc64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5D59A16A41F for ; Sat, 27 Aug 2005 13:37:14 +0000 (GMT) (envelope-from marius@newtrinity.zeist.de) Received: from newtrinity.zeist.de (newtrinity.zeist.de [217.24.217.8]) by mx1.FreeBSD.org (Postfix) with ESMTP id D8BDD43D5A for ; Sat, 27 Aug 2005 13:37:12 +0000 (GMT) (envelope-from marius@newtrinity.zeist.de) Received: from newtrinity.zeist.de (localhost [127.0.0.1]) by newtrinity.zeist.de (8.12.11/8.12.11/ZEIST.DE) with ESMTP id j7RDbAxY096969; Sat, 27 Aug 2005 15:37:11 +0200 (CEST) (envelope-from marius@newtrinity.zeist.de) Received: (from marius@localhost) by newtrinity.zeist.de (8.12.11/8.12.10/Submit) id j7RDb4WB096968; Sat, 27 Aug 2005 15:37:04 +0200 (CEST) (envelope-from marius) Date: Sat, 27 Aug 2005 15:37:04 +0200 From: Marius Strobl To: "R. Imura" Message-ID: <20050827153704.H19225@newtrinity.zeist.de> References: <200508110931.13802.john@jnielsen.net> <200508201453.40439.jhb@FreeBSD.org> <20050823081517.GB4956@rndsoft.co.kr> <200508230911.18163.john@jnielsen.net> <20050824010147.GD4956@rndsoft.co.kr> <20050824143940.GA65078%imura@ryu16.org> <20050824191437.A36508@newtrinity.zeist.de> <20050827055841.GB83681%imura@ryu16.org> <20050827145503.G19225@newtrinity.zeist.de> <20050827132008.GA28954%imura@ryu16.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <20050827132008.GA28954%imura@ryu16.org>; from imura@ryu16.org on Sat, Aug 27, 2005 at 10:20:08PM +0900 X-AntiVirus: checked by AntiVir Milter (version: 1.1.0-7; AVE: 6.31.1.0; VDF: 6.31.1.186; host: newtrinity.zeist.de) Cc: John Nielsen , freebsd-sparc64@freebsd.org Subject: Re: "fast data access mmu miss" on kernels w/o "makeoptions DEBUG=-g" X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 27 Aug 2005 13:37:14 -0000 On Sat, Aug 27, 2005 at 10:20:08PM +0900, R. Imura wrote: > On Sat, Aug 27, 2005 at 02:55:03PM +0200, Marius Strobl wrote: > > On Sat, Aug 27, 2005 at 02:58:41PM +0900, R. Imura wrote: > > > Hi, > > > > > > On Wed, Aug 24, 2005 at 07:14:37PM +0200, Marius Strobl wrote: > > > > > > smbfs does not work on sparc64 as smbfs assumes it runs on > > > > > > architectures that allow on-aligned memory access. It also needs > > > > > > big-endian clean up too.(See sys/mchain.h) > > > > > > > > > > To begin with, you might want this patch. :) > > > > > > > > > > > > > You probably should go the NetBSD route and change the consumers > > > > of these macros to use the byteorder(9) functions like htole16(9) > > > > directly. Btw., NetBSD seems to also have fixed the alignment > > > > issues. > > > > > > I was too rushed that these macros in my patch are no longer used > > > in our system, so we can safe to remove them. > > > > > > Fixes are done in 3 years ago. > > > http://docs.freebsd.org/cgi/mid.cgi?200212161620.gBGGK6uX080655 > > > > > > > That commit only dealt with the kernel part, these macros are still > > used in the userland part: > > > grep -r htoles /usr/src/contrib/smbfs/* > > /usr/src/contrib/smbfs/lib/smb/nb_name.c:#define NBENCODE(c) (htoles((u_short)(((u_char)(c) >> 4) | \ > > > > Marius > > I see. :) > Then, could you test this patch? > While it should fix compilation on sparc64 it still doesn't deal with the alignment issues. Please have a look at the changes that went into the respective kernel and userland parts in NetBSD if you want to get it working on FreeBSD/sparc64, too. Marius