* [PATCH] x86/32: treat all pfns as low in dump_pagetable before max_low_pfn is set
@ 2010-10-29 15:53 Ian Campbell
0 siblings, 0 replies; only message in thread
From: Ian Campbell @ 2010-10-29 15:53 UTC (permalink / raw)
To: linux-kernel; +Cc: Ian Campbell, Thomas Gleixner, Ingo Molnar, H. Peter Anvin
If we end up calling dump_pagetable before max_low_pfn is set then
currently we always stop after pdpt since low_pfn(...) is always false.
If we are calling dump_pagetable this early then I think it is
reasonably safe to assume all PFNs are low.
In any case if things are going so badly wrong so early on then we
might as well struggle on and print as much of the page table as
possible.
Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: "H. Peter Anvin" <hpa@zytor.com>
---
arch/x86/mm/fault.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/arch/x86/mm/fault.c b/arch/x86/mm/fault.c
index 7d90ceb..7a2afc7 100644
--- a/arch/x86/mm/fault.c
+++ b/arch/x86/mm/fault.c
@@ -306,7 +306,7 @@ check_v8086_mode(struct pt_regs *regs, unsigned long address,
static bool low_pfn(unsigned long pfn)
{
- return pfn < max_low_pfn;
+ return !max_low_pfn || pfn < max_low_pfn;
}
static void dump_pagetable(unsigned long address)
--
1.5.6.5
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2010-10-29 15:53 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-10-29 15:53 [PATCH] x86/32: treat all pfns as low in dump_pagetable before max_low_pfn is set Ian Campbell
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®