From owner-freebsd-stable@FreeBSD.ORG Thu Oct 26 19:54:33 2006 Return-Path: X-Original-To: freebsd-stable@FreeBSD.ORG Delivered-To: freebsd-stable@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6E15F16A415; Thu, 26 Oct 2006 19:54:33 +0000 (UTC) (envelope-from ru@rambler-co.ru) Received: from relay0.rambler.ru (relay0.rambler.ru [81.19.66.187]) by mx1.FreeBSD.org (Postfix) with ESMTP id C8F6F43D7B; Thu, 26 Oct 2006 19:54:20 +0000 (GMT) (envelope-from ru@rambler-co.ru) Received: from relay0.rambler.ru (localhost [127.0.0.1]) by relay0.rambler.ru (Postfix) with ESMTP id 4D89E6104; Thu, 26 Oct 2006 23:54:19 +0400 (MSD) Received: from edoofus.park.rambler.ru (unknown [81.19.65.108]) by relay0.rambler.ru (Postfix) with ESMTP id 1256A60CE; Thu, 26 Oct 2006 23:54:19 +0400 (MSD) Received: (from ru@localhost) by edoofus.park.rambler.ru (8.13.8/8.13.8) id k9QJsJpJ003082; Thu, 26 Oct 2006 23:54:19 +0400 (MSD) (envelope-from ru) Date: Thu, 26 Oct 2006 23:54:19 +0400 From: Ruslan Ermilov To: John Baldwin Message-ID: <20061026195419.GA2972@rambler-co.ru> References: <3A8131D4-881E-4873-A682-543A1A88C063@lassitu.de> <200610261138.24939.jhb@freebsd.org> <20061026191820.GB2420@rambler-co.ru> <200610261542.35322.jhb@freebsd.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="SLDf9lqlvOQaIe6s" Content-Disposition: inline In-Reply-To: <200610261542.35322.jhb@freebsd.org> User-Agent: Mutt/1.5.13 (2006-08-11) X-Virus-Scanned: No virus found Cc: freebsd-stable@FreeBSD.ORG, Stefan Bethke , Bruce Evans , Bruce Evans Subject: Re: Still possible to directly boot without loader? X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Oct 2006 19:54:33 -0000 --SLDf9lqlvOQaIe6s Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Oct 26, 2006 at 03:42:34PM -0400, John Baldwin wrote: > On Thursday 26 October 2006 15:18, Ruslan Ermilov wrote: > > On Thu, Oct 26, 2006 at 11:38:24AM -0400, John Baldwin wrote: > > > On Thursday 26 October 2006 10:42, Ruslan Ermilov wrote: > > > > On Thu, Oct 26, 2006 at 10:28:09AM -0400, John Baldwin wrote: > > > > > boot2 should do whatever loader does. > > > > >=20 > > > > But this would be a regression, since loader(8) does the following, > > > > in the ELF32 case: > > > >=20 > > > > : 0 edoofus:ttyp2:/sys/boot/i386/libi386 >grep -w entry elf32_freeb= sd.c > > > > : vm_offset_t entry, bootinfop, modulep, kernen= d; > > > > : entry =3D ehdr->e_entry & 0xffffff; > > > > : printf("Start @ 0x%lx ...\n", entry); > > > > : __exec((void *)entry, boothowto, bootdev, 0, 0, 0, bootinfop,= modulep, kernend); > > >=20 > > > Ah, ok. Make them both just mask the top 8 bits then. :) > > >=20 > > OK, I backed out your change to boot2.c. >=20 > Sorry, I meant that both boot2 and loader should follow your proposal of = masking 28 bits. > Just masking the top 4 bits is probably sufficient. >=20 :-) OK, I'll craft a patch tomorrow. This will also require patching at least sys/boot/common/load_elf.c:__elfN(loadimage), maybe something else. I think we could actually mask 30 bits; that would allow to load 1G kernels, provided that sufficient memory exists. Cheers, --=20 Ruslan Ermilov ru@FreeBSD.org FreeBSD committer --SLDf9lqlvOQaIe6s Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (FreeBSD) iD8DBQFFQRJrqRfpzJluFF4RAmqKAJ4kQqHgWOlEAJ9G1F2ElT2/RfpiuQCeMn59 zIzlFqPF1jRWHo3z9g/b5MM= =Btrr -----END PGP SIGNATURE----- --SLDf9lqlvOQaIe6s--