From owner-freebsd-hackers Fri Jun 14 1:50:25 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from oasis.uptsoft.com (oasis.uptsoft.com [217.20.165.41]) by hub.freebsd.org (Postfix) with ESMTP id E2D0237B41B for ; Fri, 14 Jun 2002 01:50:16 -0700 (PDT) Received: (from devnull@localhost) by oasis.uptsoft.com (8.11.6/linuxconf) id g5E8oAY20471 for hackers@freebsd.org; Fri, 14 Jun 2002 11:50:10 +0300 Date: Fri, 14 Jun 2002 11:50:10 +0300 From: Sergey Lyubka To: hackers@freebsd.org Subject: locore.s quiestion Message-ID: <20020614115010.B20213@oasis.uptsoft.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hello, I am writing an article about FreeBSD's startup and kernel init (it is at http://oasis.uptsoft.com/~devnull/dh/boot.html for whom it may be interesting) I am stucked at two lines in locore.s (IA 32 arch) /usr/src/sys/i386/i386/locore.s: pushl $begin /* jump to high virtualized address */ ret /* now running relocated at KERNBASE where the system is linked to run */ begin: /* set up bootstrap stack */ My question is: why this is done. My understanding was that the loader loaded the kernel at high virtual address already, so there's no need to jump. Thanks, -sergey -- Sergey Lyubka Asita Technologies Int, Galway, Ireland To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message