From owner-freebsd-arch Wed Dec 26 17: 5:21 2001 Delivered-To: freebsd-arch@freebsd.org Received: from rover.village.org (rover.bsdimp.com [204.144.255.66]) by hub.freebsd.org (Postfix) with ESMTP id 2AF5337B405 for ; Wed, 26 Dec 2001 17:05:19 -0800 (PST) Received: from localhost (imp@69.imp.village.org [10.0.0.69]) by rover.village.org (8.11.3/8.11.3) with ESMTP id fBR15Hl14326 for ; Wed, 26 Dec 2001 18:05:18 -0700 (MST) (envelope-from imp@village.org) Date: Wed, 26 Dec 2001 01:55:31 -0700 (MST) Message-Id: <20011226.015531.63813856.imp@village.org> To: arch@FreeBSD.ORG Subject: Re: cvs commit: src/sys/isa fd.c From: "M. Warner Losh" In-Reply-To: <20011220193618.B19756@uriah.heep.sax.de> References: <20011219095119.B93645@sunbay.com> <20011220235518.V673-100000@gamplex.bde.org> <20011220193618.B19756@uriah.heep.sax.de> X-Mailer: Mew version 2.1 on Emacs 21.1 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG : What does NetBSD do here? It would surprise me if they didn't have a : method to distinguish between their various machines at the cpp level. NetBSD does what FreeBSD does. They define __${MACHINE}__ and __${MACHINE_ARCH}__ for each port. The trouble happens when MACHINE == MACHINE_ARCH and there's more than one. I'm not sure what NetBSD/pc98 is going to do once it is integrated into the tree. For the NetBSD architectures that have more than one MACHINE for a given MACHINE_ARCH, these names are always different (again, I'm not sure if this will hold once pc98 goes into the NetBSD tree). _MACHINE_ARCH and MACHINE_ARCH are used only by make and maybe one or two other minor things. The problem with using anything in machine/*.h is that FreeBSD/pc98 and FreeBSD/i386 use the same files. You'd have to have the ifdefs in there based on PC98 being defined or not. Warner To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message