From owner-freebsd-current@FreeBSD.ORG Thu Jul 26 00:59:24 2007 Return-Path: Delivered-To: current@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2CAFF16A418; Thu, 26 Jul 2007 00:59:24 +0000 (UTC) (envelope-from grehan@freebsd.org) Received: from dommail.onthenet.com.au (dommail.OntheNet.com.au [203.13.70.57]) by mx1.freebsd.org (Postfix) with ESMTP id 8373413C428; Thu, 26 Jul 2007 00:59:23 +0000 (UTC) (envelope-from grehan@freebsd.org) Received: from [192.168.0.13] (dsl-63-249-90-35.cruzio.com [63.249.90.35]) by dommail.onthenet.com.au (MOS 3.7.5a-GA) with ESMTP id CYW24255 (AUTH peterg@ptree32.com.au); Thu, 26 Jul 2007 10:46:22 +1000 (EST) Message-ID: <46A7EF19.9000106@freebsd.org> Date: Wed, 25 Jul 2007 17:47:21 -0700 From: Peter Grehan User-Agent: Thunderbird 1.5.0.12 (Macintosh/20070509) MIME-Version: 1.0 To: Maxim Sobolev , Marcel Moolenaar Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: current@FreeBSD.org, peter@FreeBSD.org, cognet@freebsd.org Subject: Re: installworld breaks my FreeBSD/powerpc system!!! X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: grehan@freebsd.org List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Jul 2007 00:59:24 -0000 >> > I think it's a mmap(2) problem, rather than a libc/ld-elf problem. I >> > suspect >> > that the peter@'s change to not align arguments is causing the problem. Yes and no :) ppc is 32-bit/big-endian which doesn't sit too nice for 64-bit syscall returns and FreeBSD's td_retval[0|1] scheme. There is some special-case code in powerpc/trap.c that obscurely catches these cases and swaps the retvals to match the ppc calling convention. With mmap (and others) moving from the indirect _syscall() to a direct call, that code fragment needs to be updated and the backward-compat cases handled. I'll see if I can knock up something and test it. arm/be will have the same issue, Olivier cc'd. later, Peter.