Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 27 Aug 2005 14:55:03 +0200
From:      Marius Strobl <marius@alchemy.franken.de>
To:        "R. Imura" <imura@ryu16.org>
Cc:        John Nielsen <john@jnielsen.net>, freebsd-sparc64@freebsd.org
Subject:   Re: "fast data access mmu miss" on kernels w/o "makeoptions DEBUG=-g"
Message-ID:  <20050827145503.G19225@newtrinity.zeist.de>
In-Reply-To: <20050827055841.GB83681%imura@ryu16.org>; from imura@ryu16.org on Sat, Aug 27, 2005 at 02:58:41PM %2B0900
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>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050827145503.G19225>