From owner-freebsd-hackers@FreeBSD.ORG Wed Aug 22 21:40:42 2012 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B69EB106566B; Wed, 22 Aug 2012 21:40:42 +0000 (UTC) (envelope-from danismostlikely@gmail.com) Received: from mail-vc0-f182.google.com (mail-vc0-f182.google.com [209.85.220.182]) by mx1.freebsd.org (Postfix) with ESMTP id 4B8DF8FC16; Wed, 22 Aug 2012 21:40:41 +0000 (UTC) Received: by vcbgb22 with SMTP id gb22so107979vcb.13 for ; Wed, 22 Aug 2012 14:40:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=iw3scMSyeVeMUjHXFO8Je+w4ufXx8LZa9HoeegKeoKo=; b=LIP84mqwLBPqyNkkF2vBfcqpTDcEY4A89mVyl/kxFiIM3iLI31O0jygMJ10J8HpnIh KxBOKuUk3/sAyR2vuWCwQrU7LkIHZa7VMn77GbaLXpofvT0BkDXScpHmuACwTIkKXtNe Ro2hFp1dNz4HSuuryP2siPUY4YO4xRPJyTG1+dFVIZiGlI95x3i3kniiVTsuE11cMuVi s0h3+4yNjlu7alIPx64VWXG6D7ZBqPiwipaQVYYEWX0IHLt5HJONHBITZHS30KoYospG 7i+M7B6IIGwBE2baT/W7nGoP8bvFK4pZ9sHq1zBmhcxLkCKU8xfaXXYZsx4G3DOrq9mF PNgQ== MIME-Version: 1.0 Received: by 10.58.211.71 with SMTP id na7mr19601288vec.39.1345671641363; Wed, 22 Aug 2012 14:40:41 -0700 (PDT) Received: by 10.58.91.169 with HTTP; Wed, 22 Aug 2012 14:40:41 -0700 (PDT) In-Reply-To: <50353C77.2070602@freebsd.org> References: <20120821084930.GM33100@deviant.kiev.zoral.com.ua> <50353C77.2070602@freebsd.org> Date: Wed, 22 Aug 2012 15:40:41 -0600 Message-ID: From: Dan McGregor To: Tijl Coosemans Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-hackers@freebsd.org Subject: Re: Build 32 bit binaries on amd64 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Aug 2012 21:40:42 -0000 On 22 August 2012 14:09, Tijl Coosemans wrote: > On 21-08-2012 17:04, Dan McGregor wrote: >> My solution is certainly fairly hacky, I just took inspiration from >> NetBSD. I wanted to see if it could be done. While I was there I did >> identify several files that should be common between i386 and amd64, >> such as exec.h. >> >> Since reading your email I started looking at the x86 common code, >> and have made some more code common; specifically asm.h ans >> ucontext.h. I'll be putting that on github shortly. >> >> Since it does look like tijl hasn't committed anything since March, >> I would like to co-operate and see what his plans were. The idea of >> merging the i386 and amd64 headers into a common area seems like a >> better idea to me. > > For now my goal was to merge headers that can be used by user code so > it can be compiled with -m32. Eventually, I think it would be nice to > merge all headers and install x86/ as machine/ for both i386 and amd64. > That would make the x86 headers similar to powerpc and mips headers > (and arm when 64bit support is added there). > > I think I still have one or two (untested) patches. I'll have a look at > it during the weekend. > That sounds very handy. I didn't know where you got to, so I've been plugging away at the same goal for the last couple of days. Is there anything specific I could help you with?