From owner-freebsd-arch@FreeBSD.ORG Tue Feb 16 00:10:38 2010 Return-Path: Delivered-To: arch@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BEAE71065695; Tue, 16 Feb 2010 00:10:38 +0000 (UTC) (envelope-from asmrookie@gmail.com) Received: from mail-iw0-f175.google.com (mail-iw0-f175.google.com [209.85.223.175]) by mx1.freebsd.org (Postfix) with ESMTP id 790C98FC0A; Tue, 16 Feb 2010 00:10:38 +0000 (UTC) Received: by iwn5 with SMTP id 5so2273517iwn.9 for ; Mon, 15 Feb 2010 16:10:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=ePfxVQhEFB/luhLu/2gZiKSz7NI1b61BP7vPhEdJc14=; b=KThGKPdkYHm9MZNIwDYkyAcgtI3mn81q34mDzFziGCzGBuFMyjaq92WOQWv68bsdFO Nx53fzQl9oLM1Owh1LTPecXAZncVQ0emcIovlWIZXTuG+lfSPxlbRw/dshyo4TZU56ac fIo3AfZ+vnS7hiRTFI0toapROAJHwfTVqOvsI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:date:x-google-sender-auth:message-id:subject :from:to:cc:content-type; b=TLJAkD74BO2R+ZmoNY017tcv4d+amTZsjNHQanrRDxZbbHdu98omGy6PLF9IqUBHeW pdzN6u7JzSwDlD8zucrL/nQWnwBK6l60xzSrkeLofuRNNNbpg208mUdHuFvPFWLv/oSx AIPnF7deMeCrtFgL+cMjY8UBgzA3rTUCAhHjY= MIME-Version: 1.0 Sender: asmrookie@gmail.com Received: by 10.231.145.70 with SMTP id c6mr4290355ibv.36.1266279037702; Mon, 15 Feb 2010 16:10:37 -0800 (PST) Date: Tue, 16 Feb 2010 01:10:37 +0100 X-Google-Sender-Auth: f927fe2b39503c93 Message-ID: <3bbf2fe11002151610l41526f55r5e60b5e46ce42b64@mail.gmail.com> From: Attilio Rao To: FreeBSD Arch Content-Type: text/plain; charset=UTF-8 Cc: Ed Maste Subject: [PATCH] Adding shared code support for ia32 and amd64 -- x86 sub-branch 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: Tue, 16 Feb 2010 00:10:38 -0000 The following patch: http://www.freebsd.org/~attilio/x86.diff starts the effort for having a shared sub-tree between amd64 and ia32. In this initial pass I putted the low-hanging fruits (bios/cpufreq) and what my customer was more interested in (isa/*) in order to kick-off the effort and, in the future, move gradually the code there. With the machine/isa/* cleanup about 10 files are trimmed and I'm sure more can be achieved easilly. There are few things to discuss. One, that I had not necessity to dig about still, is about how to organize headers (include/). Maybe some replication ala pc98 may be good. The patch is big but it is mostly added and removed files (look at the files.X in order to understand better how files movements happened). Hope to see comments and reviews. Attilio -- Peace can only be achieved by understanding - A. Einstein