All of lore.kernel.org
 help / color / mirror / Atom feed
From: Pavel Machek <pavel@ucw.cz>
To: kernel list <linux-kernel@vger.kernel.org>
Subject: 2.5.52 a/arch/i386/mm/init.c
Date: Wed, 18 Dec 2002 22:50:15 +0100	[thread overview]
Message-ID: <20021218215015.GA19885@elf.ucw.cz> (raw)

Hi!

In 2.5.52:

Looks suspect to me... Is it okay to do one_md_table_init, then just
discard the result? Why this change?
							Pavel

--- a/arch/i386/mm/init.c       Sun Dec 15 18:08:30 2002
+++ b/arch/i386/mm/init.c       Sun Dec 15 18:08:30 2002
@@ -134,8 +134,10 @@
        pgd = pgd_base + pgd_ofs;
        pfn = 0;

-       for (; pgd_ofs < PTRS_PER_PGD && pfn < max_low_pfn; pgd++,
pgd_ofs++) {
+       for (; pgd_ofs < PTRS_PER_PGD; pgd++, pgd_ofs++) {
                pmd = one_md_table_init(pgd);
+               if (pfn >= max_low_pfn)
+                       continue;
                for (pmd_ofs = 0; pmd_ofs < PTRS_PER_PMD && pfn <
max_low_pfn; pmd++, pmd_ofs++) {
                        /* Map with big pages if possible, otherwise
create normal page tables. */
                        if (cpu_has_pse) {

-- 
Worst form of spam? Adding advertisment signatures ala sourceforge.net.
What goes next? Inserting advertisment *into* email?

                 reply	other threads:[~2002-12-18 21:43 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=20021218215015.GA19885@elf.ucw.cz \
    --to=pavel@ucw.cz \
    --cc=linux-kernel@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 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.