From owner-freebsd-arch@FreeBSD.ORG Thu Oct 28 07:44:23 2010 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AD470106566B; Thu, 28 Oct 2010 07:44:23 +0000 (UTC) (envelope-from asmrookie@gmail.com) Received: from mail-qy0-f175.google.com (mail-qy0-f175.google.com [209.85.216.175]) by mx1.freebsd.org (Postfix) with ESMTP id 33B938FC15; Thu, 28 Oct 2010 07:44:22 +0000 (UTC) Received: by qyk7 with SMTP id 7so4563229qyk.13 for ; Thu, 28 Oct 2010 00:44:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:sender:received :in-reply-to:references:date:x-google-sender-auth:message-id:subject :from:to:cc:content-type:content-transfer-encoding; bh=ROkFIqfTEI+Kcl1h5KUam3oRDQyT0tSYNC3h5tQBOjQ=; b=sQ8CFuD+fLo5KAPNU4MuQ6KlQt2IFOAiSPJny3fDvumhSjQy9Q/lzDUpXajOM50Zd9 GXh7HnKFptDxwX2GMONsC6Emw2wAuO6Om/9OD6t34kvzb258hZ/HGuXl2ZgoMkDaKA3H +v2nP4yMUj8zkRii/Zs1l0V+8Mee+RkRUi1mI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; b=FQ3l6Vs2YVeodzWCv+dmDgjR8hHdPSwWccI2rhdFStxSW+j8a/tnADQdYCYT5Jz0ai td+kGFP2HgwoEPnKovp7rWIGJZbe9anDUvxBQ6apIZB1BS0NWj9Ct6Dn98VkWeF/G7re ixkZEzCAzJc73ciHQua5z9PDRw0JbOFGCslDQ= MIME-Version: 1.0 Received: by 10.229.222.19 with SMTP id ie19mr8096703qcb.198.1288251861490; Thu, 28 Oct 2010 00:44:21 -0700 (PDT) Sender: asmrookie@gmail.com Received: by 10.229.237.9 with HTTP; Thu, 28 Oct 2010 00:44:21 -0700 (PDT) In-Reply-To: <201010271355.40685.jhb@freebsd.org> References: <201010271355.40685.jhb@freebsd.org> Date: Thu, 28 Oct 2010 09:44:21 +0200 X-Google-Sender-Auth: 1-6Zww2HuhaQhcG7TvK_w9NwKhA Message-ID: From: Attilio Rao To: John Baldwin , Warner Losh Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: freebsd-arch@freebsd.org Subject: Re: [PATCH] Headers for the x86 subtree X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 Oct 2010 07:44:23 -0000 2010/10/27 John Baldwin : > On Wednesday, October 27, 2010 10:56:06 am Attilio Rao wrote: >> This patch should convert a (simple and 100% shared between amd64 and >> i386 header) under the x86 sub-tree. Please note that in this patch I >> "svn cp" the file from sys/amd64/include/mptable.h into >> sys/x86/include/mptable.h: >> http://www.freebsd.org/~attilio/headers-x86.diff >> >> This is someway a POC, that I really want to get in. The idea is >> simple and someway follows the pc98 case (even if not entirely): the >> files under machine/include/* became just mere stubs for x86/include/* >> contents and redirect there. >> This won't particulary help reducing the number of available files, >> but generally removing verbatim and would also be the way to go for >> handling MFCs. >> If you find this is the right way I'll commit the fix and start moving >> other files as time permits. > > No, we want to do this differently because we also want this to work in > userland. =C2=A0(e.g. I'd like to outright move mca.h to x86/include and = then use > '#include ' in both kernel and userland for it). =C2=A0We'd ne= ed some > special glue to setup an 'x86' symlink during a kernel build that points = to > @/x86/include as we do now to setup an 'i386' link for pc98 kernels. > > We'd also need to install the x86 headers into /usr/include during an > installworld. =C2=A0Warner has some more pointers on this I think. I spoke with Warner briefly about it. One question I'm having now, though, is how getting co-living of pc98 and x86 now, as we are basically overriding the same infrastructure (MACHINE_CPUARCH) in the i386/amd64 case? Do you have ideas about that? Thanks, Attilio --=20 Peace can only be achieved by understanding - A. Einstein