From owner-cvs-all@FreeBSD.ORG Sun Oct 29 14:50:58 2006 Return-Path: X-Original-To: cvs-all@FreeBSD.org Delivered-To: cvs-all@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EB2FA16A47E; Sun, 29 Oct 2006 14:50:58 +0000 (UTC) (envelope-from ru@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id B7AA343D58; Sun, 29 Oct 2006 14:50:58 +0000 (GMT) (envelope-from ru@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.6/8.13.6) with ESMTP id k9TEowe3034803; Sun, 29 Oct 2006 14:50:58 GMT (envelope-from ru@repoman.freebsd.org) Received: (from ru@localhost) by repoman.freebsd.org (8.13.6/8.13.4/Submit) id k9TEowL4034801; Sun, 29 Oct 2006 14:50:58 GMT (envelope-from ru) Message-Id: <200610291450.k9TEowL4034801@repoman.freebsd.org> From: Ruslan Ermilov Date: Sun, 29 Oct 2006 14:50:58 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/sys/boot/common load_elf.c src/sys/boot/i386/boot2 boot2.c src/sys/boot/i386/libi386 elf32_freebsd.c src/sys/boot/pc98/boot2 boot.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 29 Oct 2006 14:50:59 -0000 ru 2006-10-29 14:50:58 UTC FreeBSD src repository Modified files: sys/boot/common load_elf.c sys/boot/i386/boot2 boot2.c sys/boot/i386/libi386 elf32_freebsd.c sys/boot/pc98/boot2 boot.c Log: Because the BTX mini-kernel now uses flat memory mode and clients are no longer limited to a virtual address space of 16 megabytes, only mask high two bits of a virtual address. This allows to load larger kernels (up to 1 gigabyte). Not masking addresses at all was a bad idea on machines with less than >3G of memory -- kernels are linked at 0xc0xxxxxx, and that would attempt to load a kernel at above 3G. By masking only two highest bits we stay within the safe limits while still allowing to boot larger kernels. (This is a safer reimplmentation of sys/boot/i386/boot2/boot.2.c rev. 1.71.) Prodded by: jhb Tested by: nyan (pc98) Revision Changes Path 1.35 +1 -1 src/sys/boot/common/load_elf.c 1.82 +3 -3 src/sys/boot/i386/boot2/boot2.c 1.16 +1 -1 src/sys/boot/i386/libi386/elf32_freebsd.c 1.15 +2 -2 src/sys/boot/pc98/boot2/boot.c