arch/sparc/mm/init.c (free_initmem) - this one is called at the end of
sys_setup, ie. just after mounting the root filesystem.
On the sparc, we use arch/sparc/vmlinux.lds ld script, so that both init
sections are
a) combined together
b) beginning is page aligned
c) end is page aligned as well
(then we achieve to free more than we used to and free_initmem is simpler).
>
> And is anybody working on adding this functionality to the Intel kernel
> yet?
This requires someone to write arch/i386/mm/init.c free_initmem and test the
stuff.
And then start adding different functions (but it requires to think twice
before adding, like most of the fs initialization code is not a good thing
to add, as it is called on mount, etc.). Adding the global functions and
data will help all the ports at once (at the moment just some sparc-only
functions are marked __initfunc).
.u$e.
Cheers .$$$$$:S
Jakub $"*$/"*$$
$.`$ . ^F
4k+#+T.$F
-------------------------------------------------------------- 4P+++"$"$ ---
Jakub Jelinek, jj@sunsite.mff.cuni.cz :R"+ t$$B
Administrator of SunSITE Czech Republic ___# $$$
MFF, Charles University, Prague | | R$$k
---------------------------------------------------------- dd. | Linux $!$
Give your Sparc a new beginning - SparcLinux ddd | Sparc $9$F
-------------------------------------------------------- '!!!!!$ !!#!`
!!!!!* .!!!!!`
'!!!!!!!W..e$$!!!!!!`
"~^^~ ^~~^