__init, __openfirmware, etc...

Geert Uytterhoeven geert at geert.cs.kuleuven.ac.be
Sun Jan 3 07:55:36 EST 1999


On Sat, 2 Jan 1999, Benjamin Herrenschmidt wrote:
> Could someone explain me how those directive (__init, __openfirmware,
> __pmac, ...) works in the kernel ? I guess those are directive for the
> linker, and I also guess that __init marked sections will be removed from
> memory after kernel initialisation, but what are the other ones ? 

__init sections are indeed removed after kernel initialisation. The other ones
are removed depending on the dynamic run type of the machine, e.g. __pmac
sections are removed on PReP, and so on. Saves quite some valuable unswappable
kernel memory.

Greetings,

						Geert

--
Geert Uytterhoeven                     Geert.Uytterhoeven at cs.kuleuven.ac.be
Wavelets, Linux/{m68k~Amiga,PPC~CHRP}  http://www.cs.kuleuven.ac.be/~geert/
Department of Computer Science -- Katholieke Universiteit Leuven -- Belgium

[[ This message was sent via the linuxppc-dev mailing list. Replies are ]]
[[ not forced back to the list, so be sure to  Cc linuxppc-dev  if your ]]
[[ reply is of general interest. To unsubscribe from linuxppc-dev, send ]]
[[ the message 'unsubscribe' to linuxppc-dev-request at lists.linuxppc.org ]]




More information about the Linuxppc-dev mailing list