Boot loader + malloc

Oliver Fromme olli at lurza.secnetix.de
Thu Aug 21 19:39:35 UTC 2008


Jordan Gordeev wrote:
 > At present the amd64 kernel is loaded just above the first megabyte
 > of physical memory.

Yes, I know, and the standard i386 kernel is loaded at 4 MB,
and the PAE kernel is loaded at 2 MB.  It doesn't matter 
much, though.

 > I have no idea if the loader uses malloc()/free() after the kernel
 > is loaded though.

Yes, it does.  By default the loader loads the kernel first,
then fires up the "beastie" menu which causes quite some
malloc() activity.  FICL uses malloc() internally for
various things.

Best regards
   Oliver

-- 
Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing b. M.
Handelsregister: Registergericht Muenchen, HRA 74606,  Geschäftsfuehrung:
secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün-
chen, HRB 125758,  Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart

FreeBSD-Dienstleistungen, -Produkte und mehr:  http://www.secnetix.de/bsd

"When your hammer is C++, everything begins to look like a thumb."
        -- Steve Haflich, in comp.lang.c++


More information about the freebsd-hackers mailing list