From owner-freebsd-current Sat Jul 6 2:28:36 2002 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8C95E37B401 for ; Sat, 6 Jul 2002 02:28:34 -0700 (PDT) Received: from HAL9000.wox.org (12-233-156-170.client.attbi.com [12.233.156.170]) by mx1.FreeBSD.org (Postfix) with ESMTP id DF70C43E3B for ; Sat, 6 Jul 2002 02:28:33 -0700 (PDT) (envelope-from dschultz@uclink.Berkeley.EDU) Received: from HAL9000.wox.org (localhost [127.0.0.1]) by HAL9000.wox.org (8.12.3/8.12.3) with ESMTP id g669Sfxq000970; Sat, 6 Jul 2002 02:28:42 -0700 (PDT) (envelope-from dschultz@uclink.Berkeley.EDU) Received: (from das@localhost) by HAL9000.wox.org (8.12.3/8.12.3/Submit) id g669SZ3x000969; Sat, 6 Jul 2002 02:28:35 -0700 (PDT) (envelope-from dschultz@uclink.Berkeley.EDU) Date: Sat, 6 Jul 2002 02:28:35 -0700 From: David Schultz To: David Xu Cc: Jonathan Lemon , current@FreeBSD.ORG Subject: Re: i386 trap code Message-ID: <20020706092835.GB709@HAL9000.wox.org> Mail-Followup-To: David Xu , Jonathan Lemon , current@FreeBSD.ORG References: <200207060557.g665vhm16951@prism.flugsvamp.com> <20020706090701.37865.qmail@web20906.mail.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020706090701.37865.qmail@web20906.mail.yahoo.com> Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Thus spake David Xu : > I don't know if FreeBSD can run DOS program, if it can, then one CPU running > DOS program can confuse another CPU which is running BIOS code because of this > global flags. > > my current patch does not remove vm86_lock, it is still there, my orginal > purpose is while CPU in VM86 mode, when hardware interrupt occurs, still > allow interrupt thread to run. FreeBSD can run DOS programs, but it does so by emulating all of the common DOS and BIOS calls. You can't safely give untrusted userland programs direct access to the BIOS, and even if you could, the BIOS calls wouldn't work as the DOS programs expected them to. See doscmd(1). To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message