From owner-freebsd-hackers@FreeBSD.ORG Wed Sep 22 13:25:50 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E956416A4CE for ; Wed, 22 Sep 2004 13:25:50 +0000 (GMT) Received: from mailserv1.neuroflux.com (mailserv1.neuroflux.com [204.228.228.92]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7EA0A43D45 for ; Wed, 22 Sep 2004 13:25:50 +0000 (GMT) (envelope-from ryans@gamersimpact.com) Received: (qmail 93408 invoked by uid 89); 22 Sep 2004 13:32:31 -0000 Received: from unknown (HELO www2.neuroflux.com) (127.0.0.1) by localhost with SMTP; 22 Sep 2004 13:32:31 -0000 Received: from 216.160.49.134 (SquirrelMail authenticated user ryans@gamersimpact.com) by www2.neuroflux.com with HTTP; Wed, 22 Sep 2004 07:32:31 -0600 (MDT) Message-ID: <1115.216.160.49.134.1095859951.squirrel@www2.neuroflux.com> In-Reply-To: References: Date: Wed, 22 Sep 2004 07:32:31 -0600 (MDT) From: "Ryan Sommers" To: "vijay singh" User-Agent: SquirrelMail/1.4.2 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 Importance: Normal cc: freebsd-hackers@freebsd.org Subject: Re: jump from kernel to loader X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Sep 2004 13:25:51 -0000 vijay singh said: > hello, i have some exposure to the freebsd code, but not extensive. i am > reading the sys/boot code, and saw that the 3 stage boot process involves > a > jump from the loader to the kernel in the last phase. i was wondering if > it > is possible to engineer the kernel to jump back to the loader in some > special cases? > > kindly cc me as i am not on the list. > > br > vijay > It is my understanding that after jumping to the kernel the kernel assumes control of all of memory, including where the loader is currently loaded. In that case it would be impossible to jump back to the loader without first being sure to reload it into memory. I could be wrong on this however. -- Ryan Sommers ryans@gamersimpact.com