From owner-freebsd-stable@FreeBSD.ORG Thu Oct 26 19:42:48 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 57AEE16A4A0; Thu, 26 Oct 2006 19:42:48 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from server.baldwin.cx (66-23-211-162.clients.speedfactory.net [66.23.211.162]) by mx1.FreeBSD.org (Postfix) with ESMTP id BB54243D45; Thu, 26 Oct 2006 19:42:47 +0000 (GMT) (envelope-from jhb@freebsd.org) Received: from zion.baldwin.cx (zion.baldwin.cx [192.168.0.7]) (authenticated bits=0) by server.baldwin.cx (8.13.6/8.13.6) with ESMTP id k9QJgdLl032791; Thu, 26 Oct 2006 15:42:41 -0400 (EDT) (envelope-from jhb@freebsd.org) From: John Baldwin To: Ruslan Ermilov Date: Thu, 26 Oct 2006 15:42:34 -0400 User-Agent: KMail/1.9.1 References: <3A8131D4-881E-4873-A682-543A1A88C063@lassitu.de> <200610261138.24939.jhb@freebsd.org> <20061026191820.GB2420@rambler-co.ru> In-Reply-To: <20061026191820.GB2420@rambler-co.ru> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200610261542.35322.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH authentication, not delayed by milter-greylist-2.0.2 (server.baldwin.cx [192.168.0.1]); Thu, 26 Oct 2006 15:42:45 -0400 (EDT) X-Virus-Scanned: ClamAV 0.88.3/2107/Thu Oct 26 10:33:29 2006 on server.baldwin.cx X-Virus-Status: Clean X-Spam-Status: No, score=-4.4 required=4.2 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.1.3 X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on server.baldwin.cx 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:42:48 -0000 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. > > > > > > > But this would be a regression, since loader(8) does the following, > > > in the ELF32 case: > > > > > > : 0 edoofus:ttyp2:/sys/boot/i386/libi386 >grep -w entry elf32_freebsd.c > > > : vm_offset_t entry, bootinfop, modulep, kernend; > > > : entry = ehdr->e_entry & 0xffffff; > > > : printf("Start @ 0x%lx ...\n", entry); > > > : __exec((void *)entry, boothowto, bootdev, 0, 0, 0, bootinfop, modulep, kernend); > > > > Ah, ok. Make them both just mask the top 8 bits then. :) > > > OK, I backed out your change to boot2.c. 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. -- John Baldwin