fault.c (e23c34bb41da65f354fb7eee04300c56ee48f60c) fault.c (33692f27597fcab536d7cbbcc8f52905133e4aa7)
1/*
2 * Page fault handler for SH with an MMU.
3 *
4 * Copyright (C) 1999 Niibe Yutaka
5 * Copyright (C) 2003 - 2012 Paul Mundt
6 *
7 * Based on linux/arch/i386/mm/fault.c:
8 * Copyright (C) 1995 Linus Torvalds

--- 339 unchanged lines hidden (view full) ---

348 * We ran out of memory, call the OOM killer, and return the
349 * userspace (which will retry the fault, or kill us if we got
350 * oom-killed):
351 */
352 pagefault_out_of_memory();
353 } else {
354 if (fault & VM_FAULT_SIGBUS)
355 do_sigbus(regs, error_code, address);
1/*
2 * Page fault handler for SH with an MMU.
3 *
4 * Copyright (C) 1999 Niibe Yutaka
5 * Copyright (C) 2003 - 2012 Paul Mundt
6 *
7 * Based on linux/arch/i386/mm/fault.c:
8 * Copyright (C) 1995 Linus Torvalds

--- 339 unchanged lines hidden (view full) ---

348 * We ran out of memory, call the OOM killer, and return the
349 * userspace (which will retry the fault, or kill us if we got
350 * oom-killed):
351 */
352 pagefault_out_of_memory();
353 } else {
354 if (fault & VM_FAULT_SIGBUS)
355 do_sigbus(regs, error_code, address);
356 else if (fault & VM_FAULT_SIGSEGV)
357 bad_area(regs, error_code, address);
356 else
357 BUG();
358 }
359
360 return 1;
361}
362
363static inline int access_error(int error_code, struct vm_area_struct *vma)

--- 154 unchanged lines hidden ---
358 else
359 BUG();
360 }
361
362 return 1;
363}
364
365static inline int access_error(int error_code, struct vm_area_struct *vma)

--- 154 unchanged lines hidden ---