Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 24 Nov 2007 04:46:24 +0100
From:      "Attilio Rao" <attilio@freebsd.org>
To:        "Aryeh Friedman" <aryeh.friedman@gmail.com>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: a strange/stupid question
Message-ID:  <3bbf2fe10711231946i61e63419n2c3aaffdfc40b8cb@mail.gmail.com>
In-Reply-To: <bef9a7920711231941h41f04cbbi53d24b791170a6bd@mail.gmail.com>
References:  <bef9a7920711231933g4b7e7717sf4667773188f28a@mail.gmail.com> <3bbf2fe10711231937y1e9af357hd8b6a63cbf6ae077@mail.gmail.com> <bef9a7920711231941h41f04cbbi53d24b791170a6bd@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
2007/11/24, Aryeh Friedman <aryeh.friedman@gmail.com>:
> On 11/24/07, Attilio Rao <attilio@freebsd.org> wrote:
> > 2007/11/24, Aryeh Friedman <aryeh.friedman@gmail.com>:
> > > Where do I find the main() [and/or other entery point] for the
> > > kernel.... I tend to understand stuff better if I follow the flow of
> > > exec from the start
> >
> > It is highly MD.
> > For IA32 it is in i386/i386/locore.s::btext
>
> For AMD64 I assume something close to that...
>
> I just relized that I actually want to understand everything from POST
> on (actually from power on but I know that is very mobo dependant) so
> I guess the question is where do I find the first executed statement
> for BTX (I know how to disamble the MBR so that part is not an issue)

It should be:
boot/i386/boot0/boot0.S::start

Attilio


-- 
Peace can only be achieved by understanding - A. Einstein



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