All of lore.kernel.org
 help / color / mirror / Atom feed
* wby mapping beyond end by "MAPPING_BEYOND_END" ?
@ 2013-03-02  7:40 Jacky
  0 siblings, 0 replies; 2+ messages in thread
From: Jacky @ 2013-03-02  7:40 UTC (permalink / raw)
  To: kernelnewbies

Hi All,


For x86, in arch/x86/kernel/head_32.S, for Initializing page tables,
why mapping beyond end by "MAPPING_BEYOND_END":

    /*
     * End condition: we must map up to the end + MAPPING_BEYOND_END.
     */
    movl $pa(_end) + MAPPING_BEYOND_END + PTE_IDENT_ATTR, %ebp
    cmpl %ebp,%eax
    jb 10b
According vmlinux.lds.S, the paging table is between __brk_base and
_end. So why map MAPPING_BEYOND_END after _end ?

Regards,
Jacky
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20130302/5b17bfd1/attachment.html 

^ permalink raw reply	[flat|nested] 2+ messages in thread

* wby mapping beyond end by "MAPPING_BEYOND_END" ?
@ 2012-12-21  6:52 Wang Baisheng
  0 siblings, 0 replies; 2+ messages in thread
From: Wang Baisheng @ 2012-12-21  6:52 UTC (permalink / raw)
  To: linux-kernel

Hi All,

For x86, in arch/x86/kernel/head_32.S, for Initializing page tables,
why mapping beyond end by "MAPPING_BEYOND_END":

    /*
     * End condition: we must map up to the end + MAPPING_BEYOND_END.
     */
    movl $pa(_end) + MAPPING_BEYOND_END + PTE_IDENT_ATTR, %ebp
    cmpl %ebp,%eax
    jb 10b

According vmlinux.lds.S, the paging table is between __brk_base and
_end. So why map MAPPING_BEYOND_END after _end ?

Regards,
Jacky

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-03-02  7:40 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-03-02  7:40 wby mapping beyond end by "MAPPING_BEYOND_END" ? Jacky
  -- strict thread matches above, loose matches on Subject: below --
2012-12-21  6:52 Wang Baisheng

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.