Re: whats about the bootup code ?

From: Tigran Aivazian (tigran@veritas.com)
Date: Tue Apr 04 2000 - 11:28:36 EST


On Tue, 4 Apr 2000, Enrico Weigelt wrote:

>
> is the bootup code freed after the kernel has booted ?
> (i know there's a message "freeing unused kernel memory")

no, it is not freed, it is overwritten.

>
> what's about the driver initilaization code ?
> is it also freed ?

yes, it is freed and the way it is done is by using gcc magic
function attributes that instruct the linker to place certain
data and code in certain ELF sections. Look at arch/i386/vmlinux.lds
and also at the definition of __init and __initdata macros.

Regards,
Tigran

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Fri Apr 07 2000 - 21:00:12 EST