fault.c (e23c34bb41da65f354fb7eee04300c56ee48f60c) | fault.c (33692f27597fcab536d7cbbcc8f52905133e4aa7) |
---|---|
1/* 2 * MMU fault handling support. 3 * 4 * Copyright (C) 1998-2002 Hewlett-Packard Co 5 * David Mosberger-Tang <davidm@hpl.hp.com> 6 */ 7#include <linux/sched.h> 8#include <linux/kernel.h> --- 158 unchanged lines hidden (view full) --- 167 if (unlikely(fault & VM_FAULT_ERROR)) { 168 /* 169 * We ran out of memory, or some other thing happened 170 * to us that made us unable to handle the page fault 171 * gracefully. 172 */ 173 if (fault & VM_FAULT_OOM) { 174 goto out_of_memory; | 1/* 2 * MMU fault handling support. 3 * 4 * Copyright (C) 1998-2002 Hewlett-Packard Co 5 * David Mosberger-Tang <davidm@hpl.hp.com> 6 */ 7#include <linux/sched.h> 8#include <linux/kernel.h> --- 158 unchanged lines hidden (view full) --- 167 if (unlikely(fault & VM_FAULT_ERROR)) { 168 /* 169 * We ran out of memory, or some other thing happened 170 * to us that made us unable to handle the page fault 171 * gracefully. 172 */ 173 if (fault & VM_FAULT_OOM) { 174 goto out_of_memory; |
175 } else if (fault & VM_FAULT_SIGSEGV) { 176 goto bad_area; |
|
175 } else if (fault & VM_FAULT_SIGBUS) { 176 signal = SIGBUS; 177 goto bad_area; 178 } 179 BUG(); 180 } 181 182 if (flags & FAULT_FLAG_ALLOW_RETRY) { --- 124 unchanged lines hidden --- | 177 } else if (fault & VM_FAULT_SIGBUS) { 178 signal = SIGBUS; 179 goto bad_area; 180 } 181 BUG(); 182 } 183 184 if (flags & FAULT_FLAG_ALLOW_RETRY) { --- 124 unchanged lines hidden --- |