From 3d8befc22d05fcb85c99d8b4b0005a34e8ea0c88 Mon Sep 17 00:00:00 2001 From: Tor Egge Date: Mon, 15 Feb 1999 17:36:58 +0000 Subject: [PATCH] Enable load of i386 ELF kernels with larger KVA range (e.g. starting at 0xe0100000u or 0xc0100000u instead of the usual 0xf0100000u). --- sys/boot/common/load_elf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/boot/common/load_elf.c b/sys/boot/common/load_elf.c index ff1f50638ac8..bc514b1bc3ac 100644 --- a/sys/boot/common/load_elf.c +++ b/sys/boot/common/load_elf.c @@ -24,7 +24,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: load_elf.c,v 1.9 1998/10/17 03:06:38 peter Exp $ + * $Id: load_elf.c,v 1.10 1999/01/04 18:37:41 peter Exp $ */ #include @@ -229,7 +229,7 @@ elf_loadimage(struct loaded_module *mp, int fd, vm_offset_t off, firstaddr = lastaddr = 0; if (kernel) { #ifdef __i386__ - off = 0x10000000; /* -0xf0000000 - i386 relocates after locore */ + off = - (off & 0xff000000u); /* i386 relocates after locore */ #else off = 0; /* alpha is direct mapped for kernels */ #endif