From owner-freebsd-hackers Thu Dec 21 8:13:13 2000 From owner-freebsd-hackers@FreeBSD.ORG Thu Dec 21 08:13:10 2000 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from herd.plethora.net (herd.plethora.net [205.166.146.1]) by hub.freebsd.org (Postfix) with ESMTP id 773C737B402 for ; Thu, 21 Dec 2000 08:13:09 -0800 (PST) Received: from guild.plethora.net (root@guild.plethora.net [205.166.146.8]) by herd.plethora.net (8.9.0/8.9.0) with ESMTP id KAA04993 for ; Thu, 21 Dec 2000 10:13:08 -0600 (CST) Received: from guild.plethora.net (seebs@localhost.plethora.net [127.0.0.1]) by guild.plethora.net (8.9.3/8.9.0) with ESMTP id KAA26240 for ; Thu, 21 Dec 2000 10:13:06 -0600 (CST) Message-Id: <200012211613.KAA26240@guild.plethora.net> From: seebs@plethora.net (Peter Seebach) Reply-To: seebs@plethora.net (Peter Seebach) To: freebsd-hackers@freebsd.org Subject: Re: Supporting VirtualPC... In-reply-to: Your message of "21 Dec 2000 12:32:52 +0100." Date: Thu, 21 Dec 2000 10:13:06 -0600 Sender: seebs@plethora.net Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In message , Dag-Erling Smorgrav writes: >seebs@plethora.net (Peter Seebach) writes: >> I am wondering what would be considered a "good" way to encode the knowledge >> that machines with "ConnectixCPU" in the mode string need specific special >> treatment in two widely disparate places. >Assuming the ident code correctly sets cpu_vendor to "ConnectixCPU" >(rather than e.g. "GenuineIntel" or "AuthenticAMD") you can just check >against that. It's declared in . Yeah, but in an ideal world, I wouldn't be calling strcmp on the CPU type every time the ethernet card interrupts... Is there a good place to add a dummy variable that can be tested? Perhaps md_var.h could have #ifdef VPC_CPU int cpu_is_vpc; #endif and not break anyone's heart? I'm just trying to avoid stepping on namespace conventions. ;) -s To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message