From owner-cvs-all Sat Sep 7 0:28:35 2002 Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A716137B400; Sat, 7 Sep 2002 00:28:29 -0700 (PDT) Received: from canning.wemm.org (canning.wemm.org [192.203.228.65]) by mx1.FreeBSD.org (Postfix) with ESMTP id 05FC143E3B; Sat, 7 Sep 2002 00:28:29 -0700 (PDT) (envelope-from peter@wemm.org) Received: from wemm.org (localhost [127.0.0.1]) by canning.wemm.org (Postfix) with ESMTP id A50E92A7D6; Sat, 7 Sep 2002 00:28:25 -0700 (PDT) (envelope-from peter@wemm.org) X-Mailer: exmh version 2.5 07/13/2001 with nmh-1.0.4 To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sys/conf options.i386 options.pc98 src/sys/i386/conf NOTES src/sys/i386/i386 initcpu.c machdep.c src/sys/i386/isa npx.c src/sys/i386/linux linux_ptrace.c src/sys/pc98/i386 machdep.c In-Reply-To: <200209070702.g8772CM0025706@freefall.freebsd.org> Date: Sat, 07 Sep 2002 00:28:25 -0700 From: Peter Wemm Message-Id: <20020907072825.A50E92A7D6@canning.wemm.org> Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Peter Wemm wrote: > peter 2002/09/07 00:02:12 PDT > > Modified files: > sys/conf options.i386 options.pc98 > sys/i386/conf NOTES > sys/i386/i386 initcpu.c machdep.c > sys/i386/isa npx.c > sys/i386/linux linux_ptrace.c > sys/pc98/i386 machdep.c > Log: > Automatically enable CPU_ENABLE_SSE (detect and enable SSE instructions) > if compiling with I686_CPU as a target. CPU_DISABLE_SSE will prevent > this from happening and will guarantee the code is not compiled in. > > I am still not happy with this, but gcc is now generating code that uses > these instructions if you set CPUTYPE to p3/p4 or athlon-4/mp/xp or higher. I've been trying to figure out the right syntax for negative options. I'd have rathered have a common definitions file that had a list of default options and then disable them in per-system configurations. eg: instead of options CPU_DISABLE_SSE have something like this instead: disable CPU_ENABLE_SSE options -CPU_ENABLE_SSE noopt CPU_DISABLE_SSE -option CPU_DISABLE_SSE or something. I just cannot quite think of something I like. enable/disable might make sense if we had an 'enable' keyword. eg: "enable ACPI_DEBUG" instead of "options ACPI_DEBUG" etc. Cheers, -Peter -- Peter Wemm - peter@wemm.org; peter@FreeBSD.org; peter@yahoo-inc.com "All of this is for nothing if we don't go to the stars" - JMS/B5 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message