Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 162854
b: refs/heads/master
c: 2ca2ebf
h: refs/heads/master
v: v3
  • Loading branch information
David Daney authored and Ralf Baechle committed Sep 17, 2009
1 parent c0c957d commit 27d180b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: e0cc87f59490d7d62a8ab2a76498dc8a2b64927a
refs/heads/master: 2ca2ebfd952d0338a0972c1f1f56b9b0c1a3b09c
12 changes: 10 additions & 2 deletions trunk/arch/mips/mm/fault.c
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,17 @@ asmlinkage void do_page_fault(struct pt_regs *regs, unsigned long write,
* only copy the information from the master page table,
* nothing more.
*/
#ifdef CONFIG_64BIT
# define VMALLOC_FAULT_TARGET no_context
#else
# define VMALLOC_FAULT_TARGET vmalloc_fault
#endif

if (unlikely(address >= VMALLOC_START && address <= VMALLOC_END))
goto vmalloc_fault;
goto VMALLOC_FAULT_TARGET;
#ifdef MODULE_START
if (unlikely(address >= MODULE_START && address < MODULE_END))
goto vmalloc_fault;
goto VMALLOC_FAULT_TARGET;
#endif

/*
Expand Down Expand Up @@ -203,6 +209,7 @@ asmlinkage void do_page_fault(struct pt_regs *regs, unsigned long write,
force_sig_info(SIGBUS, &info, tsk);

return;
#ifndef CONFIG_64BIT
vmalloc_fault:
{
/*
Expand Down Expand Up @@ -241,4 +248,5 @@ asmlinkage void do_page_fault(struct pt_regs *regs, unsigned long write,
goto no_context;
return;
}
#endif
}

0 comments on commit 27d180b

Please sign in to comment.