Subject: Re: Location for x86emu
To: De Zeurkous <>
From: Allen Briggs <>
List: tech-kern
Date: 11/30/2007 09:35:40
On Fri, Nov 30, 2007 at 02:25:01PM -0000, De Zeurkous wrote:
> On Fri, November 30, 2007 14:06, Joerg Sonnenberger wrote:
> > does someone have a better place than src/sys/compat/x86emu for a 386
> > real mode emulator? [...]
> > It should in the future also allow using vesafb on non-x86
> > systems with more work.
> [...]
> src/sys/arch/i386/emul/86real -> emul_86real
> src/sys/arch/i386/emul/i87 -> emul_86fpu (or emul_i87 or something)
> Note that I've put it under 'arch/i386' since I presume it can't be used
> on anything else than i386 and perhaps amd64.

Actually, I think part of the point is to be able to, for example, run
PCI expansion ROMs for video (or other) cards.  Some PCI video and RAID
cards need (x86) code run from their expansion ROMs for proper
operation.  At the moment, this isn't done in NetBSD, but it could
presumably be done with an x86 real mode emulator.

Joerg: How about src/sys/emul/x86 ?  I don't think it fits nicely in any
existing location.


Allen Briggs  |  |