From owner-freebsd-hackers Thu Nov 6 13:10:06 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id NAA13933 for hackers-outgoing; Thu, 6 Nov 1997 13:10:06 -0800 (PST) (envelope-from owner-freebsd-hackers) Received: from bugs.us.dell.com (bugs.us.dell.com [143.166.169.147]) by hub.freebsd.org (8.8.7/8.8.7) with SMTP id NAA13926 for ; Thu, 6 Nov 1997 13:10:02 -0800 (PST) (envelope-from tony@dell.com) Received: from ant.us.dell.com (ant.us.dell.com [143.166.12.34]) by bugs.us.dell.com (8.6.12/8.6.12) with SMTP id PAA06837; Thu, 6 Nov 1997 15:05:06 -0600 Message-Id: <3.0.3.32.19971106141214.006d5438@bugs.us.dell.com> X-Sender: tony@bugs.us.dell.com X-Mailer: QUALCOMM Windows Eudora Light Version 3.0.3 (32) Date: Thu, 06 Nov 1997 14:12:14 -0600 To: Terry Lambert , mike@smith.net.au (Mike Smith) From: Tony Overfield Subject: Re: >64MB Cc: hackers@FreeBSD.ORG In-Reply-To: <199711061847.LAA28069@usr03.primenet.com> References: <199711061242.XAA00382@word.smith.net.au> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Sender: owner-freebsd-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk At 06:47 PM 11/6/97 +0000, Terry Lambert wrote: >> How do you copy the kernel into memory > 1M in real mode? > >There are several ways to do this. The main one uses a call that drops >into protected mode, changes a 64k mapping at the top of the 1M >you can get at, and goes back to protected mode. > >You can see a nice example of this in your config.sys on most DOS >machines, where you probably load an EMS, XMS, or DPMI driver so >DOS (and more likely, Windows 3.x) can use memory above 1M. > I can't tell, but I think you're talking about one of these: 1. ... switching to protected mode, setting larger segment limits and then switching back to real mode. It's very unlikely that you have anything in your config.sys that uses this trick. There's no benefit to using it, and there are serious compatibility problems with it. 2. ... the real mode trick of using FFFF:xxxx addressing. This lets you address up to 64K-16 bytes of memory above 1M in real mode. Protected mode is not needed to enable or use this trick. It is completely inadequate for loading a kernel. In DOS, this is called the HMA "high memory area". It is used when use have DOS=HIGH in your config.sys, as one example. 3. Something else. If so, please state it more clearly. - Tony