From: Hirokazu Takata <takata@linux-m32r.org>
To: Andrew Morton <akpm@osdl.org>
Cc: linux-kernel@vger.kernel.org, ak@suse.de, takata@linux-m32r.org
Subject: [PATCH 2.6.10-rc3-mm1] m32r: Update 4-level page table support (was Re: [PATCH 8/17] 4level support for m32r)
Date: Fri, 17 Dec 2004 22:11:08 +0900 (JST) [thread overview]
Message-ID: <20041217.221108.840832167.takata.hirokazu@renesas.com> (raw)
In-Reply-To: <417CAA05.mail3YV11VZXC@wotan.suse.de>
Hello,
More updates for 4-level support for m32r.
This patch is needed to fix compile error of -mm tree for m32r.
Please apply.
Regards,
Signed-off-by: Hirokazu Takata <takata@linux-m32r.org>
---
diff -ruNp a/arch/m32r/mm/fault.c b/arch/m32r/mm/fault.c
--- a/arch/m32r/mm/fault.c 2004-12-16 11:37:01.000000000 +0900
+++ b/arch/m32r/mm/fault.c 2004-12-16 11:37:46.000000000 +0900
@@ -122,7 +122,7 @@ asmlinkage void do_page_fault(struct pt_
/*
* We fault-in kernel-space virtual memory on-demand. The
- * 'reference' page table is init_mm.pgd.
+ * 'reference' page table is init_mm.pml4.
*
* NOTE! We MUST NOT take any locks for this case. We may
* be in an interrupt or a critical region, and should
@@ -343,7 +343,7 @@ vmalloc_fault:
pgd = (pgd_t *)*(unsigned long *)MPTB;
pgd = offset + (pgd_t *)pgd;
- pgd_k = init_mm.pgd + offset;
+ pgd_k = init_mm.pml4 + offset;
if (!pgd_present(*pgd_k))
goto no_context;
diff -ruNp a/arch/m32r/mm/init.c b/arch/m32r/mm/init.c
--- a/arch/m32r/mm/init.c 2004-12-16 11:37:01.000000000 +0900
+++ b/arch/m32r/mm/init.c 2004-12-15 13:02:27.000000000 +0900
@@ -142,7 +142,7 @@ void __init paging_init(void)
/* We don't need kernel mapping as hardware support that. */
pg_dir = swapper_pg_dir;
- for (i = 0 ; i < USER_PTRS_PER_PGD * 2 ; i++)
+ for (i = 0 ; i < USER_PGDS_IN_LAST_PML4 * 2 ; i++)
pgd_val(pg_dir[i]) = 0;
#endif /* CONFIG_MMU */
hole_pages = zone_sizes_init();
--
Hirokazu Takata <takata@linux-m32r.org>
Linux/M32R Project: http://www.linux-m32r.org/
prev parent reply other threads:[~2004-12-17 13:11 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-10-25 7:23 [PATCH 8/17] 4level support for m32r Andreas Kleen
2004-12-17 13:11 ` Hirokazu Takata [this message]
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=20041217.221108.840832167.takata.hirokazu@renesas.com \
--to=takata@linux-m32r.org \
--cc=ak@suse.de \
--cc=akpm@osdl.org \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®