From owner-freebsd-current Thu Jul 22 9:53:19 1999 Delivered-To: freebsd-current@freebsd.org Received: from cons.org (knight.cons.org [194.233.237.195]) by hub.freebsd.org (Postfix) with ESMTP id 70DE3155F5 for ; Thu, 22 Jul 1999 09:52:57 -0700 (PDT) (envelope-from cracauer@cons.org) Received: (from cracauer@localhost) by cons.org (8.8.8/8.7.3) id SAA27830; Thu, 22 Jul 1999 18:51:16 +0200 (CEST) Date: Thu, 22 Jul 1999 18:51:16 +0200 From: Martin Cracauer To: Bruce Evans Cc: cracauer@cons.org, freebsd-current@FreeBSD.ORG Subject: Re: Using float emulator on a system with FPU? Message-ID: <19990722185115.A27722@cons.org> References: <199907121144.VAA07535@godzilla.zeta.org.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.1i In-Reply-To: <199907121144.VAA07535@godzilla.zeta.org.au>; from Bruce Evans on Mon, Jul 12, 1999 at 09:44:59PM +1000 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In <199907121144.VAA07535@godzilla.zeta.org.au>, Bruce Evans wrote: > >I'm going to work on FreeBSD's floating point support, but I need to > >test my changes on systems using the FPU emulators (non-GPL and GPL). > > > >Is there any way to use these emulators on a system that has a > >hardware FPU? > > Toggling `npx_exists' using ddb used to work. Now, toggling it off > on i586 systems causes a panic in the i586-optimised copy routines. This particular problem has a hook in npx.c: device npx0 [...] flags 7 seems to do the trick (disables usage of FPU-optimized mem stuff). I am now able to switch "npx_exists" between npx_probe1() and npx_attach(), which let me run with the emulator on a Pentium. But only from serial kgdb, since as you noted in your other message, symbols are not available to ddb in ELF kernels started with -d. I assume you use kdb_init() from db_elf.c, you how do you call it given that you neither have the symbol (not loaded yet) nor the address (`nm /kernel` output not useful)? [Throwing an egg after the chicken that fails to produce the egg] Martin -- %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Martin Cracauer http://www.cons.org/cracauer/ Tel.: (private) +4940 5221829 Fax.: (private) +4940 5228536 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message