mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-30 02:26:41 +07:00
[PATCH] x86-64: use proper VM_FAULT_xxx macros
x86_64 had hardcoded the VM_ numbers so it broke down when the numbers were changed. Signed-off-by: Alexander Nyberg <alexn@telia.com> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
parent
1260f801b4
commit
968002166c
@ -439,13 +439,13 @@ asmlinkage void do_page_fault(struct pt_regs *regs, unsigned long error_code)
|
|||||||
* the fault.
|
* the fault.
|
||||||
*/
|
*/
|
||||||
switch (handle_mm_fault(mm, vma, address, write)) {
|
switch (handle_mm_fault(mm, vma, address, write)) {
|
||||||
case 1:
|
case VM_FAULT_MINOR:
|
||||||
tsk->min_flt++;
|
tsk->min_flt++;
|
||||||
break;
|
break;
|
||||||
case 2:
|
case VM_FAULT_MAJOR:
|
||||||
tsk->maj_flt++;
|
tsk->maj_flt++;
|
||||||
break;
|
break;
|
||||||
case 0:
|
case VM_FAULT_SIGBUS:
|
||||||
goto do_sigbus;
|
goto do_sigbus;
|
||||||
default:
|
default:
|
||||||
goto out_of_memory;
|
goto out_of_memory;
|
||||||
|
Loading…
Reference in New Issue
Block a user