From owner-freebsd-hackers Fri Nov 8 3:52:21 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 62C4137B401 for ; Fri, 8 Nov 2002 03:52:20 -0800 (PST) Received: from conure.mail.pas.earthlink.net (conure.mail.pas.earthlink.net [207.217.120.54]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1067E43E75 for ; Fri, 8 Nov 2002 03:52:20 -0800 (PST) (envelope-from tlambert2@mindspring.com) Received: from dialup-209.247.142.245.dial1.sanjose1.level3.net ([209.247.142.245] helo=mindspring.com) by conure.mail.pas.earthlink.net with esmtp (Exim 3.33 #1) id 18A7gM-0001kQ-00; Fri, 08 Nov 2002 03:52:14 -0800 Message-ID: <3DCBA522.4CD60762@mindspring.com> Date: Fri, 08 Nov 2002 03:50:58 -0800 From: Terry Lambert X-Mailer: Mozilla 4.79 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: Matthew Dillon Cc: hackers@freebsd.org Subject: Re: Int 0x15 and VM86 question References: <200211081007.gA8A7fwx000751@apollo.backplane.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Matthew Dillon wrote: > I've been pulling my hair out all night trying to figure out how > the hell the VM86 code is able to issue an int 0x15 to the BIOS. > I can't find where it gets the interrupt descriptor table entry > for int 0x15. My assumption is that it copies it from the idt > supplied by the BIOS but I don't see where. As far as I can tell > FreeBSD loads a pristine IDT that does not have a record for > int 0x15. So how can the VM86 code issue an int 0x15 and have it > find the BIOS? > > If anyone knows the answer to this, I'm all ears! The old locore is saved, and restored into the vm86 environment for the purposes of permitting the call. If we were really clever, we would use the IDT gate to thunk much of the BIOS functionality back into the host OS. -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message