Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 14 Jun 2002 11:50:10 +0300
From:      Sergey Lyubka <devnull@uptsoft.com>
To:        hackers@freebsd.org
Subject:   locore.s quiestion
Message-ID:  <20020614115010.B20213@oasis.uptsoft.com>

next in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020614115010.B20213>