[<prev] [next>] [day] [month] [year] [list]
Message-ID: <76391b770708200824x22bea9e5me0b721257ff903d8@mail.gmail.com>
Date: Mon, 20 Aug 2007 23:24:38 +0800
From: "liang yuanen" <linux.kernel.liang@...il.com>
To: kernelnewbies@...linux.org, linux-kernel@...r.kernel.org
Subject: code read question
in 2.4.20 code, in comment say this clear BSS, i think this not only
clear the BSS and set other data ,them are not belong to BSS, such as
.data.init_task to zero
in file arch/i386/boot/compressed/head.S
/*
* Clear BSS
*/
xorl %eax,%eax
movl $ SYMBOL_NAME(_edata),%edi
movl $ SYMBOL_NAME(_end),%ecx
subl %edi,%ecx
cld
rep
stosb
in file \arch\i386\vmlinux.lds
_edata = .; /* End of data section */
. = ALIGN(8192); /* init_task */
.data.init_task : { *(.data.init_task) }
. = ALIGN(4096); /* Init code and data */
__init_begin = .;
.text.init : { *(.text.init) }
.data.init : { *(.data.init) }
. = ALIGN(16);
__setup_start = .;
.setup.init : { *(.setup.init) }
__setup_end = .;
__initcall_start = .;
.initcall.init : { *(.initcall.init) }
__initcall_end = .;
. = ALIGN(4096);
__init_end = .;
. = ALIGN(4096);
.data.page_aligned : { *(.data.idt) }
. = ALIGN(32);
.data.cacheline_aligned : { *(.data.cacheline_aligned) }
__bss_start = .; /* BSS */
.bss : {
*(.bss)
}
_end = . ;
is it right?
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists