From owner-freebsd-hackers Sat Oct 14 03:45:58 1995 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id DAA03060 for hackers-outgoing; Sat, 14 Oct 1995 03:45:58 -0700 Received: from frya.zgik.zaporizhzhe.ua (ZGIK-1-ELIS-14.4K.zgik.zaporizhzhe.ua [193.124.62.253]) by freefall.freebsd.org (8.6.12/8.6.6) with ESMTP id DAA03055 for ; Sat, 14 Oct 1995 03:45:32 -0700 Received: from zgik.UUCP by frya.zgik.zaporizhzhe.ua with UUCP id MAA06776; (8.6.11/vak/1.8e) Sat, 14 Oct 1995 12:39:54 +0200 Received: by relay1.bcs.zaporizhzhe.ua (uumail v1.5/ache) id AA17989; Sat, 14 Oct 1995 12:14:57 +0200 Received: from bcs1.bcs.zaporizhzhe.ua (bcs1.bcs.zaporizhzhe.ua [193.124.62.29]) by bcs.zaporizhzhe.ua (8.6.11/8.6.9) with SMTP id MAA17986; Sat, 14 Oct 1995 12:14:56 +0200 Received: by bcs1.bcs.zaporizhzhe.ua id AA02527 (5.65c8/IDA-1.4.4 for hackers@freebsd.org); Sat, 14 Oct 1995 12:10:33 +0200 From: Sergey Shkonda Message-Id: <199510141010.AA02527@bcs1.bcs.zaporizhzhe.ua> Subject: Re: netboot patch To: bde@zeta.org.au (Bruce Evans) Date: Sat, 14 Oct 1995 12:10:30 +0200 (UKR) Cc: hackers@freebsd.org In-Reply-To: <199510140008.KAA25340@godzilla.zeta.org.au> from "Bruce Evans" at Oct 14, 95 10:08:09 am X-Mailer: ELM [version 2.4 PL0] Content-Type: text Content-Length: 1087 Sender: owner-hackers@freebsd.org Precedence: bulk > > >> > Troubles detected when DOS memory managers used > >> > after netboot.com. (I type 'N' when question "Boot from Network") > >> > IMHO there are incorrect switching from P-mode to R-mode at exit. > >> > >> I have heard this from other people as well, but I don't really know > >> what I'm doing incorrectly on the switch back. > > I found this bug. You need to load selector with limit 64k > > to ss, ds, es, fs and fs registers _before_ cleaning PE flag. > > Then shadow registers filled correctly. > > fs and gs need not be switched back because they aren't switched to. > > The standard boot loader probably doesn't need this because it doesn't > support an 'N' question. It seems unlikely that there are any BIOSes > sensitive to the segment limits. It's more likely that there are > BIOSes sensitive to gateA20, and we don't bother switching gateA20 > back and forth. > > Bruce > If this question not supported, then you can't boot from floppy with boot ROM. -- Serg | Relcom: (Sergey Shkonda) | serg@bcs1.bcs.zaporizhzhe.ua