Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 305298
b: refs/heads/master
c: d8fd35f
h: refs/heads/master
v: v3
  • Loading branch information
Paul Mundt committed May 18, 2012
1 parent 2252f15 commit aa9002b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 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: c3e0af98792f9f1c840dc969f883e46d0ced3e00
refs/heads/master: d8fd35fc586f74b2defe011d3a2bfb507871a407
8 changes: 7 additions & 1 deletion trunk/arch/sh/mm/fault.c
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,12 @@ static inline pmd_t *vmalloc_sync_one(pgd_t *pgd, unsigned long address)
return pmd_k;
}

#ifdef CONFIG_SH_STORE_QUEUES
#define __FAULT_ADDR_LIMIT P3_ADDR_MAX
#else
#define __FAULT_ADDR_LIMIT VMALLOC_END
#endif

/*
* Handle a fault on the vmalloc or module mapping area
*/
Expand All @@ -170,7 +176,7 @@ static noinline int vmalloc_fault(unsigned long address)
pte_t *pte_k;

/* Make sure we are in vmalloc/module/P3 area: */
if (!(address >= P3SEG && address < P3_ADDR_MAX))
if (!(address >= VMALLOC_START && address < __FAULT_ADDR_LIMIT))
return -1;

/*
Expand Down

0 comments on commit aa9002b

Please sign in to comment.