diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2009-06-10 19:13:20 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-06-10 19:13:20 -0400 |
| commit | bb7762961d3ce745688e9050e914c1d3f980268d (patch) | |
| tree | e841f58cd6188cc44583cd055798b4475a4d68f0 /arch/x86/mm/fault.c | |
| parent | 48c72d1ab4ec86789a23aed0b0b5f31ac083c0c6 (diff) | |
| parent | 35d5a9a61490bf39d2e48d7f499c8c801a39ebe9 (diff) | |
Merge branch 'x86-mm-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip
* 'x86-mm-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip: (22 commits)
x86: fix system without memory on node0
x86, mm: Fix node_possible_map logic
mm, x86: remove MEMORY_HOTPLUG_RESERVE related code
x86: make sparse mem work in non-NUMA mode
x86: process.c, remove useless headers
x86: merge process.c a bit
x86: use sparse_memory_present_with_active_regions() on UMA
x86: unify 64-bit UMA and NUMA paging_init()
x86: Allow 1MB of slack between the e820 map and SRAT, not 4GB
x86: Sanity check the e820 against the SRAT table using e820 map only
x86: clean up and and print out initial max_pfn_mapped
x86/pci: remove rounding quirk from e820_setup_gap()
x86, e820, pci: reserve extra free space near end of RAM
x86: fix typo in address space documentation
x86: 46 bit physical address support on 64 bits
x86, mm: fault.c, use printk_once() in is_errata93()
x86: move per-cpu mmu_gathers to mm/init.c
x86: move max_pfn_mapped and max_low_pfn_mapped to setup.c
x86: unify noexec handling
x86: remove (null) in /sys kernel_page_tables
...
Diffstat (limited to 'arch/x86/mm/fault.c')
| -rw-r--r-- | arch/x86/mm/fault.c | 51 |
1 files changed, 11 insertions, 40 deletions
diff --git a/arch/x86/mm/fault.c b/arch/x86/mm/fault.c index a03b7279efa0..b9ca6d767dbb 100644 --- a/arch/x86/mm/fault.c +++ b/arch/x86/mm/fault.c | |||
| @@ -3,40 +3,16 @@ | |||
| 3 | * Copyright (C) 2001, 2002 Andi Kleen, SuSE Labs. | 3 | * Copyright (C) 2001, 2002 Andi Kleen, SuSE Labs. |
| 4 | * Copyright (C) 2008-2009, Red Hat Inc., Ingo Molnar | 4 | * Copyright (C) 2008-2009, Red Hat Inc., Ingo Molnar |
| 5 | */ | 5 | */ |
| 6 | #include <linux/interrupt.h> | 6 | #include <linux/magic.h> /* STACK_END_MAGIC */ |
| 7 | #include <linux/mmiotrace.h> | 7 | #include <linux/sched.h> /* test_thread_flag(), ... */ |
| 8 | #include <linux/bootmem.h> | 8 | #include <linux/kdebug.h> /* oops_begin/end, ... */ |
| 9 | #include <linux/compiler.h> | 9 | #include <linux/module.h> /* search_exception_table */ |
| 10 | #include <linux/highmem.h> | 10 | #include <linux/bootmem.h> /* max_low_pfn */ |
| 11 | #include <linux/kprobes.h> | 11 | #include <linux/kprobes.h> /* __kprobes, ... */ |
| 12 | #include <linux/uaccess.h> | 12 | #include <linux/mmiotrace.h> /* kmmio_handler, ... */ |
| 13 | #include <linux/vmalloc.h> | 13 | |
| 14 | #include <linux/vt_kern.h> | 14 | #include <asm/traps.h> /* dotraplinkage, ... */ |
| 15 | #include <linux/signal.h> | 15 | #include <asm/pgalloc.h> /* pgd_*(), ... */ |
| 16 | #include <linux/kernel.h> | ||
| 17 | #include <linux/ptrace.h> | ||
| 18 | #include <linux/string.h> | ||
| 19 | #include <linux/module.h> | ||
| 20 | #include <linux/kdebug.h> | ||
| 21 | #include <linux/errno.h> | ||
| 22 | #include <linux/magic.h> | ||
| 23 | #include <linux/sched.h> | ||
| 24 | #include <linux/types.h> | ||
| 25 | #include <linux/init.h> | ||
| 26 | #include <linux/mman.h> | ||
| 27 | #include <linux/tty.h> | ||
| 28 | #include <linux/smp.h> | ||
| 29 | #include <linux/mm.h> | ||
| 30 | |||
| 31 | #include <asm-generic/sections.h> | ||
| 32 | |||
| 33 | #include <asm/tlbflush.h> | ||
| 34 | #include <asm/pgalloc.h> | ||
| 35 | #include <asm/segment.h> | ||
| 36 | #include <asm/system.h> | ||
| 37 | #include <asm/proto.h> | ||
| 38 | #include <asm/traps.h> | ||
| 39 | #include <asm/desc.h> | ||
| 40 | 16 | ||
| 41 | /* | 17 | /* |
| 42 | * Page fault error code bits: | 18 | * Page fault error code bits: |
| @@ -538,8 +514,6 @@ bad: | |||
| 538 | static int is_errata93(struct pt_regs *regs, unsigned long address) | 514 | static int is_errata93(struct pt_regs *regs, unsigned long address) |
| 539 | { | 515 | { |
| 540 | #ifdef CONFIG_X86_64 | 516 | #ifdef CONFIG_X86_64 |
| 541 | static int once; | ||
| 542 | |||
| 543 | if (address != regs->ip) | 517 | if (address != regs->ip) |
| 544 | return 0; | 518 | return 0; |
| 545 | 519 | ||
| @@ -549,10 +523,7 @@ static int is_errata93(struct pt_regs *regs, unsigned long address) | |||
| 549 | address |= 0xffffffffUL << 32; | 523 | address |= 0xffffffffUL << 32; |
| 550 | if ((address >= (u64)_stext && address <= (u64)_etext) || | 524 | if ((address >= (u64)_stext && address <= (u64)_etext) || |
| 551 | (address >= MODULES_VADDR && address <= MODULES_END)) { | 525 | (address >= MODULES_VADDR && address <= MODULES_END)) { |
| 552 | if (!once) { | 526 | printk_once(errata93_warning); |
| 553 | printk(errata93_warning); | ||
| 554 | once = 1; | ||
| 555 | } | ||
| 556 | regs->ip = address; | 527 | regs->ip = address; |
| 557 | return 1; | 528 | return 1; |
| 558 | } | 529 | } |
