From owner-freebsd-hackers Fri Jun 14 3:18:37 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 3FA0C37B412 for ; Fri, 14 Jun 2002 03:18:27 -0700 (PDT) Received: (from devnull@localhost) by oasis.uptsoft.com (8.11.6/linuxconf) id g5EAIID21405; Fri, 14 Jun 2002 13:18:18 +0300 Date: Fri, 14 Jun 2002 13:18:18 +0300 From: Sergey Lyubka To: Terry Lambert Cc: hackers@freebsd.org Subject: Re: locore.s quiestion Message-ID: <20020614131818.A21397@oasis.uptsoft.com> Reply-To: Sergey Lyubka Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <3D09B1E2.71DD6BF3@mindspring.com> User-Agent: Mutt/1.3.25i 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 > >From my own notes: > > The address of the "begin" symbol is pushed onto the stack, > and the btext() function returns ...not to its caller, but to > the begin() funcion, in the relocated address space. > > This is one of those "You are not expected to understand this" > things. Probably, you would benefit from reading: > Protected Mode Software Architecture > Tom Shanley I understand this well, Terry, but thanks, anyway. My question was - why the jump is done, I see no need to do that. When the loader calls btext, it is at high va already. Sorry about the link, it is broken now, so please ignore it. Regards, -sergey P.S. Terry, push/ret sequence has nothing with protected mode. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message