| To: | Ralf Baechle <ralf@linux-mips.org> |
|---|---|
| Subject: | [PATCH] cleanup vmalloc_fault for 64bit kernel |
| From: | Wu Fei <at.wufei@gmail.com> |
| Date: | Mon, 31 Aug 2009 21:28:12 +0800 |
| Cc: | linux-mips@linux-mips.org |
| Dkim-signature: | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:date:from:to:cc:subject :message-id:mime-version:content-type:content-disposition:user-agent; bh=EcKgrvi2qdAPRbJfFhvfPPZfZKDj2ZLsfCnjqr3BzC4=; b=XtY2DldKkRkWSA1YQQ/ha+uDQhe4kNmLLH2DJUoN1WrqgrBhVwFy8aQKf2j6OvYG+8 lyDjRaqbpRNuuc3Q9JJJVVAny2w6UGnlkZowp94Zfiv8NdbszJ6KlBfvOx0edT9YBhED vAEnfXdqcH+W6wPD7kRmdtcyml9I+YEnVUJ/8= |
| Domainkey-signature: | a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:cc:subject:message-id:mime-version:content-type :content-disposition:user-agent; b=PosD+ADVqhPY/rQA4lwT62za6CBL3Y1/R99gZKxv71NkhK85sNrPSPESF+RsCp0h4b eyunt3cQKCACf1MuvO+yKfmy6SolwYoJN70kfJX8iKYxhMSPzsP0B+LiKdpMFDXSGJMz TpZNyqcp21J+4I2RQGg4VYiqL8Yz5yYhngPOg= |
| Original-recipient: | rfc822;linux-mips@linux-mips.org |
| Sender: | linux-mips-bounce@linux-mips.org |
| User-agent: | Mutt/1.5.18 (2008-05-17) |
64bit kernel won't arrive vmalloc_fault, it's not necessary or possible
to copy the page table from init_mm.pgd. swapper_pg_dir, module_pg_dir
and the process's pgd represent the different virtual address area, and
the tlb exception handler accesses the suitable one directly.
Signed-off-by: Wu Fei <at.wufei@gmail.com>
---
arch/mips/mm/fault.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/arch/mips/mm/fault.c b/arch/mips/mm/fault.c
index f956ecb..e769789 100644
--- a/arch/mips/mm/fault.c
+++ b/arch/mips/mm/fault.c
@@ -58,11 +58,9 @@ asmlinkage void do_page_fault(struct pt_regs *regs, unsigned
long write,
* only copy the information from the master page table,
* nothing more.
*/
+#ifdef CONFIG_32BIT
if (unlikely(address >= VMALLOC_START && address <= VMALLOC_END))
goto vmalloc_fault;
-#ifdef MODULE_START
- if (unlikely(address >= MODULE_START && address < MODULE_END))
- goto vmalloc_fault;
#endif
/*
@@ -203,6 +201,7 @@ do_sigbus:
force_sig_info(SIGBUS, &info, tsk);
return;
+#ifdef CONFIG_32BIT
vmalloc_fault:
{
/*
@@ -241,4 +240,5 @@ vmalloc_fault:
goto no_context;
return;
}
+#endif
}
--
1.6.4.rc1
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: [PATCH 1/2] au1000: fix build failure for db1x00 configured for Au1100 SoC, Manuel Lauss |
|---|---|
| Next by Date: | Re: [PATCH 2/2] ar7_wdt: convert to become a platform driver, Florian Fainelli |
| Previous by Thread: | [PATCH] mips:powertv: Base files for Cisco Powertv platform, v4, David VomLehn |
| Next by Thread: | [PATCH 1/2] bcm63xx: fix soft-reset lockup on BCM6345, Florian Fainelli |
| Indexes: | [Date] [Thread] [Top] [All Lists] |