回复： what's zero_pages for in paging_int
914059751 at qq.com
Sun Nov 1 23:36:43 EST 2009
I'm a newbie in this mailing list as well as on my kernel adventure,thanks for your kind advice and crystal explanation about zero-pages.
>>Please don't post extracts of code which are part of mainline kernels.
>>Just provide a reference to where they are. Most people who will reply
>>to you already have a copy of the kernel source.
------------------ 原始邮件 ------------------
发件人: "Russell King - ARM Linux"<linux at arm.linux.org.uk>;
发送时间: 2009年10月30日(星期五) 晚上6:31
收件人: "胡杨树"<914059751 at qq.com>;
抄送: "linux-arm-kernel"<linux-arm-kernel at lists.infradead.org>;
主题: Re: what's zero_pages for in paging_int
On Fri, Oct 30, 2009 at 11:18:13AM +0800, 胡杨树 wrote:
> In paging_int, after setting up bootmem allocator, why zero page
> is needed? i cannot see any things usefull resides on that page,
> something i missing obviously?
Please don't post extracts of code which are part of mainline kernels.
Just provide a reference to where they are. Most people who will reply
to you already have a copy of the kernel source.
The zero page is a page full of zeros, and is used to provide userspace
with a write-protected initial BSS segment. When userspace first writes
to the BSS segments, a page fault happens, and a replacement writable
zero page will be given to the program.
linux-arm-kernel mailing list
linux-arm-kernel at lists.infradead.org
More information about the linux-arm-kernel