fault.c (e23c34bb41da65f354fb7eee04300c56ee48f60c) | fault.c (33692f27597fcab536d7cbbcc8f52905133e4aa7) |
---|---|
1/* 2 * OpenRISC fault.c 3 * 4 * Linux architectural port borrowing liberally from similar works of 5 * others. All original copyrights apply as per the original source 6 * declaration. 7 * 8 * Modifications for the OpenRISC architecture: --- 157 unchanged lines hidden (view full) --- 166 fault = handle_mm_fault(mm, vma, address, flags); 167 168 if ((fault & VM_FAULT_RETRY) && fatal_signal_pending(current)) 169 return; 170 171 if (unlikely(fault & VM_FAULT_ERROR)) { 172 if (fault & VM_FAULT_OOM) 173 goto out_of_memory; | 1/* 2 * OpenRISC fault.c 3 * 4 * Linux architectural port borrowing liberally from similar works of 5 * others. All original copyrights apply as per the original source 6 * declaration. 7 * 8 * Modifications for the OpenRISC architecture: --- 157 unchanged lines hidden (view full) --- 166 fault = handle_mm_fault(mm, vma, address, flags); 167 168 if ((fault & VM_FAULT_RETRY) && fatal_signal_pending(current)) 169 return; 170 171 if (unlikely(fault & VM_FAULT_ERROR)) { 172 if (fault & VM_FAULT_OOM) 173 goto out_of_memory; |
174 else if (fault & VM_FAULT_SIGSEGV) 175 goto bad_area; |
|
174 else if (fault & VM_FAULT_SIGBUS) 175 goto do_sigbus; 176 BUG(); 177 } 178 179 if (flags & FAULT_FLAG_ALLOW_RETRY) { 180 /*RGD modeled on Cris */ 181 if (fault & VM_FAULT_MAJOR) --- 179 unchanged lines hidden --- | 176 else if (fault & VM_FAULT_SIGBUS) 177 goto do_sigbus; 178 BUG(); 179 } 180 181 if (flags & FAULT_FLAG_ALLOW_RETRY) { 182 /*RGD modeled on Cris */ 183 if (fault & VM_FAULT_MAJOR) --- 179 unchanged lines hidden --- |