linux-newbie.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Wang Baisheng <baisheng.wang.cn@gmail.com>
To: linux-newbie@vger.kernel.org
Subject: why mapping beyond end "MAPPING_BEYOND_END"?
Date: Fri, 21 Dec 2012 14:50:57 +0800	[thread overview]
Message-ID: <CABymN7aq6zs47MKVuijcvRg5yggNkg_jUT_UJfOguUg2xv2f5A@mail.gmail.com> (raw)

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
--
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

                 reply	other threads:[~2012-12-21  6:50 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CABymN7aq6zs47MKVuijcvRg5yggNkg_jUT_UJfOguUg2xv2f5A@mail.gmail.com \
    --to=baisheng.wang.cn@gmail.com \
    --cc=linux-newbie@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).