From owner-freebsd-multimedia Thu Jul 1 17:10:56 1999 Delivered-To: freebsd-multimedia@freebsd.org Received: from pluto.ipass.net (pluto.ipass.net [198.79.53.5]) by hub.freebsd.org (Postfix) with ESMTP id 97E7114F29; Thu, 1 Jul 1999 17:10:47 -0700 (PDT) (envelope-from rhh@ipass.net) Received: from stealth.ipass.net. (ppp-1-148.dialup.rdu.ipass.net [209.170.132.148]) by pluto.ipass.net (8.9.3/8.9.3) with ESMTP id UAA18505; Thu, 1 Jul 1999 20:10:41 -0400 (EDT) Received: (from rhh@localhost) by stealth.ipass.net. (8.9.3/8.8.8) id UAA05908; Thu, 1 Jul 1999 20:12:36 -0400 (EDT) (envelope-from rhh) Date: Thu, 1 Jul 1999 20:12:36 -0400 From: Randall Hopper To: Frode Vatvedt Fjeld , "Daniel J. O'Connor" , Geff Hanoian Cc: freebsd-stable@freebsd.org, multimedia@freebsd.org Subject: Re: MMX Message-ID: <19990701201236.A5532@ipass.net> References: <199906300229.TAA06545@kusanagi.boing.com> <2hwvwnqh7g.fsf@dslab7.cs.uit.no> <2hwvwnqh7g.fsf@dslab7.cs.uit.no> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.1i In-Reply-To: <2hwvwnqh7g.fsf@dslab7.cs.uit.no>; from Frode Vatvedt Fjeld on Tue, Jun 29, 1999 at 03:17:23PM +0200 Sender: owner-freebsd-multimedia@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Frode Vatvedt Fjeld: |What is the preferred way for my application to determine if the CPU |is MMX-capable? Daniel J. O'Connor: |Use some MMX instructions and see if you catch a SIGILL or not? :) Geff Hanoian: | __asm __volatile( | ".byte 0x0f, 0xa2;" Seems like this would be perfect for the sysctl MIB. We have a few CPU-related ones already: > sysctl -a | grep -i cpu kern.ccpu: 1948 hw.ncpu: 1 What about: hw.cpu.has_mmx: 1 hw.cpu.has_3dnow: 1 hw.cpu.has_sse: 0 In leiu of that, I believe I recall reading that the SIGILL approach works on FreeBSD. Seems like Roger Hardiman uses/used MMX on FreeBSD for some of his signal processing work. You might chat with him. Randall To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-multimedia" in the body of the message